|
1 /** |
|
2 * Copyright (c) 2005-2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalComponent |
|
23 @released |
|
24 */ |
|
25 |
|
26 |
|
27 #ifndef CCNTIPCCODES_H |
|
28 #define CCNTIPCCODES_H |
|
29 |
|
30 #include <e32base.h> |
|
31 |
|
32 |
|
33 // Enumeration offsets for different types of capabilities. |
|
34 #define KCapabilityNone 0 |
|
35 #define KCapabilityReadUserData 100 |
|
36 #define KCapabilityWriteUserData 400 |
|
37 |
|
38 |
|
39 /** |
|
40 Contacts database filename maximum length. Used to police descriptors on Client |
|
41 side. |
|
42 */ |
|
43 const TInt KCntMaxFilePath = 190; |
|
44 |
|
45 const TInt KErrNoComplete = 0xbb000000; |
|
46 |
|
47 |
|
48 /** |
|
49 Client/Server function codes. One per API call. Contains subsession codes |
|
50 also. |
|
51 */ |
|
52 enum TCntClientIpcCodes |
|
53 { |
|
54 // ---- No capability ---- |
|
55 ECntCloseView = KCapabilityNone, |
|
56 ECntSendPluginUidToServer, |
|
57 ECntContactMatchingCriteriaExternalizedSize, |
|
58 ECntViewSortOrderExternalizedSize, |
|
59 ECntViewAt, |
|
60 ECntViewCount, |
|
61 ECntViewFind, |
|
62 ECntAllFieldsLength, |
|
63 ECntGetViewSortOrder, |
|
64 ECntRequestViewEvent, |
|
65 ECntCancelRequestViewEvent, |
|
66 ECntGetIncludedTypes, |
|
67 ECntGetContactIds, |
|
68 ECntGetSortPluginUidFromServer, |
|
69 ECntGetCurrentItem, |
|
70 ECntSetHeapFailure, |
|
71 ECntResourceCount, |
|
72 ECntDbContactCount, |
|
73 ECntGetDbViewContactType, // New but not used. |
|
74 ECntSetDbViewContactType, |
|
75 ECntViewContactAtLength, |
|
76 ECntRequestEvent, |
|
77 ECntCancelEventRequest, |
|
78 ECntConnectionId, |
|
79 ECntMachineID, |
|
80 ECntOverrideMachineID, |
|
81 ECntGetPrefTemplateId, |
|
82 ECntICCTemplateId, |
|
83 ECntPhonebookGroupId, |
|
84 ECntCloseDataBase, |
|
85 ECntCancelAsyncOpenDatabase, |
|
86 ECntFileUniqueId, |
|
87 ECntOpsTimeOut, |
|
88 ECntFilesSize, |
|
89 ECntMatchesHintField, |
|
90 ECntGetDefaultDatabaseName, |
|
91 ECntGetCurrentDb, |
|
92 ECntDatabaseDrive, |
|
93 ECntDatabaseExists, |
|
94 ECntSetSortPrefs, |
|
95 ECntGetOwnCard, |
|
96 ECntFetchTemplateIds, |
|
97 ECntFetchGroupIdLists, |
|
98 ECntSeekContactInCollection, |
|
99 ECntChangeViewDef, |
|
100 ECntGetSortPrefs, |
|
101 ECntItemClose, |
|
102 ECntGetDefinitionsForExistingView, // Test only. |
|
103 ECntSetAsyncActivity, |
|
104 ECntGetDatabaseReady, |
|
105 ECntOpenViewSession, |
|
106 ECntCloseViewSession, |
|
107 ECntViewChangeSortOrderL, |
|
108 |
|
109 // ---- Read User Data capability ---- |
|
110 ECntOpenDataBase= KCapabilityReadUserData, |
|
111 ECntReOpenDbTables, |
|
112 ECntCreateView, |
|
113 ECntCreateNamedView, |
|
114 ECntViewContactAt, |
|
115 ECntAllFieldsText, |
|
116 ECntGetContactsMatchingFilter, |
|
117 ECntGetContactMatchingCriteria, |
|
118 ECntGetSpeedDialContactIdAndPhoneNumber, |
|
119 ECntItemRead, |
|
120 ECntReadContactTextDef, |
|
121 ECntFilterDatabase, |
|
122 ECntFind, |
|
123 ECntFindAsyncInit, |
|
124 ECntFindAsyncTextDefInit, |
|
125 ECntFindAsync, |
|
126 ECntItemAtL, |
|
127 ECntGetCollection, |
|
128 ECntTextField, |
|
129 ECntListDatabases, |
|
130 ECntViewBeginIterate, |
|
131 ECntViewEndIterate, |
|
132 ECntViewNextItemL, |
|
133 |
|
134 // ---- Write User Data capability ---- |
|
135 ECntCreateDatabase = KCapabilityWriteUserData, |
|
136 ECntSetPrefTemplateId, |
|
137 ECntSetOwnCard, |
|
138 ECntReCreateTemplate, |
|
139 ECntSetCurrentItem, |
|
140 ECntRemoveCurrentItem, |
|
141 ECntSetCurrentDb, |
|
142 ECntSetSpeedDialIdForPosition, |
|
143 ECntChangeViewSortOrder, |
|
144 ECntItemOpen, |
|
145 ECntSetDatabaseDrive, |
|
146 ECntReplaceDatabase, |
|
147 ECntDeleteDatabase, |
|
148 ECntItemUpdate, |
|
149 ECntItemCommit, |
|
150 ECntItemDelete, |
|
151 ECntItemCreate, |
|
152 EBeginDbTransaction, |
|
153 EEndDbTransaction, |
|
154 ERollbackDbTransaction, |
|
155 ECntCloseDbTables, |
|
156 ELockSrvNotSupported |
|
157 |
|
158 |
|
159 // Not supported |
|
160 }; |
|
161 |
|
162 |
|
163 /** |
|
164 Set to an out of range drive value to indicate all drives. |
|
165 */ |
|
166 enum TCntDrives {ECntAllDrives = 26}; |
|
167 |
|
168 |
|
169 #endif |