messagingapp/msgappfw/server/inc/ccssession.h
changeset 37 518b245aa84c
parent 25 84d9eb65b26f
equal deleted inserted replaced
25:84d9eb65b26f 37:518b245aa84c
    16  */
    16  */
    17 
    17 
    18 #ifndef __C_CS_SESSION_H
    18 #ifndef __C_CS_SESSION_H
    19 #define __C_CS_SESSION_H
    19 #define __C_CS_SESSION_H
    20 
    20 
    21 // USER INCLUDE FILES
       
    22 #include "mcsconversationdeleteobserver.h"
       
    23 #include "mcsconversationmarkreadobserver.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
    21 // FORWARD DECLARATIONS
    26 class CCsServer;
    22 class CCsServer;
    27 class CCsPluginInterface;
    23 class CCsPluginInterface;
    28 class CCsClientConversation;
    24 class CCsClientConversation;
    29 class CCsConversationEvent;
    25 class CCsConversationEvent;
    30 class CCsConversationDeleteHandler;
       
    31 class CCsConversationMarkReadHandler;
       
    32 
    26 
    33 // CLASS DECLARATIONS
    27 // CLASS DECLARATIONS
    34 
    28 
    35 /**
    29 /**
    36  * Represents a session (version 2) for a client thread on 
    30  * Represents a session (version 2) for a client thread on 
    37  * the server side
    31  * the server side
    38  */
    32  */
    39 class CCsSession : public CSession2,
    33 class CCsSession : public CSession2
    40 public MCsConversationDeleteObserver,
       
    41 public MCsConversationMarkReadObserver
       
    42     {
    34     {
    43 public:
    35 public:
    44 
    36 
    45     /**
    37     /**
    46      * Two phase construction
    38      * Two phase construction
    98      * @param aClientConversation the client conversation to be processed
    90      * @param aClientConversation the client conversation to be processed
    99      */
    91      */
   100     void HandleModifyConversationListEventL(
    92     void HandleModifyConversationListEventL(
   101             CCsClientConversation* aClientConversation);      
    93             CCsClientConversation* aClientConversation);      
   102 
    94 
       
    95 	/**
       
    96 	 * HandlePartialDeleteConversationListEvent
       
    97 	 * Handles the partial delete conversation event from cache
       
    98 	 */
       
    99     void HandlePartialDeleteConversationListEvent(
       
   100             CCsClientConversation* aClientConversation);
       
   101     
   103     /**
   102     /**
   104      * HandleNewConversationEventL
   103      * HandleNewConversationEventL
   105      * Handles the new conversation event received from cache
   104      * Handles the new conversation event received from cache
   106      * asynchronously
   105      * asynchronously
   107      * 
   106      * 
   150      * HandleRefreshConversationList.
   149      * HandleRefreshConversationList.
   151      * Notify client to refresh conversations.
   150      * Notify client to refresh conversations.
   152      */
   151      */
   153     void HandleRefreshConversationL();
   152     void HandleRefreshConversationL();
   154 
   153 
   155 public:
   154    
   156     // From MCsConversationDeleteObserver
       
   157     void DeleteComplete(CCsConversationDeleteHandler* aHandler);
       
   158     void DeleteInProgress(CCsConversationDeleteHandler* aHandler);
       
   159 
       
   160 public:
       
   161     // From MCsConversationMarkReadObserver
       
   162     void MarkReadComplete(CCsConversationMarkReadHandler* aHandler);
       
   163     
       
   164 private:
   155 private:
   165 
   156 
   166     /**
   157     /**
   167      * Second phase constructor
   158      * Second phase constructor
   168      */
   159      */
   343      * Get the conversation id from address
   334      * Get the conversation id from address
   344      * 
   335      * 
   345      * @param aMessage RMessage instance
   336      * @param aMessage RMessage instance
   346      */
   337      */
   347     void GetConversationIdfromAddressL(const RMessage2& aMessage);
   338     void GetConversationIdfromAddressL(const RMessage2& aMessage);
       
   339 
       
   340     void GetConversationFromConversationIdL(const RMessage2& aMessage);
   348 	
   341 	
   349 	/**
   342 	/**
   350      * GetConversationFromMessageIdL
   343      * GetConversationFromMessageIdL
   351      * Get the conversation from message-id
   344      * Get the conversation from message-id
   352      * 
   345      * 
   372 
   365 
   373     /**
   366     /**
   374      * Buf for doing IPC
   367      * Buf for doing IPC
   375      * Own
   368      * Own
   376      */
   369      */
   377     HBufC8* des;
   370     HBufC8*  iDes;
   378 
   371 
   379     /**
   372     /**
   380      * iEventList
   373      * iEventList
   381      * Temp list of cache change event 
   374      * Temp list of cache change event 
   382      * Own
   375      * Own