|
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 #ifndef EVENTDETAILS_H |
|
19 #define EVENTDETAILS_H |
|
20 |
|
21 #include "tconstants.h" |
|
22 |
|
23 |
|
24 |
|
25 class CEventDetails : public CBase |
|
26 { |
|
27 public : |
|
28 |
|
29 /** |
|
30 * NewL: Two phased construction |
|
31 */ |
|
32 |
|
33 IMPORT_C static CEventDetails *NewL() ; |
|
34 |
|
35 /** |
|
36 * NewLC: Creates an instance of CLoggingServiceClass |
|
37 * Two Phased constructor |
|
38 * returns newly allocated object. |
|
39 */ |
|
40 |
|
41 static CEventDetails* NewLC() ; |
|
42 |
|
43 /** |
|
44 * SetEventType, set the request type |
|
45 * |
|
46 * @param aParseValue |
|
47 */ |
|
48 |
|
49 inline void SetEventType(TInt32 aParseValue) |
|
50 { |
|
51 iEventType = aParseValue ; |
|
52 } |
|
53 |
|
54 /** |
|
55 * GetEventtType, gets the request type of |
|
56 */ |
|
57 |
|
58 inline TInt32 GetEventType(void) |
|
59 { |
|
60 return iEventType ; |
|
61 } |
|
62 |
|
63 /** |
|
64 * SetDurationType, set the request type |
|
65 * |
|
66 * @param aParseValue |
|
67 */ |
|
68 |
|
69 inline void SetDurationType(TInt32 aParseValue) |
|
70 { |
|
71 |
|
72 iDuration = aParseValue ; |
|
73 } |
|
74 |
|
75 /** |
|
76 * GetDurationType, gets the request type of |
|
77 */ |
|
78 |
|
79 inline TInt32 GetDurationType(void) |
|
80 { |
|
81 //if(iDuration!=0) |
|
82 return iDuration ; |
|
83 //else |
|
84 // return KErrNotFound; |
|
85 } |
|
86 |
|
87 /** |
|
88 * SetContactType, set the request type |
|
89 * |
|
90 * @param aParseValue |
|
91 */ |
|
92 |
|
93 inline void SetContactType(TInt32 aParseValue) |
|
94 { |
|
95 iContact = aParseValue ; |
|
96 } |
|
97 |
|
98 /** |
|
99 * GetContactType, gets the request type of |
|
100 */ |
|
101 |
|
102 inline TInt32 GetContactType(void) |
|
103 { |
|
104 //if(iContact!=0) |
|
105 return iContact ; |
|
106 //else |
|
107 //return KErrNotFound; |
|
108 } |
|
109 |
|
110 /** |
|
111 * SetLinkType, set the request type |
|
112 * |
|
113 * @param aParseValue |
|
114 */ |
|
115 |
|
116 inline void SetLinkType(TInt32 aParseValue) |
|
117 { |
|
118 iLink = aParseValue ; |
|
119 } |
|
120 |
|
121 /** |
|
122 * GetLinkType, gets the request type of |
|
123 */ |
|
124 |
|
125 inline TInt32 GetLinkType(void) |
|
126 { |
|
127 //if(iLink!=0) |
|
128 return iLink ; |
|
129 // else |
|
130 // return KErrNotFound; |
|
131 |
|
132 } |
|
133 |
|
134 /** |
|
135 * SetTimer, set the request type |
|
136 * |
|
137 * @param aParseValue |
|
138 */ |
|
139 |
|
140 inline void SetTimer(TTime aParseValue) |
|
141 { |
|
142 iTime = aParseValue ; |
|
143 } |
|
144 |
|
145 /** |
|
146 * GetLinkType, gets the request type of |
|
147 */ |
|
148 |
|
149 inline TTime GetTimer(void) |
|
150 { |
|
151 //if(iTime!=0) |
|
152 return iTime ; |
|
153 //else |
|
154 // return KErrNotFound; |
|
155 } |
|
156 |
|
157 /** |
|
158 * SetSubjecttype ,set the request type |
|
159 * |
|
160 * @param aString |
|
161 */ |
|
162 |
|
163 inline void SetSubjectType(TDesC& aString) |
|
164 { |
|
165 iSubject=aString ; |
|
166 } |
|
167 |
|
168 /** |
|
169 * GetSubjectType, gets the request type of |
|
170 */ |
|
171 |
|
172 inline TDesC& GetSubjectType(void) |
|
173 { |
|
174 return iSubject ; |
|
175 } |
|
176 |
|
177 /** |
|
178 * SetNumbertype ,set the request type |
|
179 * |
|
180 * @param aString |
|
181 */ |
|
182 |
|
183 inline void SetNumberType(TDesC& aString) |
|
184 { |
|
185 iNumber=aString ; |
|
186 } |
|
187 |
|
188 /** |
|
189 * GetNumberType, gets the request type of |
|
190 */ |
|
191 |
|
192 inline TDesC& GetNumberType(void) |
|
193 { |
|
194 |
|
195 return iNumber ; |
|
196 } |
|
197 |
|
198 |
|
199 /** |
|
200 * SetRemotepartytype ,set the request type |
|
201 * |
|
202 * @param aString |
|
203 */ |
|
204 |
|
205 inline void SetRemotePartyType(TDesC& aString) |
|
206 { |
|
207 iRemoteParty=aString ; |
|
208 } |
|
209 |
|
210 /** |
|
211 * GetRemotePartyType, gets the request type of |
|
212 */ |
|
213 |
|
214 inline TDesC& GetRemotePartyType(void) |
|
215 { |
|
216 |
|
217 return iRemoteParty ; |
|
218 } |
|
219 |
|
220 |
|
221 /** |
|
222 * SetDirectiontype ,set the request type |
|
223 * |
|
224 * @param aString |
|
225 */ |
|
226 |
|
227 inline void SetDirectionType(TInt32 aDirection) |
|
228 { |
|
229 iDirection = aDirection ; |
|
230 } |
|
231 |
|
232 /** |
|
233 * GetDirectionType, gets the request type of |
|
234 */ |
|
235 |
|
236 inline TInt32 GetDirectionType(void) |
|
237 { |
|
238 |
|
239 return iDirection ; |
|
240 } |
|
241 |
|
242 /** |
|
243 * SetDescriptiontype ,set the request type |
|
244 * |
|
245 * @param aString |
|
246 */ |
|
247 |
|
248 inline void SetDescriptionType(TDesC& aString) |
|
249 { |
|
250 iDescription=aString ; |
|
251 } |
|
252 |
|
253 /** |
|
254 * GetDescriptionType, gets the request type of |
|
255 */ |
|
256 |
|
257 inline TDesC& GetDescriptionType(void) |
|
258 { |
|
259 |
|
260 return iDescription ; |
|
261 } |
|
262 |
|
263 /** |
|
264 * SetStatustype ,set the request type |
|
265 * |
|
266 * @param aString |
|
267 */ |
|
268 |
|
269 inline void SetStatusType(TInt32 aStatus) |
|
270 { |
|
271 iStatus = aStatus ; |
|
272 } |
|
273 |
|
274 /** |
|
275 * GetStatusType, gets the request type of |
|
276 */ |
|
277 |
|
278 inline TInt32 GetStatusType(void) |
|
279 { |
|
280 |
|
281 return iStatus ; |
|
282 } |
|
283 |
|
284 |
|
285 inline void SetDataType(TDesC& aString) |
|
286 { |
|
287 iData=aString ; |
|
288 } |
|
289 |
|
290 /** |
|
291 * GetDataType, gets the request type of |
|
292 */ |
|
293 |
|
294 inline TDesC& GetDataType(void) |
|
295 { |
|
296 |
|
297 return iData ; |
|
298 } |
|
299 |
|
300 |
|
301 /** |
|
302 * Default Destructor |
|
303 */ |
|
304 |
|
305 ~CEventDetails() ; |
|
306 |
|
307 protected: |
|
308 |
|
309 |
|
310 /** |
|
311 * Default constructor |
|
312 */ |
|
313 |
|
314 CEventDetails() ; |
|
315 |
|
316 private : |
|
317 |
|
318 |
|
319 TInt32 iEventType ; |
|
320 TInt32 iDuration; |
|
321 TInt32 iContact; |
|
322 TInt32 iLink; |
|
323 |
|
324 TTime iTime; |
|
325 TBuf<KLogMaxSubjectLength> iSubject; |
|
326 TBuf<KLogMaxNumberLength> iNumber; |
|
327 TBuf<KLogMaxRemotePartyLength> iRemoteParty; |
|
328 TInt iDirection; |
|
329 TBuf<KLogMaxDescriptionLength> iDescription; |
|
330 TInt iStatus; |
|
331 // TBuf<KLogMaxSharedStringLength> iEventData; |
|
332 TBuf<KLogMaxSharedStringLength> iData; |
|
333 |
|
334 |
|
335 }; |
|
336 |
|
337 #endif |