diff options
Diffstat (limited to 'examples/imapresource/imapserverproxy.h')
-rw-r--r-- | examples/imapresource/imapserverproxy.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/imapresource/imapserverproxy.h b/examples/imapresource/imapserverproxy.h index 7044a5e..0dc6e55 100644 --- a/examples/imapresource/imapserverproxy.h +++ b/examples/imapresource/imapserverproxy.h | |||
@@ -246,9 +246,15 @@ private: | |||
246 | QList<CachedSession> mSessions; | 246 | QList<CachedSession> mSessions; |
247 | }; | 247 | }; |
248 | 248 | ||
249 | enum EncryptionMode { | ||
250 | NoEncryption, | ||
251 | Tls, | ||
252 | Starttls | ||
253 | }; | ||
254 | |||
249 | class ImapServerProxy { | 255 | class ImapServerProxy { |
250 | public: | 256 | public: |
251 | ImapServerProxy(const QString &serverUrl, int port, SessionCache *sessionCache = nullptr); | 257 | ImapServerProxy(const QString &serverUrl, int port, EncryptionMode encryption, SessionCache *sessionCache = nullptr); |
252 | 258 | ||
253 | //Standard IMAP calls | 259 | //Standard IMAP calls |
254 | KAsync::Job<void> login(const QString &username, const QString &password); | 260 | KAsync::Job<void> login(const QString &username, const QString &password); |
@@ -305,6 +311,7 @@ private: | |||
305 | KIMAP2::Session *mSession; | 311 | KIMAP2::Session *mSession; |
306 | QStringList mCapabilities; | 312 | QStringList mCapabilities; |
307 | Namespaces mNamespaces; | 313 | Namespaces mNamespaces; |
314 | EncryptionMode mEncryptionMode; | ||
308 | }; | 315 | }; |
309 | 316 | ||
310 | } | 317 | } |