From 934f99cf96ae362b898528ef357f9af148ed01c6 Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Sat, 29 Jun 2013 14:42:19 -0700 Subject: Support of OAuth2 on C++ layer. Also reindent code. --- src/core/imap/MCIMAPSession.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core/imap/MCIMAPSession.h') diff --git a/src/core/imap/MCIMAPSession.h b/src/core/imap/MCIMAPSession.h index ac282072..212f0876 100644 --- a/src/core/imap/MCIMAPSession.h +++ b/src/core/imap/MCIMAPSession.h @@ -37,6 +37,11 @@ namespace mailcore { virtual void setPassword(String * password); virtual String * password(); + // To authenticate using OAuth2, username and oauth2token should be set. + // auth type to use is AuthTypeOAuth2. + virtual void setOAuth2Token(String * token); + virtual String * OAuth2Token(); + virtual void setAuthType(AuthType authType); virtual AuthType authType(); @@ -145,6 +150,7 @@ namespace mailcore { unsigned int mPort; String * mUsername; String * mPassword; + String * mOAuth2Token; AuthType mAuthType; ConnectionType mConnectionType; bool mCheckCertificateEnabled; -- cgit v1.2.3