diff options
Diffstat (limited to 'src/objc/pop/MCOPOPSession.h')
-rw-r--r-- | src/objc/pop/MCOPOPSession.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/objc/pop/MCOPOPSession.h b/src/objc/pop/MCOPOPSession.h new file mode 100644 index 00000000..ae9bf1d9 --- /dev/null +++ b/src/objc/pop/MCOPOPSession.h @@ -0,0 +1,43 @@ +// +// MCOPOPSession.h +// mailcore2 +// +// Created by DINH Viêt Hoà on 3/29/13. +// Copyright (c) 2013 MailCore. All rights reserved. +// + +#ifndef __MAILCORE_MCOPOPSESSION_H_ + +#define __MAILCORE_MCOPOPSESSION_H_ + +#import <Foundation/Foundation.h> + +#import <mailcore/MCOConstants.h> + +@class MCOPOPFetchMessagesOperation; +@class MCOPOPFetchHeaderOperation; +@class MCOPOPFetchMessageOperation; +@class MCOPOPOperation; +@class MCOIndexSet; + +@interface MCOPOPSession : NSObject + +@property (nonatomic, copy) NSString * hostname; +@property (nonatomic, assign) unsigned int port; +@property (nonatomic, copy) NSString * username; +@property (nonatomic, copy) NSString * password; +@property (nonatomic, assign) MCOAuthType authType; +@property (nonatomic, assign) MCOConnectionType connectionType; +@property (nonatomic, assign) NSTimeInterval timeout; +@property (nonatomic, assign, getter=isCheckCertificateEnabled) BOOL checkCertificateEnabled; + +- (MCOPOPFetchMessagesOperation *) fetchMessagesOperation; +- (MCOPOPFetchHeaderOperation *) fetchHeaderOperationWithIndex:(unsigned int)index; +- (MCOPOPFetchMessageOperation *) fetchMessageOperationWithIndex:(unsigned int)index; + +// Will disconnect. +- (MCOPOPOperation *) deleteMessagesWithIndexes:(MCOIndexSet *)indexes; + +@end + +#endif |