diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-14 11:17:47 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-15 16:14:19 +0200 |
commit | ca9c54670cc2d26386c80a2aeed2c999313ec362 (patch) | |
tree | 71cddc6a175be007aade113b8e19aed0360c7f29 /examples/imapresource/imapserverproxy.h | |
parent | 25fdab9836b1fdd248d3d36c00a96740093cd749 (diff) | |
download | sink-ca9c54670cc2d26386c80a2aeed2c999313ec362.tar.gz sink-ca9c54670cc2d26386c80a2aeed2c999313ec362.zip |
New kimap2 syntax
Diffstat (limited to 'examples/imapresource/imapserverproxy.h')
-rw-r--r-- | examples/imapresource/imapserverproxy.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/imapresource/imapserverproxy.h b/examples/imapresource/imapserverproxy.h index e0e87d4..452b479 100644 --- a/examples/imapresource/imapserverproxy.h +++ b/examples/imapresource/imapserverproxy.h | |||
@@ -115,7 +115,7 @@ public: | |||
115 | 115 | ||
116 | KAsync::Job<void> fetch(const KIMAP2::ImapSet &set, KIMAP2::FetchJob::FetchScope scope, FetchCallback callback); | 116 | KAsync::Job<void> fetch(const KIMAP2::ImapSet &set, KIMAP2::FetchJob::FetchScope scope, FetchCallback callback); |
117 | KAsync::Job<void> fetch(const KIMAP2::ImapSet &set, KIMAP2::FetchJob::FetchScope scope, const std::function<void(const QVector<Message> &)> &callback); | 117 | KAsync::Job<void> fetch(const KIMAP2::ImapSet &set, KIMAP2::FetchJob::FetchScope scope, const std::function<void(const QVector<Message> &)> &callback); |
118 | KAsync::Job<void> list(KIMAP2::ListJob::Option option, const std::function<void(const QList<KIMAP2::MailBoxDescriptor> &mailboxes,const QList<QList<QByteArray> > &flags)> &callback); | 118 | KAsync::Job<void> list(KIMAP2::ListJob::Option option, const std::function<void(const KIMAP2::MailBoxDescriptor &mailboxes,const QList<QByteArray> &flags)> &callback); |
119 | 119 | ||
120 | QStringList getCapabilities() const; | 120 | QStringList getCapabilities() const; |
121 | 121 | ||
@@ -130,7 +130,7 @@ public: | |||
130 | 130 | ||
131 | QString mailboxFromFolder(const Folder &) const; | 131 | QString mailboxFromFolder(const Folder &) const; |
132 | 132 | ||
133 | KAsync::Job<void> fetchFolders(std::function<void(const QVector<Folder> &)> callback); | 133 | KAsync::Job<void> fetchFolders(std::function<void(const Folder &)> callback); |
134 | KAsync::Job<void> fetchMessages(const Folder &folder, std::function<void(const QVector<Message> &)> callback, std::function<void(int, int)> progress = std::function<void(int, int)>()); | 134 | KAsync::Job<void> fetchMessages(const Folder &folder, std::function<void(const QVector<Message> &)> callback, std::function<void(int, int)> progress = std::function<void(int, int)>()); |
135 | KAsync::Job<void> fetchMessages(const Folder &folder, qint64 uidNext, std::function<void(const QVector<Message> &)> callback, std::function<void(int, int)> progress = std::function<void(int, int)>()); | 135 | KAsync::Job<void> fetchMessages(const Folder &folder, qint64 uidNext, std::function<void(const QVector<Message> &)> callback, std::function<void(int, int)> progress = std::function<void(int, int)>()); |
136 | KAsync::Job<SelectResult> fetchFlags(const Folder &folder, const KIMAP2::ImapSet &set, qint64 changedsince, std::function<void(const QVector<Message> &)> callback); | 136 | KAsync::Job<SelectResult> fetchFlags(const Folder &folder, const KIMAP2::ImapSet &set, qint64 changedsince, std::function<void(const QVector<Message> &)> callback); |