79 const TUint32 KConversationCachingEventStarted = 0x00000040; |
79 const TUint32 KConversationCachingEventStarted = 0x00000040; |
80 const TUint32 KConversationCachingEventCompleted = 0x00000080; |
80 const TUint32 KConversationCachingEventCompleted = 0x00000080; |
81 const TUint32 KConversationCachingEventError = 0x00000100; |
81 const TUint32 KConversationCachingEventError = 0x00000100; |
82 const TUint32 KConversationEventListRefresh = 0x00000200; |
82 const TUint32 KConversationEventListRefresh = 0x00000200; |
83 const TUint32 KConversationEventRefresh = 0x00000400; |
83 const TUint32 KConversationEventRefresh = 0x00000400; |
|
84 const TUint32 KConversationListEventPartialDelete = 0x00000800; |
84 |
85 |
85 //----------------------------------------------------------------------------- |
86 //----------------------------------------------------------------------------- |
86 // Conversation Server caching status codes |
87 // Conversation Server caching status codes |
87 //----------------------------------------------------------------------------- |
88 //----------------------------------------------------------------------------- |
88 const TUint8 KCachingStatusUnknown = 0x00; |
89 const TUint8 KCachingStatusUnknown = 0x00; |
118 EShutdown, |
119 EShutdown, |
119 EUserDeleteConversation, |
120 EUserDeleteConversation, |
120 EGetConversationId, |
121 EGetConversationId, |
121 EGetConversationIdFromAddress, |
122 EGetConversationIdFromAddress, |
122 EGetConversationFromMessageId, |
123 EGetConversationFromMessageId, |
123 EUserMarkReadConversation |
124 EUserMarkReadConversation, |
|
125 EGetConversationFromConversationId, |
|
126 EGetConversationFromConversationIdComplete |
124 }; |
127 }; |
125 |
128 |
126 //----------------------------------------------------------------------------- |
129 //----------------------------------------------------------------------------- |
127 // Response commands from the conversation server |
130 // Response commands from the conversation server |
128 //----------------------------------------------------------------------------- |
131 //----------------------------------------------------------------------------- |
135 EAddConversationListEvent, |
138 EAddConversationListEvent, |
136 EDeleteConversationListEvent, |
139 EDeleteConversationListEvent, |
137 EModifyConversationListEvent, |
140 EModifyConversationListEvent, |
138 EAddConversationEvent, |
141 EAddConversationEvent, |
139 EDeleteConversationEvent, |
142 EDeleteConversationEvent, |
|
143 EPartialDeleteConversationListEvent, |
140 EModifyConversationEvent, |
144 EModifyConversationEvent, |
141 ECachingStartedEvent, |
145 ECachingStartedEvent, |
142 ECachingCompletedEvent, |
146 ECachingCompletedEvent, |
143 ECachingErrorEvent, |
147 ECachingErrorEvent, |
144 EInitRequestChange, //initiate request change request to server |
148 EInitRequestChange, //initiate request change request to server |
314 EPreviewMsgNotProcessed = 0, |
318 EPreviewMsgNotProcessed = 0, |
315 EPreviewMsgProcessing = 1, |
319 EPreviewMsgProcessing = 1, |
316 EPreviewMsgProcessed = 2 |
320 EPreviewMsgProcessed = 2 |
317 }; |
321 }; |
318 |
322 |
|
323 /** |
|
324 @publishedAll |
|
325 @released |
|
326 |
|
327 Template class CleanupResetAndDestroy to clean up the array |
|
328 of implementation information from the cleanup stack. |
|
329 */ |
|
330 |
|
331 template <class T> |
|
332 class CleanupResetAndDestroy |
|
333 { |
|
334 public: |
|
335 /** |
|
336 Puts an item on the cleanup stack. |
|
337 |
|
338 @param aRef |
|
339 The implementation information to be put on the cleanup stack. |
|
340 */ |
|
341 inline static void PushL(T& aRef); |
|
342 inline static void PushL(T* aPointer); |
|
343 private: |
|
344 static void ResetAndDestroy(TAny *aPtr); |
|
345 static void ResetAndDestroyDelete(TAny *aPtr); |
|
346 }; |
|
347 template <class T> |
|
348 inline void CleanupResetAndDestroyPushL(T& aRef); |
|
349 |
|
350 template <class T> |
|
351 inline void CleanupResetAndDestroyPushL(T* aPointer); |
|
352 |
|
353 template <class T> |
|
354 inline void CleanupResetAndDestroy<T>::PushL(T& aRef) |
|
355 {CleanupStack::PushL(TCleanupItem(&ResetAndDestroy,&aRef));} |
|
356 |
|
357 template <class T> |
|
358 inline void CleanupResetAndDestroy<T>::PushL(T* aPointer) |
|
359 {CleanupStack::PushL(TCleanupItem(&ResetAndDestroyDelete,aPointer));} |
|
360 |
|
361 template <class T> |
|
362 void CleanupResetAndDestroy<T>::ResetAndDestroy(TAny *aPtr) |
|
363 {(STATIC_CAST(T*,aPtr))->ResetAndDestroy();} |
|
364 |
|
365 template <class T> |
|
366 void CleanupResetAndDestroy<T>::ResetAndDestroyDelete(TAny *aPtr) |
|
367 { |
|
368 (STATIC_CAST(T*,aPtr))->ResetAndDestroy(); |
|
369 delete (STATIC_CAST(T*,aPtr)); |
|
370 } |
|
371 |
|
372 template <class T> |
|
373 inline void CleanupResetAndDestroyPushL(T& aRef) |
|
374 {CleanupResetAndDestroy<T>::PushL(aRef);} |
|
375 |
|
376 template <class T> |
|
377 inline void CleanupResetAndDestroyPushL(T* aPointer) |
|
378 {CleanupResetAndDestroy<T>::PushL(aPointer);} |
|
379 |
319 #endif // __C_CSSERVER_DEFS_H__ |
380 #endif // __C_CSSERVER_DEFS_H__ |
320 |
381 |
321 // End of file |
382 // End of file |