equal
deleted
inserted
replaced
20 // SYSTEM INCLUDE FILES |
20 // SYSTEM INCLUDE FILES |
21 #include <msvapi.h> |
21 #include <msvapi.h> |
22 |
22 |
23 // FORWARD DECLARATIONS |
23 // FORWARD DECLARATIONS |
24 class CMsvSession; |
24 class CMsvSession; |
25 class MMsvSessionObserver; |
|
26 class CConversationCache; |
25 class CConversationCache; |
27 class CCsConversationEntry; |
26 class CCsConversationEntry; |
28 class MCsConversationMarkReadObserver; |
27 class MMsvSessionObserver; |
29 |
|
30 /** |
28 /** |
31 * Mark read handler states |
29 * Mark read handler states |
32 */ |
30 */ |
33 enum TMarkReadHandlerState |
31 enum TMarkReadHandlerState |
34 { |
32 { |
39 }; |
37 }; |
40 |
38 |
41 /** |
39 /** |
42 * This class handles mark read of messages from messaging store. |
40 * This class handles mark read of messages from messaging store. |
43 */ |
41 */ |
44 class CCsConversationMarkReadHandler : public CActive, |
42 class CCsConversationMarkReadHandler : public CActive, public MMsvSessionObserver |
45 public MMsvSessionObserver |
43 { |
46 { |
|
47 public: |
44 public: |
48 /** |
45 /** |
49 * Two phase construction |
46 * Two phase construction |
50 */ |
47 */ |
51 static CCsConversationMarkReadHandler* NewL(CCsConversationCache* aCache, |
48 static CCsConversationMarkReadHandler* NewL(CCsConversationCache* aCache); |
52 MCsConversationMarkReadObserver* aObserver); |
|
53 |
49 |
54 /** |
50 /** |
55 * Destructor |
51 * Destructor |
56 */ |
52 */ |
57 virtual ~CCsConversationMarkReadHandler(); |
53 virtual ~CCsConversationMarkReadHandler(); |
73 void DoCancel(); |
69 void DoCancel(); |
74 TInt RunError(TInt aError); |
70 TInt RunError(TInt aError); |
75 |
71 |
76 private: |
72 private: |
77 CCsConversationMarkReadHandler(); |
73 CCsConversationMarkReadHandler(); |
78 void ConstructL(CCsConversationCache* aCache, |
74 void ConstructL(CCsConversationCache* aCache); |
79 MCsConversationMarkReadObserver* aObserver); |
|
80 void IssueRequest(); |
75 void IssueRequest(); |
81 void MarkReadOneMessageL(); |
76 void MarkReadOneMessageL(); |
82 |
77 |
83 private: |
78 private: |
84 /** |
79 /** |
85 * Own. Msv Session. |
80 * Own. Msv Session. |
86 */ |
81 */ |
87 CMsvSession* iSession; |
82 CMsvSession* iSession; |
88 |
|
89 /** |
|
90 * iObserver |
|
91 * Own. |
|
92 */ |
|
93 MCsConversationMarkReadObserver* iObserver; |
|
94 |
83 |
95 /** |
84 /** |
96 * State |
85 * State |
97 */ |
86 */ |
98 TMarkReadHandlerState iState; |
87 TMarkReadHandlerState iState; |