From 95c7264ba0c9b8bed21b0209d5c9087f4760302d Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Mon, 6 Jun 2016 23:58:37 -0700 Subject: idleEnabled exposed --- src/objc/imap/MCOIMAPSession.h | 2 ++ src/objc/imap/MCOIMAPSession.mm | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'src') 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]; -- cgit v1.2.3