aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/provider/MCONetService.h
blob: e1e02141a5817abb2ab28c4c8b516cea1fb54797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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