equal
deleted
inserted
replaced
36 class NmMessageEnvelope; |
36 class NmMessageEnvelope; |
37 class NmOperation; |
37 class NmOperation; |
38 class NmMessageCreationOperation; |
38 class NmMessageCreationOperation; |
39 class NmStoreEnvelopesOperation; |
39 class NmStoreEnvelopesOperation; |
40 class NmAddAttachmentsOperation; |
40 class NmAddAttachmentsOperation; |
41 class NmCheckOutboxOperation; |
|
42 class NmMessageSendingOperation; |
41 class NmMessageSendingOperation; |
43 |
42 |
44 |
43 |
45 class NMUIENGINE_EXPORT NmUiEngine: public QObject |
44 class NMUIENGINE_EXPORT NmUiEngine: public QObject |
46 { |
45 { |
135 |
134 |
136 int removeMessage(const NmId &mailboxId, |
135 int removeMessage(const NmId &mailboxId, |
137 const NmId &folderId, |
136 const NmId &folderId, |
138 const NmId &messageId); |
137 const NmId &messageId); |
139 |
138 |
|
139 void removeDraftMessage(NmMessage *message); |
|
140 |
|
141 void saveDraftMessage(NmMessage *message, |
|
142 const QList<NmOperation*> &preliminaryOperations); |
|
143 |
140 void sendMessage(NmMessage *message, |
144 void sendMessage(NmMessage *message, |
141 const QList<NmOperation*> &preliminaryOperations); |
145 const QList<NmOperation*> &preliminaryOperations); |
142 |
146 |
143 bool isSendingMessage() const; |
147 bool isSendingMessage() const; |
144 |
148 |
150 |
154 |
151 QPointer<NmOperation> removeAttachment( |
155 QPointer<NmOperation> removeAttachment( |
152 const NmMessage &message, |
156 const NmMessage &message, |
153 const NmId &attachmentPartId); |
157 const NmId &attachmentPartId); |
154 |
158 |
155 QPointer<NmCheckOutboxOperation> checkOutbox(const NmId &mailboxId); |
|
156 |
|
157 NmSyncState syncState(const NmId& mailboxId); |
159 NmSyncState syncState(const NmId& mailboxId); |
158 |
160 |
159 NmConnectState connectionState(const NmId& mailboxId); |
161 NmConnectState connectionState(const NmId& mailboxId); |
160 |
162 |
161 int search(const NmId &mailboxId, |
163 int search(const NmId &mailboxId, |
168 void updateActiveFolder(const NmId &mailboxId, const NmId &folderId); |
170 void updateActiveFolder(const NmId &mailboxId, const NmId &folderId); |
169 |
171 |
170 public slots: |
172 public slots: |
171 |
173 |
172 void handleCompletedSendOperation(); |
174 void handleCompletedSendOperation(); |
|
175 void handleCompletedRemoveDraftOperation(); |
|
176 void handleCompletedSaveDraftOperation(); |
173 |
177 |
174 void handleSyncStateEvent(NmSyncState syncState, |
178 void handleSyncStateEvent(NmSyncState syncState, |
175 const NmOperationCompletionEvent &event); |
179 const NmOperationCompletionEvent &event); |
176 |
180 |
177 void handleConnectEvent(NmConnectState connectState, |
181 void handleConnectEvent(NmConnectState connectState, |
188 |
192 |
189 void handleMailboxEvent(NmMailboxEvent event, |
193 void handleMailboxEvent(NmMailboxEvent event, |
190 const QList<NmId> &mailboxIds); |
194 const QList<NmId> &mailboxIds); |
191 |
195 |
192 void handleMatchFound(const NmId &messageId, const NmId &folderId); |
196 void handleMatchFound(const NmId &messageId, const NmId &folderId); |
|
197 |
|
198 void messageEventForListModel(NmMessageEvent event, |
|
199 const NmId &folderId, |
|
200 const QList<NmId> &messageIds, |
|
201 const NmId& mailboxId); |
193 |
202 |
194 |
203 |
195 signals: |
204 signals: |
196 |
205 |
197 void syncStateEvent(NmSyncState, const NmId &); |
206 void syncStateEvent(NmSyncState, const NmId &); |
217 static int mReferenceCount; |
226 static int mReferenceCount; |
218 |
227 |
219 NmDataPluginFactory *mPluginFactory; |
228 NmDataPluginFactory *mPluginFactory; |
220 NmDataManager *mDataManager; // Owned |
229 NmDataManager *mDataManager; // Owned |
221 NmMailboxListModel *mMailboxListModel; // Owned |
230 NmMailboxListModel *mMailboxListModel; // Owned |
|
231 NmMessageListModel *mInboxListModel; // Owned |
222 NmMessageListModel *mMessageListModel; // Owned |
232 NmMessageListModel *mMessageListModel; // Owned |
223 NmMessageListModel *mMessageSearchListModel; // Owned |
233 NmMessageListModel *mMessageSearchListModel; // Owned |
224 QPointer<NmMessageSendingOperation> mSendOperation; // Not owned |
234 QPointer<NmMessageSendingOperation> mSendOperation; // Not owned |
|
235 QPointer<NmOperation> mRemoveDraftOperation; // not owned |
|
236 QPointer<NmOperation> mSaveDraftOperation; // not owned |
225 }; |
237 }; |
226 |
238 |
227 |
239 |
228 #endif /* NMUIENGINE_H */ |
240 #endif /* NMUIENGINE_H */ |
229 |
241 |