aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2016-06-06 23:58:37 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2016-06-06 23:58:37 -0700
commit95c7264ba0c9b8bed21b0209d5c9087f4760302d (patch)
treec9f0c676a77634ba026e22cb9febcb5f1f0be6d2
parentaeddd74c8fc3ccd15e2550ec0f333df6d599ff23 (diff)
idleEnabled exposed
-rw-r--r--src/objc/imap/MCOIMAPSession.h2
-rw-r--r--src/objc/imap/MCOIMAPSession.mm5
2 files changed, 7 insertions, 0 deletions
diff --git a/src/objc/imap/MCOIMAPSession.h b/src/objc/imap/MCOIMAPSession.h
index 12a1e651..2e2d55a9 100644
--- a/src/objc/imap/MCOIMAPSession.h
+++ b/src/objc/imap/MCOIMAPSession.h
@@ -102,6 +102,8 @@
*/
@property (nonatomic, copy, readonly) NSString * gmailUserDisplayName DEPRECATED_ATTRIBUTE;
+@property (nonatomic, assign, readonly, getter=isIdleEnabled) BOOL idleEnabled;
+
/**
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
diff --git a/src/objc/imap/MCOIMAPSession.mm b/src/objc/imap/MCOIMAPSession.mm
index 94a3020b..aa4420f6 100644
--- a/src/objc/imap/MCOIMAPSession.mm
+++ b/src/objc/imap/MCOIMAPSession.mm
@@ -139,6 +139,11 @@ MCO_OBJC_SYNTHESIZE_SCALAR(dispatch_queue_t, dispatch_queue_t, setDispatchQueue,
return MCO_TO_OBJC(_session->gmailUserDisplayName());
}
+- (BOOL) isIdleEnabled
+{
+ return MCO_NATIVE_INSTANCE->isIdleEnabled();
+}
+
- (void) setConnectionLogger:(MCOConnectionLogger)connectionLogger
{
[_connectionLogger release];