diff options
author | Marko Minkkinen <marko.minkkinen@digia.com> | 2010-03-30 13:38:14 +0300 |
---|---|---|
committer | Don Sanders <don.sanders@nokia.com> | 2010-03-30 21:45:30 +1000 |
commit | 8b7e8f329e3774b02f4a09305ff65b2962f7649e (patch) | |
tree | 8c33128e3b8a674913b5d07dad61319b857cb1bb /src/messaging/modestengine_maemo_p.h | |
parent | b7769707e41d65b68b4d00cb7a54338072813a3f (diff) |
attachment & body handling and bug fixes
Fixes: MOBILITY-703
Keepintouch example freezing on n900
Diffstat (limited to 'src/messaging/modestengine_maemo_p.h')
-rw-r--r-- | src/messaging/modestengine_maemo_p.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/messaging/modestengine_maemo_p.h b/src/messaging/modestengine_maemo_p.h index 901964f1bd..58ceeb8786 100644 --- a/src/messaging/modestengine_maemo_p.h +++ b/src/messaging/modestengine_maemo_p.h @@ -67,7 +67,7 @@ QTM_BEGIN_NAMESPACE typedef QMap< QString, QString > ModestStringMap; typedef QList< ModestStringMap > ModestStringMapList; -static const int maxCacheSize = 100; +static const int maxCacheSize = 1000; class QMessageService; class QMessageServicePrivate; @@ -145,6 +145,7 @@ struct MessagingModestMimePart QString mimeType; bool isAttachment; QString fileName; + QString contentId; }; struct MessagingModestMessage @@ -168,13 +169,6 @@ struct MessagingModestMessage QList<MessagingModestMimePart> mimeParts; }; -struct EmailMessageNotification -{ - QString messageId; - int event; -}; - - struct INotifyEvent { int watchDescriptor; @@ -283,6 +277,7 @@ public: const QMessageFilter& filter, QMessageManager::NotificationFilterId id = 0); void unregisterNotificationFilter(QMessageManager::NotificationFilterId notificationFilterId); + QByteArray getMimePart (const QMessageId &id, const QString &attachmentId); private: QFileInfoList localFolders() const; @@ -354,8 +349,6 @@ private: uint getModestPriority(QMessage &message); ModestStringMap getModestHeaders(QMessage &message); - int findNotificationFromLatestNotifications(const QMessageId& messageId) const; - private slots: void searchMessagesHeadersReceivedSlot(QDBusMessage msg); void searchMessagesHeadersFetchedSlot(QDBusMessage msg); @@ -388,7 +381,7 @@ private: //Data QMap<QString, QDateTime> accountsLatestTimestamp; - mutable QList<EmailMessageNotification> m_latestNotifications; + mutable QStringList m_latestRemoveNotifications; mutable QMap<QString, QMessage> m_messageCache; |