diff options
Diffstat (limited to 'examples/imapresource/imapserverproxy.h')
-rw-r--r-- | examples/imapresource/imapserverproxy.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/imapresource/imapserverproxy.h b/examples/imapresource/imapserverproxy.h index cf315df..3afeee5 100644 --- a/examples/imapresource/imapserverproxy.h +++ b/examples/imapresource/imapserverproxy.h | |||
@@ -60,18 +60,20 @@ struct Folder { | |||
60 | class ImapServerProxy { | 60 | class ImapServerProxy { |
61 | KIMAP::Session *mSession; | 61 | KIMAP::Session *mSession; |
62 | QChar mSeparatorCharacter; | 62 | QChar mSeparatorCharacter; |
63 | QStringList mCapabilities; | ||
63 | public: | 64 | public: |
64 | ImapServerProxy(const QString &serverUrl, int port); | 65 | ImapServerProxy(const QString &serverUrl, int port); |
65 | 66 | ||
66 | //Standard IMAP calls | 67 | //Standard IMAP calls |
67 | KAsync::Job<void> login(const QString &username, const QString &password); | 68 | KAsync::Job<void> login(const QString &username, const QString &password); |
68 | KAsync::Job<void> select(const QString &mailbox); | 69 | KAsync::Job<void> select(const QString &mailbox); |
69 | KAsync::Job<void> append(const QString &mailbox, const QByteArray &content, const QList<QByteArray> &flags = QList<QByteArray>(), const QDateTime &internalDate = QDateTime()); | 70 | KAsync::Job<qint64> append(const QString &mailbox, const QByteArray &content, const QList<QByteArray> &flags = QList<QByteArray>(), const QDateTime &internalDate = QDateTime()); |
70 | KAsync::Job<void> store(const KIMAP::ImapSet &set, const QList<QByteArray> &flags); | 71 | KAsync::Job<void> store(const KIMAP::ImapSet &set, const QList<QByteArray> &flags); |
71 | KAsync::Job<void> create(const QString &mailbox); | 72 | KAsync::Job<void> create(const QString &mailbox); |
72 | KAsync::Job<void> rename(const QString &mailbox, const QString &newMailbox); | 73 | KAsync::Job<void> rename(const QString &mailbox, const QString &newMailbox); |
73 | KAsync::Job<void> remove(const QString &mailbox); | 74 | KAsync::Job<void> remove(const QString &mailbox); |
74 | KAsync::Job<void> expunge(); | 75 | KAsync::Job<void> expunge(); |
76 | KAsync::Job<void> expunge(const KIMAP::ImapSet &set); | ||
75 | 77 | ||
76 | typedef std::function<void(const QString &, | 78 | typedef std::function<void(const QString &, |
77 | const QMap<qint64,qint64> &, | 79 | const QMap<qint64,qint64> &, |
@@ -86,6 +88,7 @@ public: | |||
86 | 88 | ||
87 | //Composed calls that do login etc. | 89 | //Composed calls that do login etc. |
88 | KAsync::Job<QList<qint64>> fetchHeaders(const QString &mailbox); | 90 | KAsync::Job<QList<qint64>> fetchHeaders(const QString &mailbox); |
91 | KAsync::Job<void> remove(const QString &mailbox, const KIMAP::ImapSet &set); | ||
89 | KAsync::Job<void> remove(const QString &mailbox, const QByteArray &imapSet); | 92 | KAsync::Job<void> remove(const QString &mailbox, const QByteArray &imapSet); |
90 | 93 | ||
91 | KAsync::Job<void> fetchFolders(std::function<void(const QVector<Folder> &)> callback); | 94 | KAsync::Job<void> fetchFolders(std::function<void(const QVector<Folder> &)> callback); |