summaryrefslogtreecommitdiffstats
path: root/framework/domain/maillistmodel.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-07 14:58:30 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-07 14:58:30 +0100
commit96b5733f0c02b00679117bc95850ab8242e43eec (patch)
tree326d3429f8d340fe8bc3948540ff6ae715573676 /framework/domain/maillistmodel.h
parentab9cf3a17ddadbbb281e12d6ef72c97cf817cb30 (diff)
downloadkube-96b5733f0c02b00679117bc95850ab8242e43eec.tar.gz
kube-96b5733f0c02b00679117bc95850ab8242e43eec.zip
Sink merges the sync requests now.
Diffstat (limited to 'framework/domain/maillistmodel.h')
-rw-r--r--framework/domain/maillistmodel.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/framework/domain/maillistmodel.h b/framework/domain/maillistmodel.h
index 1fd0ef5e..96cf98f2 100644
--- a/framework/domain/maillistmodel.h
+++ b/framework/domain/maillistmodel.h
@@ -25,7 +25,6 @@
25#include <QSortFilterProxyModel> 25#include <QSortFilterProxyModel>
26#include <QSharedPointer> 26#include <QSharedPointer>
27#include <QStringList> 27#include <QStringList>
28#include <QTimer>
29 28
30class MailListModel : public QSortFilterProxyModel 29class MailListModel : public QSortFilterProxyModel
31{ 30{
@@ -70,16 +69,11 @@ public:
70 void setMail(const QVariant &mail); 69 void setMail(const QVariant &mail);
71 QVariant mail() const; 70 QVariant mail() const;
72 71
73private slots:
74 void fetch();
75
76private: 72private:
77 void fetchMail(Sink::ApplicationDomain::Mail::Ptr mail); 73 void fetchMail(Sink::ApplicationDomain::Mail::Ptr mail);
78 74
79 QSharedPointer<QAbstractItemModel> m_model; 75 QSharedPointer<QAbstractItemModel> m_model;
80 bool mFetchMails = false; 76 bool mFetchMails = false;
81 QSet<QByteArray> mFetchedMails; 77 QSet<QByteArray> mFetchedMails;
82 QList<Sink::ApplicationDomain::Mail> mMailsToFetch;
83 QByteArray mCurrentQueryItem; 78 QByteArray mCurrentQueryItem;
84 QTimer mFetchTimer;
85}; 79};