72 QPointer<NmOperation> fetchMessage( |
72 QPointer<NmOperation> fetchMessage( |
73 const NmId &mailboxId, |
73 const NmId &mailboxId, |
74 const NmId &folderId, |
74 const NmId &folderId, |
75 const NmId &messageId); |
75 const NmId &messageId); |
76 |
76 |
77 QPointer<NmOperation> fetchMessagePart( |
77 QPointer<NmOperation> fetchMessagePart( |
78 const NmId &mailboxId, |
78 const NmId &mailboxId, |
79 const NmId &folderId, |
79 const NmId &folderId, |
80 const NmId &messageId, |
80 const NmId &messageId, |
81 const NmId &messagePartId); |
81 const NmId &messagePartId); |
82 |
82 |
83 QPointer<NmOperation> fetchMessageParts( |
83 QPointer<NmOperation> fetchMessageParts( |
84 const NmId &mailboxId, |
84 const NmId &mailboxId, |
85 const NmId &folderId, |
85 const NmId &folderId, |
86 const NmId &messageId, |
86 const NmId &messageId, |
87 const QList<NmId> &messagePartIds); |
87 const QList<NmId> &messagePartIds); |
88 |
88 |
89 XQSharableFile messagePartFile( |
89 XQSharableFile messagePartFile( |
90 const NmId &mailboxId, |
90 const NmId &mailboxId, |
91 const NmId &folderId, |
91 const NmId &folderId, |
92 const NmId &messageId, |
92 const NmId &messageId, |
93 const NmId &messagePartId); |
93 const NmId &messagePartId); |
94 |
94 |
95 NmMailboxMetaData *mailboxById(const NmId &mailboxId); |
95 NmMailboxMetaData *mailboxById(const NmId &mailboxId); |
96 |
96 |
97 int contentToMessagePart( |
97 int contentToMessagePart( |
98 const NmId &mailboxId, |
98 const NmId &mailboxId, |
99 const NmId &folderId, |
99 const NmId &folderId, |
129 int saveMessage(const NmMessage &message); |
129 int saveMessage(const NmMessage &message); |
130 |
130 |
131 int refreshMailbox(const NmId &mailboxId); |
131 int refreshMailbox(const NmId &mailboxId); |
132 |
132 |
133 int goOnline(const NmId &mailboxId); |
133 int goOnline(const NmId &mailboxId); |
134 |
134 |
135 int goOffline(const NmId &mailboxId); |
135 int goOffline(const NmId &mailboxId); |
136 |
136 |
137 int removeMessage(const NmId &mailboxId, |
137 int removeMessage(const NmId &mailboxId, |
138 const NmId &folderId, |
138 const NmId &folderId, |
139 const NmId &messageId); |
139 const NmId &messageId); |
140 |
140 |
141 void removeDraftMessage(NmMessage *message); |
141 void removeDraftMessage(NmMessage *message); |
142 |
142 |
143 void saveDraftMessage(NmMessage *message, |
143 void saveDraftMessage(NmMessage *message, |
144 const QList<NmOperation*> &preliminaryOperations); |
144 const QList<NmOperation*> &preliminaryOperations); |
145 |
145 |
146 void sendMessage(NmMessage *message, |
146 void sendMessage(NmMessage *message, |
147 const QList<NmOperation*> &preliminaryOperations); |
147 const QList<NmOperation*> &preliminaryOperations); |
148 |
148 |
149 bool isSendingMessage() const; |
149 bool isSendingMessage() const; |
150 |
150 |
151 const NmMessage *messageBeingSent() const; |
151 const NmMessage *messageBeingSent() const; |
152 |
152 |
153 QPointer<NmAddAttachmentsOperation> addAttachments( |
153 QPointer<NmAddAttachmentsOperation> addAttachments( |
154 const NmMessage &message, |
154 const NmMessage &message, |
155 const QList<QString> &fileList); |
155 const QList<QString> &fileList); |
156 |
156 |
157 QPointer<NmOperation> removeAttachment( |
157 QPointer<NmOperation> removeAttachment( |
158 const NmMessage &message, |
158 const NmMessage &message, |
159 const NmId &attachmentPartId); |
159 const NmId &attachmentPartId); |
160 |
160 |
161 NmSyncState syncState(const NmId& mailboxId); |
161 NmSyncState syncState(const NmId& mailboxId); |
162 |
162 |
163 NmConnectState connectionState(const NmId& mailboxId); |
163 NmConnectState connectionState(const NmId& mailboxId); |
164 |
164 |
165 int search(const NmId &mailboxId, |
165 int search(const NmId &mailboxId, |
166 const QStringList &searchStrings); |
166 const QStringList &searchStrings); |
167 |
167 |
168 int cancelSearch(const NmId &mailboxId); |
168 int cancelSearch(const NmId &mailboxId); |
169 |
169 |
170 NmFolderType folderTypeById(NmId mailboxId, NmId folderId); |
170 NmFolderType folderTypeById(NmId mailboxId, NmId folderId); |
171 |
171 |
172 void updateActiveFolder(const NmId &mailboxId, const NmId &folderId); |
172 void updateActiveFolder(const NmId &mailboxId, const NmId &folderId); |
173 |
173 |
|
174 void enableSyncIndicator(bool enabled); |
|
175 |
174 public slots: |
176 public slots: |
175 |
177 |
176 void handleCompletedSendOperation(); |
178 void handleCompletedSendOperation(); |
177 void handleCompletedRemoveDraftOperation(); |
179 void handleCompletedRemoveDraftOperation(); |
178 void handleCompletedSaveDraftOperation(); |
180 void handleCompletedSaveDraftOperation(); |
187 |
189 |
188 private slots: |
190 private slots: |
189 |
191 |
190 void handleMessageEvent(NmMessageEvent event, |
192 void handleMessageEvent(NmMessageEvent event, |
191 const NmId &folderId, |
193 const NmId &folderId, |
192 const QList<NmId> &messageIds, |
194 const QList<NmId> &messageIds, |
193 const NmId& mailboxId); |
195 const NmId& mailboxId); |
194 |
196 |
195 void handleMailboxEvent(NmMailboxEvent event, |
197 void handleMailboxEvent(NmMailboxEvent event, |
196 const QList<NmId> &mailboxIds); |
198 const QList<NmId> &mailboxIds); |
197 |
199 |
198 void handleMatchFound(const NmId &messageId, const NmId &folderId); |
200 void handleMatchFound(const NmId &messageId, const NmId &folderId); |
199 |
201 |
200 void messageEventForListModel(NmMessageEvent event, |
202 void messageEventForListModel(NmMessageEvent event, |
201 const NmId &folderId, |
203 const NmId &folderId, |
202 const QList<NmId> &messageIds, |
204 const QList<NmId> &messageIds, |
203 const NmId& mailboxId); |
205 const NmId& mailboxId); |
204 |
206 |
205 |
207 |
206 signals: |
208 signals: |
207 |
209 |