|
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 "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 // Definitions of types used to simplify data transfer between |
|
15 // client-server and publish and subscribe. |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalTechnology |
|
22 @released |
|
23 */ |
|
24 #ifndef __LBSPRIVACYCONTROLLERDATA_H__ |
|
25 #define __LBSPRIVACYCONTROLLERDATA_H__ |
|
26 |
|
27 #include <lbspositioninfo.h> // For TPositionInfo |
|
28 #include "lbscommoninternaldatatypes.h" // For TLbsNetSessionIdInt |
|
29 #include <lbs/lbsloccommon.h> |
|
30 |
|
31 class TPrivacyRequestParams |
|
32 { |
|
33 public: |
|
34 TLbsNetSessionIdInt iSessionId; |
|
35 TLbsExternalRequestInfo2 iRequestInfo; |
|
36 TLbsNetPosRequestPrivacyInt iRequestPrivacy; |
|
37 }; |
|
38 |
|
39 typedef TPckg<TPrivacyRequestParams> TPrivacyRequestParamsPckg; |
|
40 typedef TPckgC<TPrivacyRequestParams> TPrivacyRequestParamsPckgC; |
|
41 |
|
42 class TPrivacyResponseParams |
|
43 { |
|
44 public: |
|
45 TLbsNetSessionIdInt iSessionId; |
|
46 CLbsPrivacyController::TRequestVerificationResult iResult; |
|
47 } ; |
|
48 |
|
49 class TPrivacyCancelParams |
|
50 { |
|
51 public: |
|
52 TLbsNetSessionIdInt iSessionId; |
|
53 } ; |
|
54 |
|
55 |
|
56 class TLocationUpdateParams |
|
57 { |
|
58 public: |
|
59 TLbsNetSessionIdInt iSessionId; |
|
60 TPositionInfo iPositionInfo; |
|
61 }; |
|
62 |
|
63 typedef TPckg<TLocationUpdateParams> TLocationUpdateParamsPckg; |
|
64 typedef TPckgC<TLocationUpdateParams> TLocationUpdateParamsPckgC; |
|
65 |
|
66 class TLbsSessionCompleteParams |
|
67 { |
|
68 public: |
|
69 TLbsNetSessionIdInt iSessionId; |
|
70 TInt iReason; |
|
71 }; |
|
72 |
|
73 typedef TPckg<TLbsSessionCompleteParams> TLbsSessionCompleteParamsPckg; |
|
74 typedef TPckgC<TLbsSessionCompleteParams> TLbsSessionCompleteParamsPckgC; |
|
75 |
|
76 |
|
77 enum TNrhServerMessageType |
|
78 { |
|
79 ENrhServerMessageAck = KErrNone, |
|
80 ENrhServerPrivacyRequest = 999, |
|
81 ENrhServerLocationUpdate, |
|
82 ENrhServerLbsSessionComplete |
|
83 }; |
|
84 |
|
85 enum TPrivacyControllerParamsIndex |
|
86 { |
|
87 EPrivacyRequestParams, |
|
88 ELocationUpdateParams, |
|
89 ELbsSessionCompleteParams |
|
90 }; |
|
91 |
|
92 #endif // __LBSPRIVACYCONTROLLERDATA_H__ |