33 /** |
33 /** |
34 * CmManager server filename. |
34 * CmManager server filename. |
35 */ |
35 */ |
36 _LIT( KCmmServerFile, "cmmserver" ); |
36 _LIT( KCmmServerFile, "cmmserver" ); |
37 |
37 |
38 const TInt KCmmServerStackSize = 0x5000; //TODO, check if really used (in common code). |
|
39 const TInt KCmmServerInitHeapSize = 0x1000; //TODO, check if really used (in common code). |
|
40 const TInt KCmmServerMaxHeapSize = 0x1000000; //TODO, check if really used (in common code). |
|
41 |
|
42 const TInt KBitsInOneByte = 8; |
38 const TInt KBitsInOneByte = 8; |
43 const TInt KBitsInTwoBytes = 16; |
39 const TInt KBitsInTwoBytes = 16; |
44 const TInt KBitsInThreeBytes = 24; |
40 const TInt KBitsInThreeBytes = 24; |
45 |
|
46 /** |
|
47 * The server version. A version must be specified when creating a session with |
|
48 * the server. |
|
49 */ |
|
50 const TUint KCmmServerMajorVersionNumber = 0; //TODO, check if really used (in common code). |
|
51 const TUint KCmmServerMinorVersionNumber = 1; //TODO, check if really used (in common code). |
|
52 const TUint KCmmServerBuildVersionNumber = 1; //TODO, check if really used (in common code). |
|
53 |
41 |
54 /** |
42 /** |
55 * Amount of time in microseconds that the server will wait before shutting |
43 * Amount of time in microseconds that the server will wait before shutting |
56 * down, after last client has gone. |
44 * down, after last client has gone. |
57 */ |
45 */ |
71 const TUint32 KCmmDestIdIntervalLegacyMax = 0x0100; |
59 const TUint32 KCmmDestIdIntervalLegacyMax = 0x0100; |
72 |
60 |
73 const TUint32 KCmmDestIdIntervalMin = 0x1000; |
61 const TUint32 KCmmDestIdIntervalMin = 0x1000; |
74 const TUint32 KCmmDestIdIntervalMax = 0x1100; |
62 const TUint32 KCmmDestIdIntervalMax = 0x1100; |
75 |
63 |
76 const TInt KCmmStringLengthMax = 1024; //TODO, need to find out correct value here |
64 const TInt KCmmStringLengthMax = 1024; //TODO, need to find out correct value here. 1024 is correct, but can that be received from commsdat? |
77 |
65 |
78 const TUint32 KTemporaryIdCounterStart = 32768; |
66 const TUint32 KTemporaryIdCounterStart = 32768; |
79 |
67 |
80 const TUint32 KDestProtectionLevelMask = 0xF0000000; |
68 const TUint32 KDestProtectionLevelMask = 0xF0000000; |
81 const TInt KBitsToShiftDestProtectionLevel = 28; |
69 const TInt KBitsToShiftDestProtectionLevel = 28; |
115 ECmmGetBearerPriorityArray = 6, |
103 ECmmGetBearerPriorityArray = 6, |
116 ECmmGetEasyWlanId = 7, |
104 ECmmGetEasyWlanId = 7, |
117 ECmmReadDefaultConnection = 8, |
105 ECmmReadDefaultConnection = 8, |
118 ECmmReadGeneralConnectionSettings = 9, |
106 ECmmReadGeneralConnectionSettings = 9, |
119 ECmmGetSupportedBearers = 10, |
107 ECmmGetSupportedBearers = 10, |
120 |
108 ECmmGetUncategorizedIcon = 11, |
121 ECmmGetConnMethodInfoInt = 11, |
109 |
122 ECmmGetConnMethodInfoBool = 12, |
110 ECmmGetConnMethodInfoInt = 12, |
123 ECmmGetConnMethodInfoString = 13, |
111 ECmmGetConnMethodInfoBool = 13, |
124 ECmmGetConnMethodInfoString8 = 14, |
112 ECmmGetConnMethodInfoString = 14, |
125 |
113 ECmmGetConnMethodInfoString8 = 15, |
126 ECmmUpdateBearerPriorityArray = 15, |
114 |
127 ECmmWriteDefaultConnection = 16, |
115 ECmmUpdateBearerPriorityArray = 16, |
128 ECmmWriteGeneralConnectionSettings = 17, |
116 ECmmWriteDefaultConnection = 17, |
129 ECmmCopyConnMethod = 18, |
117 ECmmWriteGeneralConnectionSettings = 18, |
130 ECmmMoveConnMethod = 19, |
118 ECmmCopyConnMethod = 19, |
131 ECmmRemoveConnMethod = 20, |
119 ECmmMoveConnMethod = 20, |
132 ECmmRemoveAllReferences = 21, // Connection method becomes uncategorized. |
120 ECmmRemoveConnMethod = 21, |
|
121 ECmmRemoveAllReferences = 22, // Connection method becomes uncategorized. |
133 |
122 |
134 // RCmDestination starts from 100 |
123 // RCmDestination starts from 100 |
135 EDestGetDestination = 100, |
124 EDestGetDestination = 100, |
136 EDestRefresh = 101, |
125 EDestRefresh = 101, |
137 EDestCloseDestination = 102, |
126 EDestCloseDestination = 102, |
143 EDestMetadata = 108, |
132 EDestMetadata = 108, |
144 EDestGetProtectionLevel = 109, |
133 EDestGetProtectionLevel = 109, |
145 EDestIsHidden = 110, |
134 EDestIsHidden = 110, |
146 EDestIsEqual = 111, |
135 EDestIsEqual = 111, |
147 EDestGetEmbeddedDestination = 112, |
136 EDestGetEmbeddedDestination = 112, |
148 |
137 EDestGetIcon = 113, |
149 EDestCreateDestinationWithName = 113, |
138 |
150 EDestCreateDestinationWithNameAndId = 114, |
139 EDestCreateDestinationWithName = 114, |
151 EDestIsConnected = 115, |
140 EDestCreateDestinationWithNameAndId = 115, |
152 EDestAddConnMethod = 116, |
141 EDestIsConnected = 116, |
153 EDestAddEmbeddedDestination = 117, |
142 EDestAddConnMethod = 117, |
154 EDestDeleteConnMethod = 118, |
143 EDestAddEmbeddedDestination = 118, |
155 EDestRemoveConnMethod = 119, |
144 EDestDeleteConnMethod = 119, |
156 EDestModifyPriority = 120, |
145 EDestRemoveConnMethod = 120, |
157 EDestSetName = 121, |
146 EDestModifyPriority = 121, |
158 EDestSetMetadata = 122, |
147 EDestSetName = 122, |
159 EDestSetProtection = 123, |
148 EDestSetMetadata = 123, |
160 EDestSetHidden = 124, |
149 EDestSetProtection = 124, |
161 EDestUpdate = 125, |
150 EDestSetHidden = 125, |
162 EDestDelete = 126, |
151 EDestUpdate = 126, |
|
152 EDestDelete = 127, |
|
153 EDestSetIcon = 128, |
163 |
154 |
164 //RCmConnectionMethod starts from 200 |
155 //RCmConnectionMethod starts from 200 |
165 ECMGetConnMethodWithId = 200, |
156 ECMGetConnMethodWithId = 200, |
166 ECMRefresh = 201, |
157 ECMRefresh = 201, |
167 ECMGetConnMethodFromDestWithIndex = 202, |
158 ECMGetConnMethodFromDestWithIndex = 202, |