equal
deleted
inserted
replaced
23 // FORWARD DECLARATIONS |
23 // FORWARD DECLARATIONS |
24 class CMsvSession; |
24 class CMsvSession; |
25 class MMsvSessionObserver; |
25 class MMsvSessionObserver; |
26 class CConversationCache; |
26 class CConversationCache; |
27 class CCsConversationEntry; |
27 class CCsConversationEntry; |
28 class MCsConversationDeleteObserver; |
|
29 |
28 |
30 /** |
29 /** |
31 * Delete handler states |
30 * Delete handler states |
32 */ |
31 */ |
33 enum TDeleteHandlerState |
32 enum TDeleteHandlerState |
46 { |
45 { |
47 public: |
46 public: |
48 /** |
47 /** |
49 * Two phase construction |
48 * Two phase construction |
50 */ |
49 */ |
51 static CCsConversationDeleteHandler* NewL(CCsConversationCache* aCache, |
50 static CCsConversationDeleteHandler* NewL(CCsConversationCache* aCache); |
52 MCsConversationDeleteObserver* aObserver); |
|
53 |
51 |
54 /** |
52 /** |
55 * Destructor |
53 * Destructor |
56 */ |
54 */ |
57 virtual ~CCsConversationDeleteHandler(); |
55 virtual ~CCsConversationDeleteHandler(); |
72 void RunL(); |
70 void RunL(); |
73 void DoCancel(); |
71 void DoCancel(); |
74 |
72 |
75 private: |
73 private: |
76 CCsConversationDeleteHandler(); |
74 CCsConversationDeleteHandler(); |
77 void ConstructL(CCsConversationCache* aCache, |
75 void ConstructL(CCsConversationCache* aCache); |
78 MCsConversationDeleteObserver* aObserver); |
|
79 void IssueRequest(); |
76 void IssueRequest(); |
80 void DeleteOneMessage(); |
77 void DeleteOneMessage(); |
81 |
78 |
82 private: |
79 private: |
83 /** |
80 /** |
84 * Own. Msv Session. |
81 * Own. Msv Session. |
85 */ |
82 */ |
86 CMsvSession* iSession; |
83 CMsvSession* iSession; |
87 |
|
88 /** |
|
89 * iObserverList |
|
90 * List of observers |
|
91 * Own. |
|
92 */ |
|
93 MCsConversationDeleteObserver* iObserver; |
|
94 |
84 |
95 /** |
85 /** |
96 * State |
86 * State |
97 */ |
87 */ |
98 TDeleteHandlerState iState; |
88 TDeleteHandlerState iState; |
114 |
104 |
115 /** |
105 /** |
116 * Conversation Id currently being deleted. |
106 * Conversation Id currently being deleted. |
117 */ |
107 */ |
118 TInt iConversationId; |
108 TInt iConversationId; |
|
109 |
|
110 /** |
|
111 * Number of Messages in Sending state that are not deleted |
|
112 */ |
|
113 TInt iSendStateMsgs; |
|
114 |
|
115 |
119 }; |
116 }; |
120 |
117 |
121 #endif // __C_CS_CONVERSATION_DELETE_HANDLER_H__ |
118 #endif // __C_CS_CONVERSATION_DELETE_HANDLER_H__ |