42 public: |
47 public: |
43 /** |
48 /** |
44 * AddConversationList |
49 * AddConversationList |
45 * This is for handling new conversation event |
50 * This is for handling new conversation event |
46 * asynchronously from the server |
51 * asynchronously from the server |
|
52 * @param aClientConversation CCsClientConversation The conversation object |
47 */ |
53 */ |
48 void AddConversationList( |
54 void |
49 const CCsClientConversation& aClientConversation); |
55 AddConversationList( |
|
56 const CCsClientConversation& aClientConversation); |
50 |
57 |
51 /** |
58 /** |
52 * DeleteConversationList |
59 * DeleteConversationList |
53 * This is for handling delete conversation event |
60 * This is for handling delete conversation event |
54 * asynchronously from the server |
61 * asynchronously from the server |
|
62 * @param aClientConversation CCsClientConversation The conversation object |
55 */ |
63 */ |
56 void DeleteConversationList( |
64 void DeleteConversationList( |
57 const CCsClientConversation& aClientConversation) ; |
65 const CCsClientConversation& aClientConversation); |
58 |
66 |
59 /** |
67 /** |
60 * ModifyConversationList |
68 * ModifyConversationList |
61 * This is for handling modify conversation asynchronously |
69 * This is for handling modify conversation asynchronously |
62 * from the server |
70 * from the server |
|
71 * @param aClientConversation CCsClientConversation The conversation object |
|
72 * |
63 */ |
73 */ |
64 void ModifyConversationList( |
74 void ModifyConversationList( |
65 const CCsClientConversation& aClientConversation); |
75 const CCsClientConversation& aClientConversation); |
66 |
76 |
67 /** |
77 /** |
68 * RefreshConversationList |
78 * RefreshConversationList |
69 * This is for handling bulk changes. Message store change etc. |
79 * This is for handling bulk changes. Message store change etc. |
70 */ |
80 */ |
71 void RefreshConversationList(); |
81 void RefreshConversationList(); |
72 |
82 |
|
83 public: |
|
84 |
|
85 /** |
|
86 * updateFailedIndications |
|
87 * Activate/Deactivate message indications based on pending message count |
|
88 */ |
|
89 void updateOutboxIndications(); |
|
90 |
|
91 /** |
|
92 * displayOutboxIndications |
|
93 * Display the outbox indications based on the data in MsgInfo |
|
94 */ |
|
95 void displayOutboxIndications(MsgInfo data); |
|
96 |
|
97 /** |
|
98 * displayFailedNote |
|
99 * Popup a message box when a message is not successfully sent. |
|
100 * @param msgInfo MsgInfo The message information object |
|
101 */ |
|
102 void displayFailedNote(MsgInfo msgInfo); |
|
103 |
73 private: |
104 private: |
74 /** |
105 /** |
75 * Does all the initializations. |
106 * Does all the initializations. |
76 */ |
107 */ |
77 void initL(); |
108 void initL(); |
|
109 |
|
110 /** |
|
111 * Initializes the conversation store handler |
|
112 */ |
|
113 void initConvStoreHandler(); |
78 |
114 |
79 /** |
115 /** |
80 * Process conversation entry for showing the notification. |
116 * Process conversation entry for showing the notification. |
81 * @param aClientConversation conversation entry |
117 * @param aClientConversation conversation entry |
82 */ |
118 */ |
83 void processListEntry(const CCsClientConversation& aClientConversation); |
119 void processListEntry(const CCsClientConversation& aClientConversation); |
84 |
120 |
85 /** |
121 /** |
86 * updateIndications |
122 * updateIndications |
87 * Activate/Deactivate message indications based on unread message count |
123 * Activate/Deactivate message indications based on unread message count |
|
124 * @param bootup, true, if called on bootup else false |
88 */ |
125 */ |
89 void updateIndications(); |
126 void updateUnreadIndications(bool bootup = false); |
90 |
127 |
91 private: |
128 private: |
92 |
129 |
93 /** |
130 /** |
94 * Pointer to msgnotifier |
131 * Pointer to msgnotifier |
95 */ |
132 */ |
96 MsgNotifier* q_ptr; |
133 MsgNotifier* q_ptr; |
97 |
134 |
98 /** |
135 /** |
99 * Conversation server client |
136 * Conversation server client |
100 */ |
137 */ |
101 CCSRequestHandler* mCvServer; |
138 CCSRequestHandler* mCvServer; |
102 |
139 |
|
140 /** |
|
141 * Pointer to Conversation Msg Store Handler. |
|
142 */ |
|
143 MsgStoreHandler* iMsgStoreHandler; |
103 }; |
144 }; |
104 |
145 |
105 #endif // MSGNOTIFIER_PRIVATE_H |
146 #endif // MSGNOTIFIER_PRIVATE_H |
106 |
|
107 //EOF |
147 //EOF |