|
1 // Copyright (c) 2007-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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Header file for the api for talking to the stub AGPS Module |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 @released |
|
22 */ |
|
23 |
|
24 #ifndef LBSAGPSMODULETESTAPI_H_ |
|
25 #define LBSAGPSMODULETESTAPI_H_ |
|
26 |
|
27 #include <e32base.h> |
|
28 #include <e32property.h> |
|
29 |
|
30 |
|
31 /** |
|
32 @internalComponent |
|
33 @released |
|
34 |
|
35 The interface is unidirectional (from AGPS Module to a Test Suite) |
|
36 and does not pass parameters. |
|
37 */ |
|
38 class RAgpsModuleTestChannel |
|
39 { |
|
40 public: |
|
41 /** |
|
42 The message types correspond to methods of the CLbsLocationSourceGpsBase interface. |
|
43 */ |
|
44 enum TTestMsgType |
|
45 { |
|
46 ETestMsgUnknown = 0, |
|
47 ETestMsgNewL = 1, |
|
48 ETestMsgRequestLocationUpdate = 2, |
|
49 ETestMsgCancelLocationRequest = 3, |
|
50 ETestMsgAdvisePowerMode = 4, |
|
51 ETestMsgSetGpsOptions = 5, |
|
52 ETestMsgAssistanceDataEvent = 6, |
|
53 ETestMsgShutdownEvent = 7 |
|
54 }; |
|
55 |
|
56 IMPORT_C RAgpsModuleTestChannel(); |
|
57 |
|
58 IMPORT_C static void InitialiseL(); |
|
59 IMPORT_C static void Shutdown(); |
|
60 |
|
61 IMPORT_C void OpenL(); |
|
62 IMPORT_C void Close(); |
|
63 |
|
64 IMPORT_C void Subscribe(TRequestStatus &aRequest); |
|
65 IMPORT_C void Cancel(); |
|
66 |
|
67 IMPORT_C TInt SetMsg(TTestMsgType aMsgType); |
|
68 IMPORT_C TInt GetMsg(TTestMsgType& aMsgType); |
|
69 |
|
70 private: |
|
71 RProperty iPropFromModule; |
|
72 //RProperty iPropToMdoule; |
|
73 }; |
|
74 |
|
75 |
|
76 #endif // LBSAGPSMODULETESTAPI_H_ |