diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-04-19 11:18:07 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-04-19 11:18:07 -0700 |
commit | a69f1e846de80aee75f0b20a7e4a3d4cc234da9a (patch) | |
tree | 80cbb6278cb20181a4dd53cbd1bfb61bc3b1d78f | |
parent | 8c24f9ed272d2a7494561aa77344e9b7b0c7756f (diff) |
Mark methods as deprecated
-rwxr-xr-x | src/async/imap/MCIMAPAsyncSession.h | 2 | ||||
-rw-r--r-- | src/core/basetypes/MCUtils.h | 4 | ||||
-rwxr-xr-x | src/core/imap/MCIMAPSession.h | 2 | ||||
-rwxr-xr-x | src/objc/imap/MCOIMAPSession.h | 10 |
4 files changed, 14 insertions, 4 deletions
diff --git a/src/async/imap/MCIMAPAsyncSession.h b/src/async/imap/MCIMAPAsyncSession.h index 64258674..86378926 100755 --- a/src/async/imap/MCIMAPAsyncSession.h +++ b/src/async/imap/MCIMAPAsyncSession.h @@ -102,7 +102,7 @@ namespace mailcore { virtual IMAPIdentity * serverIdentity(); virtual IMAPIdentity * clientIdentity(); - virtual String * gmailUserDisplayName(); + virtual String * gmailUserDisplayName() DEPRECATED_ATTRIBUTE; virtual IMAPFolderInfoOperation * folderInfoOperation(String * folder); virtual IMAPFolderStatusOperation * folderStatusOperation(String * folder); diff --git a/src/core/basetypes/MCUtils.h b/src/core/basetypes/MCUtils.h index eb4ef290..cbabe0b3 100644 --- a/src/core/basetypes/MCUtils.h +++ b/src/core/basetypes/MCUtils.h @@ -65,4 +65,8 @@ #endif +#ifndef DEPRECATED_ATTRIBUTE +#define DEPRECATED_ATTRIBUTE __attribute__((deprecated)) +#endif + #endif diff --git a/src/core/imap/MCIMAPSession.h b/src/core/imap/MCIMAPSession.h index d0a310b7..da46e0a7 100755 --- a/src/core/imap/MCIMAPSession.h +++ b/src/core/imap/MCIMAPSession.h @@ -177,7 +177,7 @@ namespace mailcore { virtual bool isCompressionEnabled(); virtual bool allowsNewPermanentFlags(); - virtual String * gmailUserDisplayName(); + virtual String * gmailUserDisplayName() DEPRECATED_ATTRIBUTE; virtual void setConnectionLogger(ConnectionLogger * logger); virtual ConnectionLogger * connectionLogger(); diff --git a/src/objc/imap/MCOIMAPSession.h b/src/objc/imap/MCOIMAPSession.h index 660c896d..f364c159 100755 --- a/src/objc/imap/MCOIMAPSession.h +++ b/src/objc/imap/MCOIMAPSession.h @@ -90,8 +90,14 @@ /** The identity of the IMAP server. */ @property (nonatomic, strong, readonly) MCOIMAPIdentity * serverIdentity; -/** Display name of the Gmail user. It will be nil if it's not a Gmail server. */ -@property (nonatomic, copy, readonly) NSString * gmailUserDisplayName; +/** + Display name of the Gmail user. It will be nil if it's not a Gmail server. + + ** DEPRECATED ** + This attribute has been broken by Gmail IMAP server. It's not longer available + as a correct display name. +*/ +@property (nonatomic, copy, readonly) NSString * gmailUserDisplayName DEPRECATED_ATTRIBUTE; /** When set to YES, the session is allowed open to open several connections to the same folder. |