aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/abstract
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-06-26 03:19:20 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-06-26 03:19:20 -0700
commitb17b5d9ebf687241f177c562f7db96f7e5e637cb (patch)
tree5647172399f90ab04ef5fb226bf34c5e6cb2d0c6 /src/objc/abstract
parente8649c3ecfc093e379439aa4e88910b3dc27422e (diff)
Implemented logging API for SMTP, POP and IMAP
Diffstat (limited to 'src/objc/abstract')
-rw-r--r--src/objc/abstract/MCOConstants.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/objc/abstract/MCOConstants.h b/src/objc/abstract/MCOConstants.h
index 8fafabf3..a1916ef1 100644
--- a/src/objc/abstract/MCOConstants.h
+++ b/src/objc/abstract/MCOConstants.h
@@ -324,4 +324,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