aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2015-04-19 11:18:07 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2015-04-19 11:18:07 -0700
commita69f1e846de80aee75f0b20a7e4a3d4cc234da9a (patch)
tree80cbb6278cb20181a4dd53cbd1bfb61bc3b1d78f
parent8c24f9ed272d2a7494561aa77344e9b7b0c7756f (diff)
Mark methods as deprecated
-rwxr-xr-xsrc/async/imap/MCIMAPAsyncSession.h2
-rw-r--r--src/core/basetypes/MCUtils.h4
-rwxr-xr-xsrc/core/imap/MCIMAPSession.h2
-rwxr-xr-xsrc/objc/imap/MCOIMAPSession.h10
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.