aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/abstract/MCOConstants.h
diff options
context:
space:
mode:
authorGravatar Paul Young <paulyoungonline@gmail.com>2013-07-03 17:06:20 -0400
committerGravatar Paul Young <paulyoungonline@gmail.com>2013-07-03 17:06:20 -0400
commita2f9f56ec6dc3fccb5a3b237ca62d3156cfa1883 (patch)
tree1a3c0ebae239e6571bb1c5d02e5921d299f9a399 /src/objc/abstract/MCOConstants.h
parentcc9b898f07b3f750b910cfea73c0e223984f7cad (diff)
parent9fe6ce12c4880a6c2f2a4180752987dd30d65c89 (diff)
Merge branch 'master' into message-rendering-with-session
Conflicts: build-mac/mailcore2.xcodeproj/project.pbxproj
Diffstat (limited to 'src/objc/abstract/MCOConstants.h')
-rw-r--r--src/objc/abstract/MCOConstants.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/objc/abstract/MCOConstants.h b/src/objc/abstract/MCOConstants.h
index 8fafabf3..5ec21422 100644
--- a/src/objc/abstract/MCOConstants.h
+++ b/src/objc/abstract/MCOConstants.h
@@ -33,6 +33,8 @@ typedef enum {
MCOAuthTypeSASLNTLM = 1 << 6,
/** Kerberos 4 authentication.*/
MCOAuthTypeSASLKerberosV4 = 1 << 7,
+ /** OAuth2 authentication.*/
+ MCOAuthTypeXOAuth2 = 1 << 8,
} MCOAuthType;
/** It's the IMAP flags of the folder.*/
@@ -324,4 +326,28 @@ typedef enum {
MCOErrorInvalidAccount,
} MCOErrorCode;
+/** Here's the list of connection log types.*/
+typedef enum {
+ /** Received data.*/
+ MCOConnectionLogTypeReceived,
+ /** Sent data.*/
+ MCOConnectionLogTypeSent,
+ /** Sent private data. It can be a password.*/
+ MCOConnectionLogTypeSentPrivate,
+ /** Parse error.*/
+ MCOConnectionLogTypeErrorParse,
+ /** Error while receiving data. The data passed to the log will be nil.*/
+ MCOConnectionLogTypeErrorReceived,
+ /** Error while sending dataThe data passed to the log will be nil.*/
+ MCOConnectionLogTypeErrorSent,
+} MCOConnectionLogType;
+
+/**
+ It's a network traffic logger.
+ @param connectionID is the identifier of the underlaying network socket.
+ @param type is the type of the log.
+ @param data is the data related to the log.
+ */
+typedef void (^MCOConnectionLogger)(void * connectionID, MCOConnectionLogType type, NSData * data);
+
#endif