aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/imap/MCIMAPSession.h
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-06-29 14:42:19 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-06-29 14:42:19 -0700
commit934f99cf96ae362b898528ef357f9af148ed01c6 (patch)
tree176e9599f8dcc4d9ce4770f3def1b7f41fdc2e95 /src/core/imap/MCIMAPSession.h
parentd5848cbbb862ffa0b3e44e978acf042eeed63ce7 (diff)
Support of OAuth2 on C++ layer. Also reindent code.
Diffstat (limited to 'src/core/imap/MCIMAPSession.h')
-rw-r--r--src/core/imap/MCIMAPSession.h6
1 files changed, 6 insertions, 0 deletions
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;