|
1 /* |
|
2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: IPC message constants |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef POSLMSERVERCOMMON_H |
|
21 #define POSLMSERVERCOMMON_H |
|
22 |
|
23 #include <epos_poslmserverdefs.h> |
|
24 |
|
25 const TUint KPosLmServerEventArg = 0; |
|
26 const TUint KPosLmServerDbManEventArg = 0; |
|
27 const TUint KPosLmServerUriArg = 0; |
|
28 const TUint KPosLmServerUriLengthArg = 1; |
|
29 const TUint KPosLmServerDbReplaceArg = 1; |
|
30 const TUint KPosLmServerProtocolArg = 0; |
|
31 const TUint KPosLmServerSourceUriArg = 0; |
|
32 const TUint KPosLmServerDbInfoArg = 0; |
|
33 const TUint KPosLmServerTargetUriArg = 1; |
|
34 |
|
35 const TUint KPosLmServerDbManUriArg = 1; |
|
36 const TUint KPosLmServerDriveArg = 1; |
|
37 const TUint KPosLmServerBufferArg = 1; |
|
38 const TUint KPosLmServerDbEventArg = 1; |
|
39 |
|
40 const TUint KPosLmServerAllocLengthArg =2; |
|
41 const TUint KPosLmServerDbSettingsArg =2; |
|
42 |
|
43 const TUint KPosLmServerStatusArg = 0; |
|
44 const TUint KPosLmServerProgressArg = 1; |
|
45 const TUint KPosLmServerInitFlagArg = 2; |
|
46 |
|
47 const TUint KPosLmServerDbLockSetOnArg = 0; |
|
48 const TUint KPosLmServerDbLockSetWriteArg = 1; |
|
49 |
|
50 const TUint KPosLmServerIdArray = 1; |
|
51 const TUint KPosLmServerIdArrayParam = 0; |
|
52 |
|
53 /** |
|
54 * Possible messages to be sent between client and server. |
|
55 */ |
|
56 enum TPosLmServerMessage |
|
57 { |
|
58 // NOTE! |
|
59 // If you add a new message here, it must also be added |
|
60 // to the policy handling in the CPosLmServer class. |
|
61 |
|
62 EPosLmServerInitializeSync = 0, |
|
63 EPosLmServerInitializeAsync, |
|
64 EPosLmServerInitializeCancel, |
|
65 EPosLmServerLangSwitchSync, |
|
66 EPosLmServerLangSwitchAsync, |
|
67 EPosLmServerLangSwitchCancel, |
|
68 EPosLmServerRecoverSync, |
|
69 EPosLmServerRecoverAsync, |
|
70 EPosLmServerRecoverCancel, |
|
71 EPosLmServerListenForLmEvent, |
|
72 EPosLmServerCancelListenForLmEvent, |
|
73 EPosLmServerListenForDbEvent, |
|
74 EPosLmServerCancelListenForDbEvent, |
|
75 EPosLmServerUriFromLastEvent, |
|
76 EPosLmServerCreateDefaultDb, |
|
77 EPosLmServerListDatabaseUris, |
|
78 EPosLmServerRemainingDatabaseUris, |
|
79 EPosLmServerListDatabaseInfo, |
|
80 EPosLmServerRemainingDatabaseInfo, |
|
81 EPosLmServerReadDatabaseSettings, |
|
82 // The IPC messages above requires capability ReadUserData. |
|
83 |
|
84 EPosLmServerRegisterSession, |
|
85 EPosLmServerRegisterLocalAccessSubsession, |
|
86 EPosLmServerRegisterEventListenerSubsession, |
|
87 EPosLmServerRegisterLocalDbManSubsession, |
|
88 EPosLmServerUnregisterSubsession, |
|
89 // The IPC messages above requires NO capabilities. |
|
90 |
|
91 EPosLmServerDbLock, |
|
92 // The IPC message above requires a custom check. |
|
93 // Read lock requires: ReadUserData |
|
94 // Write lock requires: ReadUserData, WriteUserData |
|
95 |
|
96 EPosLmServerCreateDatabase, |
|
97 EPosLmServerDeleteDatabase, |
|
98 EPosLmServerCopyDatabase, |
|
99 EPosLmServerRegisterDatabase, |
|
100 EPosLmServerUnregisterDatabase, |
|
101 EPosLmServerUnregisterAllDatabases, |
|
102 EPosLmServerModifyDatabaseSettings, |
|
103 EPosLmServerReportLmEvent, |
|
104 EPosLmServerReportDbEvent, |
|
105 EPosLmServerFreeResources, |
|
106 // The IPC messages above requires capability ReadUserData and WriteUserData |
|
107 |
|
108 // Extend IPC from here |
|
109 |
|
110 // These IPC messages require NO capabilities. |
|
111 EPosLmServerFreeRange2 = 100, |
|
112 EPosLmServerOpenNameIndex, |
|
113 EPosLmServerCloseNameIndex, |
|
114 |
|
115 // These IPC messages require Custom Check. |
|
116 EPosLmServerCustomCheckRange2 = 200, |
|
117 |
|
118 // These IPC messages require capability ReadUserData. |
|
119 EPosLmServerReadRange2 = 300, |
|
120 EPosLmServerNameIndexStatus, |
|
121 EPosLmServerReadNameIndex, |
|
122 EPosLmServerReadSortedIds, |
|
123 |
|
124 // These IPC messages require ReadUserData and WriteUserData. |
|
125 EPosLmServerWriteRange2 = 400, |
|
126 EPosLmServerIndexTransaction, // only used with attempt to modify index |
|
127 EPosLmServerUpdateNameIndex, |
|
128 |
|
129 EPosLmServerLast |
|
130 }; |
|
131 |
|
132 struct TPosLmServerReadArrayParam |
|
133 { |
|
134 TInt iFirst; |
|
135 TInt iCount; |
|
136 TInt iRemainder; |
|
137 TInt iActualCount; // out |
|
138 TInt iMinBufferNeeded; // out |
|
139 }; |
|
140 |
|
141 enum TPosLmServerUpdateLmNameIndexOp |
|
142 { |
|
143 EPosLmServerAddLandmarks = 1, |
|
144 EPosLmServerRemoveLandmarks, |
|
145 EPosLmServerUpdateLandmarks, |
|
146 }; |
|
147 |
|
148 enum TPosLmServerTransactionOp |
|
149 { |
|
150 EPosLmServerTransactionUnknown, |
|
151 EPosLmServerTransactionStart, |
|
152 EPosLmServerTransactionCommit, |
|
153 EPosLmServerTransactionRollback, |
|
154 }; |
|
155 |
|
156 #endif // POSLMSERVERCOMMON_H |
|
157 |
|
158 |