|
1 /* |
|
2 * Copyright (c) 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 the License "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 #ifndef TCONSTANTS_H |
|
20 #define TCONSTANTS_H |
|
21 /** |
|
22 * InterfaceName ILogging |
|
23 * Contenttypes Service.Logging |
|
24 */ |
|
25 |
|
26 _LIT8(KDsInterfaceName , "IDataSource") ; |
|
27 _LIT8(KLoggingContents , "Service.Logging") ; |
|
28 |
|
29 |
|
30 /** |
|
31 * Error Indntifier in Output parameter list |
|
32 */ |
|
33 _LIT8(KErrorCode , "ErrorCode") ; |
|
34 _LIT8(KResponse,"ReturnValue"); |
|
35 |
|
36 /** |
|
37 * Content type |
|
38 */ |
|
39 |
|
40 _LIT16(KContentType , "Log") ; |
|
41 |
|
42 /** |
|
43 * Content Type Key |
|
44 */ |
|
45 _LIT8(KContentTypeKey , "Type") ; |
|
46 /** |
|
47 * Operations on the IDatasource(Logging) interface |
|
48 */ |
|
49 _LIT8(KCmdAdd , "Add") ; |
|
50 _LIT8(KCmdDelete , "Delete") ; |
|
51 _LIT8(KCmdGetList ,"GetList") ; |
|
52 _LIT8(KCmdRequestNotification ,"RequestNotification") ; |
|
53 _LIT8(KCmdCancel ,"Cancel") ; |
|
54 /** |
|
55 * Position Item |
|
56 */ |
|
57 _LIT8(KPosItem , "PosItem") ; |
|
58 |
|
59 |
|
60 /** |
|
61 * Transaction id, which will be part of outparamlist for asynchronous request |
|
62 */ |
|
63 _LIT8(KTransactionId, "TransactionID"); |
|
64 |
|
65 /** |
|
66 * Event map that contains the details of the event to be logged |
|
67 */ |
|
68 |
|
69 /** |
|
70 * Filter for getlist operation |
|
71 */ |
|
72 _LIT8(KFilter , "Filter") ; |
|
73 _LIT8(KEventDetails , "Item") ; |
|
74 _LIT8(KData , "Data") ; |
|
75 |
|
76 /** |
|
77 * DelayInterval.... |
|
78 */ |
|
79 _LIT8(KDelayTime , "DelayTime") ; |
|
80 |
|
81 /** |
|
82 * Key for identifying the type of the event in event map |
|
83 */ |
|
84 _LIT8(KEventTypeKey , "EventType") ; |
|
85 |
|
86 /** |
|
87 * Key for identifying the remote party in event map |
|
88 */ |
|
89 _LIT8(KRemotePartyKey , "RemoteParty") ; |
|
90 |
|
91 /** |
|
92 * Key for identifying the direction in event map |
|
93 */ |
|
94 _LIT8(KDirectionKey , "Direction") ; |
|
95 |
|
96 /** |
|
97 * Key for identifying the time in event map |
|
98 */ |
|
99 _LIT8(KEventTimeKey , "EventTime") ; |
|
100 |
|
101 /** |
|
102 * Key for identifying the duration in event map |
|
103 */ |
|
104 _LIT8(KEventDurationKey , "EventDuration") ; |
|
105 |
|
106 /** |
|
107 * Key for identifying the deliverystatus in event map |
|
108 */ |
|
109 _LIT8(KDeliveryStatusKey , "DeliveryStatus") ; |
|
110 |
|
111 /** |
|
112 * Key for identifying the subject in event map |
|
113 */ |
|
114 _LIT8(KSubjectKey , "Subject") ; |
|
115 |
|
116 |
|
117 /** |
|
118 * Key for identifying the phonenumber in event map |
|
119 */ |
|
120 _LIT8(KPhoneNumberKey , "PhoneNumber") ; |
|
121 |
|
122 |
|
123 /** |
|
124 * Key for identifying the contactid in event map |
|
125 */ |
|
126 _LIT8(KContactidKey , "Contactid") ; |
|
127 |
|
128 |
|
129 |
|
130 /** |
|
131 * Key for identifying the description in event map |
|
132 */ |
|
133 _LIT8(KDescriptionKey , "Description") ; |
|
134 |
|
135 |
|
136 |
|
137 /** |
|
138 * Key for identifying the eventdata in event map |
|
139 */ |
|
140 _LIT8(KEventDataKey , "EventData") ; |
|
141 |
|
142 |
|
143 |
|
144 /** |
|
145 * Key for identifying the link in event map |
|
146 */ |
|
147 _LIT8(KLinkKey , "Link") ; |
|
148 |
|
149 /** |
|
150 * EndTime Key, for getlist filter |
|
151 */ |
|
152 _LIT8(KEndTimeKey , "EndTime") ; |
|
153 |
|
154 |
|
155 |
|
156 /** |
|
157 * Key for the flags fields |
|
158 */ |
|
159 _LIT8(KFlagsKey , "LogFlags") ; |
|
160 |
|
161 /** |
|
162 * Liwiterator key in outparamlist |
|
163 */ |
|
164 _LIT8(KLogIter , "Iterator") ; |
|
165 |
|
166 /** |
|
167 * Error Code |
|
168 */ |
|
169 _LIT8(KErrCode , "ErrorCode") ; |
|
170 |
|
171 /** |
|
172 * Keys for the filter input paramater for getlist api |
|
173 */ |
|
174 _LIT8(KAllEvents , "All") ; |
|
175 |
|
176 /** |
|
177 * Key for RecentList for Filter |
|
178 */ |
|
179 _LIT8(KRecentListKey , "RecentList") ; |
|
180 |
|
181 _LIT8(KLogId , "id") ; |
|
182 |
|
183 |
|
184 |
|
185 |
|
186 enum RequestType |
|
187 { |
|
188 EAddEvent , |
|
189 EGetList , |
|
190 }; |
|
191 |
|
192 enum EeventType |
|
193 { |
|
194 KCallEvent , |
|
195 KLogDataEvent, |
|
196 KLogFaxEvent, |
|
197 KLogShortMessageEvent, |
|
198 KLogMailEvent, |
|
199 KLogTaskSchedulerEvent, |
|
200 KLogPacketDataEvent, |
|
201 KLogLbsSelfLocateEvent, |
|
202 KLogLbsExternalLocateEvent, |
|
203 KLogLbsTransmitLocationEvent, |
|
204 KLogLbsNetworkLocateEvent, |
|
205 KLogLbsAssistanceDataEvent, |
|
206 |
|
207 }; |
|
208 |
|
209 const TInt KLogMaxRemotePartyLength = 64; |
|
210 const TInt KLogMaxDirectionLength = 64; |
|
211 const TInt KLogMaxStatusLength = 64; |
|
212 const TInt KLogMaxSubjectLength = 64; |
|
213 const TInt KLogMaxDescriptionLength = 64; |
|
214 const TInt KLogMaxSharedStringLength = 64; |
|
215 const TInt KLogMaxNumberLength = 100; |
|
216 |
|
217 #endif |
|
218 |
|
219 |