aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/imap/MCOIMAPSession.h
diff options
context:
space:
mode:
authorGravatar Matt Ronge <mronge@mronge.com>2013-01-31 20:33:49 -0600
committerGravatar Matt Ronge <mronge@mronge.com>2013-01-31 20:33:49 -0600
commit3d95ea21fa92fe859eb14781c44185c5da4a62b9 (patch)
tree955a95f8fe5e9da040f158acbd2f046688cefde5 /src/objc/imap/MCOIMAPSession.h
parentb1eb6ca70a0399a6202bc34e26bd5501ae0c3ac9 (diff)
Start of an Obj-C async API
Diffstat (limited to 'src/objc/imap/MCOIMAPSession.h')
-rw-r--r--src/objc/imap/MCOIMAPSession.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/objc/imap/MCOIMAPSession.h b/src/objc/imap/MCOIMAPSession.h
new file mode 100644
index 00000000..233220a4
--- /dev/null
+++ b/src/objc/imap/MCOIMAPSession.h
@@ -0,0 +1,30 @@
+//
+// MCOIMAPSession.h
+// mailcore2
+//
+// Created by Matt Ronge on 1/31/13.
+// Copyright (c) 2013 MailCore. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <mailcore/MCOConstants.h>
+#import <mailcore/MCOOperation.h>
+
+@class MCOCheckAccountOperation;
+
+@interface MCOIMAPSession : NSObject
+@property (nonatomic, strong) NSString *hostname;
+@property (nonatomic, assign) unsigned int port;
+@property (nonatomic, strong) NSString *username;
+@property (nonatomic, strong) NSString *password;
+@property (nonatomic, assign) MCOAuthType authType;
+@property (nonatomic, assign) MCOConnectionType connectionType;
+
+@property (nonatomic, assign) NSTimeInterval timeout;
+@property (nonatomic, assign) BOOL checkCertificateEnabled;
+@property (nonatomic, assign) BOOL VoIPEnabled;
+@property (nonatomic, strong) NSString *delimiter;
+
+- (MCOCheckAccountOperation *)checkAccount:(MCOCompletionBlock)completionBlock;
+
+@end