aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/imap/MCOIMAPSession.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/objc/imap/MCOIMAPSession.h')
-rwxr-xr-x[-rw-r--r--]src/objc/imap/MCOIMAPSession.h44
1 files changed, 33 insertions, 11 deletions
diff --git a/src/objc/imap/MCOIMAPSession.h b/src/objc/imap/MCOIMAPSession.h
index 5db608f7..e63e1745 100644..100755
--- a/src/objc/imap/MCOIMAPSession.h
+++ b/src/objc/imap/MCOIMAPSession.h
@@ -29,8 +29,10 @@
@class MCOIMAPSearchExpression;
@class MCOIMAPIdentityOperation;
@class MCOIMAPCapabilityOperation;
+@class MCOIMAPQuotaOperation;
@class MCOIMAPMessageRenderingOperation;
@class MCOIMAPMessage;
+@class MCOIMAPIdentity;
/**
This is the main IMAP class from which all operations are created
@@ -78,12 +80,15 @@
/** When set to YES, VoIP capability will be enabled on the IMAP connection on iOS */
@property (nonatomic, assign, getter=isVoIPEnabled) BOOL voIPEnabled;
-/** The default delimiter for the folder paths */
-@property (nonatomic, assign) char delimiter;
-
/** The default namespace. */
@property (nonatomic, strong) MCOIMAPNamespace * defaultNamespace;
+/** The identity of the IMAP client. */
+@property (nonatomic, strong, readonly) MCOIMAPIdentity * clientIdentity;
+
+/** The identity of the IMAP server. */
+@property (nonatomic, strong, readonly) MCOIMAPIdentity * serverIdentity;
+
/**
When set to YES, the session is allowed open to open several connections to the same folder.
@warning Some older IMAP servers don't like this
@@ -104,6 +109,25 @@
*/
@property (nonatomic, copy) MCOConnectionLogger connectionLogger;
+/**
+ The value will be YES when asynchronous operations are running, else it will return NO.
+*/
+@property (nonatomic, assign, readonly, getter=isOperationQueueRunning) BOOL operationQueueRunning;
+
+/**
+ Sets operation running callback. It will be called when operations start or stop running.
+
+ [session setOperationQueueRunningChangeBlock:^{
+ if ([session isOperationQueueRunning]) {
+ ...
+ }
+ else {
+ ...
+ }
+ }];
+*/
+@property (nonatomic, copy) MCOOperationQueueRunningChangeBlock operationQueueRunningChangeBlock;
+
/** @name Folder Operations */
/**
@@ -471,17 +495,13 @@
/**
Returns an operation to send the client or get the server identity.
- MCOIMAPIdentityOperation * op = [session identityOperationWithVendor:@"Mozilla"
- name:@"Thunderbird"
- version:@"17.0.5"];
- [op start:^(NSError * error, NSDictionary * serverIdentity) {
+ MCOIMAPIdentity * identity = [MCOIMAPIdentity identityWithVendor:@"Mozilla" name:@"Thunderbird" version:@"17.0.5"];
+ MCOIMAPIdentityOperation * op = [session identityOperationWithClientIdentity:identity];
+ [op start:^(NSError * error, MCOIMAPIdentity * serverIdentity) {
...
}];
*/
-- (MCOIMAPIdentityOperation *) identityOperationWithVendor:(NSString *)vendor
- name:(NSString *)name
- version:(NSString *)version;
-
+- (MCOIMAPIdentityOperation *) identityOperationWithClientIdentity:(MCOIMAPIdentity *)identity;
/**
Returns an operation that will check whether the IMAP account is valid.
@@ -507,6 +527,8 @@
*/
- (MCOIMAPCapabilityOperation *) capabilityOperation;
+- (MCOIMAPQuotaOperation *) quotaOperation;
+
/** @name Search Operations */
/**