aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/provider/MCONetService.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/objc/provider/MCONetService.h')
-rw-r--r--src/objc/provider/MCONetService.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/objc/provider/MCONetService.h b/src/objc/provider/MCONetService.h
new file mode 100644
index 00000000..e1e02141
--- /dev/null
+++ b/src/objc/provider/MCONetService.h
@@ -0,0 +1,29 @@
+//
+// MCONetService.h
+// mailcore2
+//
+// Created by Robert Widmann on 4/28/13.
+// Copyright (c) 2013 MailCore. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+typedef enum {
+ MCONetServiceConnectionTypeClear = 1 << 0,
+ MCONetServiceConnectionTypeStartTLS = 1 << 1,
+ MCONetServiceConnectionTypeTLS = 1 << 2,
+ MCONetServiceConnectionTypeMask = (MCONetServiceConnectionTypeClear | MCONetServiceConnectionTypeStartTLS | MCONetServiceConnectionTypeTLS)
+} MCONetServiceConnectionType;
+
+@interface MCONetService : NSObject
+
+@property (nonatomic, copy) NSString * hostname;
+@property (nonatomic, assign) unsigned int port;
+@property (nonatomic, assign) MCONetServiceConnectionType connectionType;
+
++ (MCONetService *) netServiceWithInfo:(NSDictionary *)info;
+
+- (id) initWithInfo:(NSDictionary *)info;
+- (NSDictionary *) info;
+
+@end