msg_plat/conversation_services_utilities_api/inc/ccsdefs.h
changeset 37 518b245aa84c
parent 25 84d9eb65b26f
child 41 25fe1fe642e3
equal deleted inserted replaced
25:84d9eb65b26f 37:518b245aa84c
    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
   192 ECsBlueTooth,
   196 ECsBlueTooth,
   193 ECsRingingTone,
   197 ECsRingingTone,
   194 ECsProvisioning,
   198 ECsProvisioning,
   195 ECsBioMsg_VCard,
   199 ECsBioMsg_VCard,
   196 ECsBioMsg_VCal,
   200 ECsBioMsg_VCal,
       
   201 ECsBioMgs_NokiaService,
   197 ECsUnknown
   202 ECsUnknown
   198 };
   203 };
   199 
   204 
   200 /**
   205 /**
   201  * @typedef TCsType
   206  * @typedef TCsType
   281 /**
   286 /**
   282  * Internal offset used to identify SIM contacts.
   287  * Internal offset used to identify SIM contacts.
   283  */
   288  */
   284 const TInt KSimIdOffset = 99999;
   289 const TInt KSimIdOffset = 99999;
   285 
   290 
       
   291 /**
       
   292  * @typedef TCsMsgPreviewProperty
       
   293  */
       
   294 
       
   295 enum 
       
   296 {
       
   297   EPreviewNone           = 0x0000,
       
   298   EPreviewImage          = 0x0001,
       
   299   EPreviewAudio          = 0x0002,
       
   300   EPreviewVideo          = 0x0004,
       
   301   EPreviewAttachment     = 0x0008,
       
   302   EPreviewForward        = 0x0010,
       
   303   EPreviewProtectedImage = 0x0020,
       
   304   EPreviewProtectedAudio = 0x0040,
       
   305   EPreviewProtectedVideo = 0x0080,
       
   306   EPreviewCorruptedImage = 0x0100,
       
   307   EPreviewCorruptedAudio = 0x0200,
       
   308   EPreviewCorruptedVideo = 0x0400
       
   309 };
       
   310 
       
   311 typedef TUint16 TCsMsgPreviewProperty;
       
   312 
       
   313 /**
       
   314  * @typedef TCsPreviewMsgProcessingState
       
   315  */
       
   316 enum
       
   317 {
       
   318     EPreviewMsgNotProcessed       = 0,
       
   319     EPreviewMsgProcessing         = 1,
       
   320     EPreviewMsgProcessed          = 2
       
   321 };
       
   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 	
   286 #endif // __C_CSSERVER_DEFS_H__
   380 #endif // __C_CSSERVER_DEFS_H__
   287 
   381 
   288 // End of file
   382 // End of file