First public contribution.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
17 #include "captestinfoserver.h"
18 #include "captestinfosession.h"
20 RCapTestInfoSession::RCapTestInfoSession()
24 // Create the server, if one with this name does not already exist.
25 TInt RCapTestInfoSession::Connect()
27 TFindServer findCountServer(KInfoServerName);
31 // Need to check that the server exists.
32 if (findCountServer.Next(name)==KErrNone)
34 err = CreateSession(KInfoServerName, TVersion());
44 void RCapTestInfoSession::Close()
46 RSessionBase::Close();
49 TThreadId RCapTestInfoSession::InfoServerTidL()
51 TPckgBuf<TThreadId> tid;
53 User::LeaveIfError(SendReceive(ECapTestInfoThreadId, args));