748
|
1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
872
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
748
|
5 |
// which accompanies this distribution, and is available
|
872
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
748
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// Header for the implementation of the client-side code
|
|
15 |
// for the Lbs test server.
|
|
16 |
//
|
|
17 |
//
|
|
18 |
|
|
19 |
#include "rsecuresessionbase.h"
|
|
20 |
#include "tserverstartparams.h"
|
|
21 |
|
|
22 |
|
|
23 |
/* Session class that derives from the server framework session.
|
|
24 |
*/
|
|
25 |
NONSHARABLE_CLASS(RLbsTestSession) : public RSecureSessionBase
|
|
26 |
{
|
|
27 |
public:
|
|
28 |
TVersion Version();
|
|
29 |
|
|
30 |
TInt StopLbsSystem();
|
|
31 |
TInt StartLbsSystem();
|
|
32 |
TInt ResetLbsSystem();
|
|
33 |
};
|
|
34 |
|
|
35 |
/* Implementation of the client code.
|
|
36 |
*/
|
|
37 |
NONSHARABLE_CLASS(CLbsTestServerImpl) : public CBase
|
|
38 |
{
|
|
39 |
public:
|
|
40 |
static CLbsTestServerImpl* NewL();
|
|
41 |
~CLbsTestServerImpl();
|
|
42 |
|
|
43 |
TInt StopLbsSystem();
|
|
44 |
TInt StartLbsSystem();
|
|
45 |
TInt ResetLbsSystem();
|
|
46 |
|
|
47 |
protected:
|
|
48 |
CLbsTestServerImpl();
|
|
49 |
|
|
50 |
private:
|
|
51 |
void ConstructL();
|
|
52 |
|
|
53 |
private:
|
|
54 |
RLbsTestSession iSession;
|
|
55 |
TServerStartParams iParams; // MUST live for as long as the client
|
|
56 |
};
|