|
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 |
|
4 // under the terms of the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Client side code for the LBS test server. |
|
15 // |
|
16 // |
|
17 |
|
18 #include <e32base.h> |
|
19 #include <e32debug.h> |
|
20 #include "lbstestclient.h" |
|
21 #include "lbstestclientimpl.h" |
|
22 |
|
23 |
|
24 /////////////////////////////////////////////////////////////////////////////// |
|
25 // CLbsTestServer |
|
26 /////////////////////////////////////////////////////////////////////////////// |
|
27 |
|
28 CLbsTestServer::CLbsTestServer() |
|
29 { |
|
30 |
|
31 } |
|
32 |
|
33 CLbsTestServer::~CLbsTestServer() |
|
34 { |
|
35 delete iImpl; |
|
36 } |
|
37 |
|
38 EXPORT_C CLbsTestServer* CLbsTestServer::NewL() |
|
39 { |
|
40 CLbsTestServer* self = new (ELeave) CLbsTestServer; |
|
41 CleanupStack::PushL(self); |
|
42 self->ConstructL(); |
|
43 CleanupStack::Pop(self); |
|
44 return self; |
|
45 } |
|
46 |
|
47 void CLbsTestServer::ConstructL() |
|
48 { |
|
49 iImpl = CLbsTestServerImpl::NewL(); |
|
50 } |
|
51 |
|
52 EXPORT_C TInt CLbsTestServer::StopLbsSystem() |
|
53 { |
|
54 return iImpl->StopLbsSystem(); |
|
55 } |
|
56 |
|
57 EXPORT_C TInt CLbsTestServer::StartLbsSystem() |
|
58 { |
|
59 return iImpl->StartLbsSystem(); |
|
60 } |
|
61 |
|
62 EXPORT_C TInt CLbsTestServer::ResetLbsSystem() |
|
63 { |
|
64 return iImpl->ResetLbsSystem(); |
|
65 } |