diff options
author | Dmitry Isaikin <isaikin@corp.mail.ru> | 2016-02-15 20:54:46 +0300 |
---|---|---|
committer | Dmitry Isaikin <isaikin@corp.mail.ru> | 2016-02-15 20:54:46 +0300 |
commit | 2691bc3035a7a8cb14e69191e7adad4e59fbe8a6 (patch) | |
tree | b66d3f919df240099d462928f8808add0a810ea5 /src/objc | |
parent | 5c91ce1ff93adf119af67baf34ef19ab025de7f2 (diff) |
Added ability to customize the identity of IMAP client in the time of session initialization.
Diffstat (limited to 'src/objc')
-rwxr-xr-x | src/objc/imap/MCOIMAPSession.h | 2 | ||||
-rwxr-xr-x | src/objc/imap/MCOIMAPSession.mm | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/objc/imap/MCOIMAPSession.h b/src/objc/imap/MCOIMAPSession.h index 6fd5f76e..7674e9db 100755 --- a/src/objc/imap/MCOIMAPSession.h +++ b/src/objc/imap/MCOIMAPSession.h @@ -87,7 +87,7 @@ @property (nonatomic, strong) MCOIMAPNamespace * defaultNamespace; /** The identity of the IMAP client. */ -@property (nonatomic, strong, readonly) MCOIMAPIdentity * clientIdentity; +@property (nonatomic, copy) MCOIMAPIdentity * clientIdentity; /** The identity of the IMAP server. */ @property (nonatomic, strong, readonly) MCOIMAPIdentity * serverIdentity; diff --git a/src/objc/imap/MCOIMAPSession.mm b/src/objc/imap/MCOIMAPSession.mm index c245cdc3..fdd57886 100755 --- a/src/objc/imap/MCOIMAPSession.mm +++ b/src/objc/imap/MCOIMAPSession.mm @@ -122,6 +122,11 @@ MCO_OBJC_SYNTHESIZE_SCALAR(dispatch_queue_t, dispatch_queue_t, setDispatchQueue, return MCO_OBJC_BRIDGE_GET(clientIdentity); } +- (void) setClientIdentity:(MCOIMAPIdentity *)clientIdentity +{ + MCO_OBJC_BRIDGE_SET(setClientIdentity, IMAPIdentity, clientIdentity); +} + - (MCOIMAPIdentity *) serverIdentity { return MCO_OBJC_BRIDGE_GET(serverIdentity); |