|
1 // Copyright (c) 1997-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 // |
|
15 |
|
16 #ifndef __AGMSERV_H__ |
|
17 #define __AGMSERV_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 |
|
21 |
|
22 const TUint KAgnServerMajorVersion = 0; |
|
23 const TUint KAgnServerMinorVersion = 1; |
|
24 const TUint KAgnServerBuildVersion = 1; |
|
25 |
|
26 const TInt KInitialBufferSize = 1024; // Initalize buffers to 2K |
|
27 |
|
28 // Define server name |
|
29 |
|
30 _LIT(KAgendaServerName,"!AgendaServer"); |
|
31 |
|
32 _LIT(KAgendaServerExe,"AGSVEXE.EXE"); |
|
33 |
|
34 const TInt KCapabilityNone = 0; |
|
35 const TInt KCapabilityReadUserData = 100; |
|
36 const TInt KCapabilityWriteUserData = 200; |
|
37 |
|
38 const TInt KTransferAttachmentToSrvFsArgIndex = 2; |
|
39 const TInt KTransferAttachmentToSrvFileArgIndex = 3; |
|
40 const TInt KTransferAttachmentToCliFileArgIndex = 1; |
|
41 |
|
42 enum TAgendaServerFunction |
|
43 { |
|
44 // No capability required |
|
45 EOpenAgenda = KCapabilityNone, |
|
46 ECloseAgenda, |
|
47 ETransmitBuffer, |
|
48 EGetInstanceExtractor, |
|
49 EPreviousInstances, |
|
50 ENextInstances, |
|
51 ECreateEntryIterator, |
|
52 EEntryIteratorNext, |
|
53 EGetEntryUidsSinceDate, |
|
54 EGetCategoryListCount, |
|
55 ECategoryFilter, |
|
56 EStartBuildIndex, |
|
57 EGetListFileNames, |
|
58 ECancelTask, |
|
59 EAgnResourceCount, // test |
|
60 EAgnHeapSizeCount, // test |
|
61 EAgnSetHeapFailure, // test |
|
62 EAgendaFileExists, |
|
63 EDisableChangeBroadcast, |
|
64 EEnableChangeBroadcast, |
|
65 ERequestChangeNotificationParameters, |
|
66 ERequestChangeNotification, |
|
67 ECancelChangeNotification, |
|
68 ERequestProgress, |
|
69 ESetUpdateAlarm, |
|
70 ESetEnablePubSubNotification, |
|
71 ERestoreAlarmAction, |
|
72 ETzDbChangedTime, |
|
73 |
|
74 // ReadUserData required |
|
75 EFetchEntry = KCapabilityReadUserData, |
|
76 EFetchEntryByUID, |
|
77 EFetchSimpleEntry, |
|
78 EFetchSimpleEntries, |
|
79 ERestoreText, |
|
80 EGetCategoryListItem, |
|
81 EGetChangesSinceLastNotification, |
|
82 EFindInstances, |
|
83 EFetchEntryByGuid, |
|
84 EFetchSimpleEntriesByGuid, |
|
85 ETransferAttachmentFileToClient, |
|
86 EFetchSortedAttachments, |
|
87 EEntriesWithAttachment, |
|
88 EFetchAttachmentById, |
|
89 EInstanceIteratorCreate, |
|
90 EInstanceIteratorDestroy, |
|
91 EInstanceIteratorNext, |
|
92 EInstanceIteratorPrevious, |
|
93 EInstanceIteratorCount, |
|
94 EInstanceIteratorLocateIndex, |
|
95 EFetchSimpleEntryByUID, |
|
96 EEntryIteratorPosition, |
|
97 EGetCalendarInfo, |
|
98 EGetPropertyValue, |
|
99 EGetFileChangesSinceLastNotification, |
|
100 |
|
101 // WriteUserData required |
|
102 EUpdateEntry = KCapabilityWriteUserData, |
|
103 EAddEntry, |
|
104 EDeleteEntry, |
|
105 EAddCategoryToList, |
|
106 EDeleteAgendaFile, |
|
107 ETidyByDateReadParams, |
|
108 ETidyByDateStart, |
|
109 ECategoryStart, |
|
110 ECategoryStartAsyn, |
|
111 ECreateAgendaFile, |
|
112 EDeleteEntriesByLocalUid, |
|
113 EDeleteEntryByGuid, |
|
114 ECommit, |
|
115 ERollback, |
|
116 ETransferAttachmentFileToServer, |
|
117 ETransferFileToClientToWrite, |
|
118 EMoveFileToServer, |
|
119 ESetCalendarInfo, |
|
120 // Do not put new server functions after here |
|
121 EAgnNotSupported |
|
122 }; |
|
123 |
|
124 #endif |