summaryrefslogtreecommitdiffstats
path: root/src/messaging/modestengine_maemo_p.h
diff options
context:
space:
mode:
authorMarko Minkkinen <marko.minkkinen@digia.com>2010-05-25 20:33:31 +0300
committerMarko Minkkinen <marko.minkkinen@digia.com>2010-05-25 20:33:31 +0300
commit66f1b894f10274fe7bcca158757efc532465407f (patch)
tree9f2f4c890611fa63ce369fc542c0938856317f44 /src/messaging/modestengine_maemo_p.h
parentfe3b17864bb0c01e65ee944867fb156bbd1396f7 (diff)
Inbox observing improved & update message status and priority + bug fixes
Diffstat (limited to 'src/messaging/modestengine_maemo_p.h')
-rw-r--r--src/messaging/modestengine_maemo_p.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/messaging/modestengine_maemo_p.h b/src/messaging/modestengine_maemo_p.h
index 36431c139e..613de4fefd 100644
--- a/src/messaging/modestengine_maemo_p.h
+++ b/src/messaging/modestengine_maemo_p.h
@@ -164,10 +164,9 @@ typedef enum {
typedef enum {
MessagingModestMessagePriorityNotDefined = 0,
- MessagingModestMessageHighPriority = 1<<9|1<<10,
+ MessagingModestMessageHighPriority = 0<<9|1<<10,
MessagingModestMessageNormalPriority = 0<<9|0<<10,
- MessagingModestMessageLowPriority = 0<<9|1<<10,
- MessagingModestMessageSuspendedPriority = 1<<9|0<<10
+ MessagingModestMessageLowPriority = 1<<9|0<<10,
} MessagingModestMessagePriority;
struct MessagingModestMimePart
@@ -322,6 +321,8 @@ private:
QString localRootFolder() const;
QString accountRootFolder(QMessageAccountId& accountId) const;
void foldersFromModest(QList<MessagingModestFolder>& folders) const;
+ bool startObservingModestFolder(const QMessageFolderId& folderId) const;
+ bool stopObservingModestFolder(const QMessageFolderId& folderId) const;
EmailProtocol accountEmailProtocol(QMessageAccountId& accountId) const;
QString accountEmailProtocolAsString(const QMessageAccountId& accountId) const;
QString accountUsername(QMessageAccountId& accountId) const;
@@ -388,6 +389,8 @@ private:
uint getModestPriority(QMessage &message);
ModestStringMap getModestHeaders(QMessage &message);
+ bool accountExists(const QMessageAccountId& accountId) const;
+
private slots:
void searchMessagesHeadersReceivedSlot(QDBusMessage msg);
void searchMessagesHeadersFetchedSlot(QDBusMessage msg);
@@ -401,6 +404,7 @@ private slots:
void addMessageCallEnded(QDBusPendingCallWatcher *watcher);
void stateChanged(QMessageService::State newState);
void returnQueryResultsSlot();
+ void modestFolderContentsChangedSlot(QDBusMessage msg);
private: //Data
GConfClient *m_gconfclient;
@@ -429,6 +433,8 @@ private: //Data
mutable QMap<int, QMessageServicePrivate*> m_pending_downloads;
+ mutable QMessageFolderIdList m_observed_folders;
+
// Following variables are used for sync queries
mutable QMessageService m_service;
mutable QEventLoop m_eventLoop;