|
1 /* |
|
2 * Copyright (c) 2002-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 #ifndef CLFCONSTS_H |
|
21 #define CLFCONSTS_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32def.h> |
|
25 #include <e32cmn.h> |
|
26 |
|
27 // CONSTANTS |
|
28 // Server version number |
|
29 const TInt KCLFServerMajor( 1 ); |
|
30 const TInt KCLFServerCollectionManagerMajor( 2 ); |
|
31 const TInt KCLFServerMinor( 1 ); |
|
32 const TInt KCLFServerBuild( 1 ); |
|
33 _LIT( KCLFServerName, "ContentListingFrameworkServer" ); |
|
34 _LIT( KCLFServerExe, "ContentListingServer.exe" ); |
|
35 |
|
36 // Message slots |
|
37 // RCLFDatabase::PrepareItemIds |
|
38 const TInt KCLFPrepareItemIdsMimeTypeSlot( 0 ); |
|
39 const TInt KCLFPrepareItemIdsMediaTypeSlot( 1 ); |
|
40 const TInt KCLFPrepareItemIdsDataSizeSlot( 2 ); |
|
41 |
|
42 // RCLFDatabase::FetchItemIds |
|
43 // RCLFDatabase::FetchItemData |
|
44 const TInt KCLFFetchDataSlot( 0 ); |
|
45 |
|
46 // RCLFDatabase::PrepareItems |
|
47 const TInt KCLFPrepareItemsIdDataSlot( 0 ); |
|
48 const TInt KCLFPrepareItemsDataSizeSlot( 1 ); |
|
49 |
|
50 // RCLFEventHandler::GetUpdateEndEvent |
|
51 const TInt KCLFGetUpdateEventDataSizeSlot( 0 ); |
|
52 |
|
53 // RCLFEventHandler::FetchItemListData |
|
54 const TInt KCLFFetchItemListIdArraySlot( 0 ); |
|
55 |
|
56 // RCLFEventHandler::UpdateItems (id list) |
|
57 const TInt KCLFUpdateItemsIdArraySlot( 0 ); |
|
58 |
|
59 // RCLFEventHandler::UpdateItems (opaque data) |
|
60 const TInt KCLFUpdateItemsSemanticIdSlot( 0 ); |
|
61 const TInt KCLFUpdateItemsOpaqueDataSlot( 1 ); |
|
62 |
|
63 // Collection manager message slots |
|
64 // RCLFCollectionManagerServer::PrepareCollectionInfoArray |
|
65 const TInt KCLFPrepareCollectionInfoArrayDataSizePckg( 0 ); |
|
66 |
|
67 // RCLFCollectionManagerServer::FetchCollectionInfoArray |
|
68 const TInt KCLFFetchCollectionInfoArraySlot( 0 ); |
|
69 |
|
70 // RCLFCollectionManagerServer::PrepareCollectionInfoById |
|
71 const TInt KCLFPrepareCollectionInfoByIdSlot( 0 ); |
|
72 const TInt KCLFPrepareCollectionInfoByIdDataSizePckgSlot( 1 ); |
|
73 |
|
74 // RCLFCollectionManagerServer::FetchCollectionInfo |
|
75 const TInt KCLFFetchCollectionInfoSlot( 0 ); |
|
76 |
|
77 // RCLFCollectionManagerServer::CreateCollection |
|
78 const TInt KCLFCreateCollectionNameSlot( 0 ); |
|
79 const TInt KCLFCreateCollectionTypesSlot( 1 ); |
|
80 const TInt KCLFCreateCollectionPropertiesSlot( 2 ); |
|
81 const TInt KCLFCreateCollectionIdPckgSlot( 3 ); |
|
82 |
|
83 // RCLFCollectionManagerServer::DeleteCollection |
|
84 const TInt KCLFDeleteCollectionIdSlot( 0 ); |
|
85 |
|
86 // RCLFCollectionManagerServer::AddToCollection |
|
87 const TInt KCLFAddToCollectionIdSlot( 0 ); |
|
88 const TInt KCLFAddToCollectionItemArraySlot( 1 ); |
|
89 const TInt KCLFAddToCollectionRemoveFromOtherCollectionsSlot( 2 ); |
|
90 |
|
91 // RCLFCollectionManagerServer::RemoveFromCollection |
|
92 const TInt KCLFRemoveFromCollectionIdSlot( 0 ); |
|
93 const TInt KCLFRemoveFromCollectionItemArraySlot( 1 ); |
|
94 |
|
95 // RCLFCollectionManagerServer::PrepareCollectionItemArray |
|
96 const TInt KCLFPrepareCollectionItemArrayIdSlot( 0 ); |
|
97 const TInt KCLFPrepareCollectionDataSizePckgSlot( 1 ); |
|
98 |
|
99 // RCLFCollectionManagerServer::FetchCollectionItemArray |
|
100 const TInt KCLFFetchCollectionItemArrayItemsSlot( 0 ); |
|
101 |
|
102 // RCLFCollectionManagerServer::PrepareCollectionIdByItem |
|
103 const TInt KCLFPrepareCollectionIdByItemNameSlot( 0 ); |
|
104 const TInt KCLFPrepareCollectionIdByItemDataSizePckgSlot( 1 ); |
|
105 |
|
106 // RCLFCollectionManagerServer::FetchCollectionIdByItem |
|
107 const TInt KCLFFetchCollectionIdByItemCollectionIdsSlot( 0 ); |
|
108 |
|
109 // RCLFCollectionManagerServer::GetCollectionManagerChangeEvent |
|
110 const TInt KCLFGetCollectionManagerChangeEventParameterPckgSlot( 0 ); |
|
111 const TInt KCLFGetCollectionManagerChangeEventChangeEventPckgSlot( 1 ); |
|
112 |
|
113 // RCLFCollectionManagerServer::FetchChangedIds |
|
114 const TInt KCLFFetchChangedCollectinIdsSlot( 0 ); |
|
115 |
|
116 // RCLFCollectionManagerServer::RenameCollection |
|
117 const TInt KCLFRenameCollectionIdSlot( 0 ); |
|
118 const TInt KCLFRenameCollectionNewNameSlot( 1 ); |
|
119 |
|
120 // RCLFCollectionManagerServer::RemoveFromAllCollections |
|
121 const TInt KCLFRemoveFromAllCollectionsItemArraySlot( 0 ); |
|
122 |
|
123 // RCLFCollectionManagerServer::GetDriveById |
|
124 const TInt KCLFGetDriveIdSlot( 0 ); |
|
125 const TInt KCLFGetDriveCollectionDriveSlot( 1 ); |
|
126 |
|
127 // DATA TYPES |
|
128 enum TCLFServerOpCodes |
|
129 { |
|
130 ECLFCancelPrepare = 0x0, // RCLFDatabase::CancelPrepareItems |
|
131 ECLFCancelEvent = 0x1, // RCLFEventHandler::CancelGetEvent |
|
132 ECLFPrepareItems = 0x2, // RCLFDatabase::PrepareItems |
|
133 ECLFFetchItems = 0x3, // RCLFDatabase::FetchItemData |
|
134 ECLFFetchChangedItems = 0x4, // RCLFEventHandler::FetchItemListData |
|
135 ECLFUpdateItems = 0x5, // RCLFEventHandler::UpdateItems |
|
136 ECLFUpdateAllItems = 0x6, // RCLFEventHandler::UpdateAllItems |
|
137 ECLFGetUpdateEvent = 0x7, // RCLFEventHandler::GetUpdateEndEvent |
|
138 ECLFUpdateItemsOpaqueData = 0x8, // RCLFEventHandler::UpdateItems |
|
139 ECLFProcessStartEvent = 0x9, // RCLFEventHandler::GetUpdateStartEvent |
|
140 ECLFCancelStartEvent = 0xA, // RCLFEventHandler::CancelGetUpdateStartEvent |
|
141 ECLFFetchItemIds = 0xB, // RCLFDatabase::FetchItemIds |
|
142 ECLFPrepareItemIds = 0xC, // RCLFDatabase::PrepareItemIds |
|
143 ECLFCancelPrepareIds = 0xD, // RCLFDatabase::CancelPrepareItemIds |
|
144 |
|
145 //Collection manager op codes |
|
146 ECLFPrepareCollectionById = 0xE, |
|
147 ECLFFetchPreparedCollection = 0xF, |
|
148 ECLFPrepareCollectionInfoArray = 0x10, |
|
149 ECLFFetchCollectionInfoArray = 0x11, |
|
150 ECLFCreateCollection = 0x12, |
|
151 ECLFDeleteCollection = 0x13, |
|
152 ECLFRenameCollection = 0x14, |
|
153 ECLFAddToCollection = 0x15, |
|
154 ECLFRemoveFromCollection = 0x16, |
|
155 ECLFPrepareCollectionItems = 0x17, |
|
156 ECLFFetchCollectionItems = 0x18, |
|
157 ECLFPrepareCollectionIdByItem = 0x19, |
|
158 ECLFFetchCollectionIdByItem = 0x1A, |
|
159 ECLFGetCollectionChangeEvent = 0x1B, |
|
160 ECLFFetchChangedCollectionIds = 0x1C, |
|
161 ECLFCancelCollectionEvent = 0x1D, |
|
162 ECLFRemoveFromAllCollections = 0x1E, |
|
163 ECLFGetDriveById = 0x1F |
|
164 |
|
165 }; |
|
166 |
|
167 const TInt KCLFCheck( -43464 ); //Security check |
|
168 |
|
169 enum TCMChangeEventParameters |
|
170 { |
|
171 ECLFCollectionDataChanged = 0x1, |
|
172 ECLFCollectionManagerError = 0x2 |
|
173 }; |
|
174 |
|
175 // MACROS |
|
176 #define IS_FLAG( flags, flag ) ( flags & flag ) |
|
177 #define SET_FLAG( flags, flag ) ( flags |= flag ) |
|
178 #define REMOVE_FLAG( flags, flag ) ( flags &= ~flag ) |
|
179 |
|
180 const TInt KCLFUpdateFoldersSemanticId = 0x1000; |
|
181 const TInt KCLFUpdateCollectionsSemanticId = 0x1001; |
|
182 const TInt KCLFItemsDeletedSemanticId = 0x1002; |
|
183 |
|
184 #endif // CLFCONSTS_H |
|
185 |
|
186 // End of File |