diff options
author | Pitiphong Phongpattranont <pitiphong.p@me.com> | 2014-09-03 18:41:01 +0700 |
---|---|---|
committer | Pitiphong Phongpattranont <pitiphong.p@me.com> | 2014-09-03 18:41:01 +0700 |
commit | a709168a53a70b20a6466030bfd65a8da98d7dbf (patch) | |
tree | b93ec29fd0958b9d1148923113b069d0081b6fa4 /src/objc | |
parent | 634bbb6bc3a8f24bb32d5f7a0b5691a0caf606b8 (diff) |
Add allows new permanent flags property in folder info.
Diffstat (limited to 'src/objc')
-rw-r--r-- | src/objc/imap/MCOIMAPFolderInfo.h | 3 | ||||
-rw-r--r-- | src/objc/imap/MCOIMAPFolderInfo.m | 2 | ||||
-rw-r--r-- | src/objc/imap/MCOIMAPFolderInfoOperation.mm | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/objc/imap/MCOIMAPFolderInfo.h b/src/objc/imap/MCOIMAPFolderInfo.h index c15c5a37..53ad35b8 100644 --- a/src/objc/imap/MCOIMAPFolderInfo.h +++ b/src/objc/imap/MCOIMAPFolderInfo.h @@ -34,6 +34,9 @@ // first uid of the unseen messages. @property (nonatomic, assign) uint32_t firstUnseenUid; +/** An boolean indicates that this folder or IMAP server allows to add a new permanent flags */ +@property (nonatomic, assign) BOOL allowsNewPermanentFlags; + @end #endif diff --git a/src/objc/imap/MCOIMAPFolderInfo.m b/src/objc/imap/MCOIMAPFolderInfo.m index e39551a4..be1d2c3e 100644 --- a/src/objc/imap/MCOIMAPFolderInfo.m +++ b/src/objc/imap/MCOIMAPFolderInfo.m @@ -14,6 +14,7 @@ uint64_t _modSequenceValue; int _messageCount; uint32_t _firstUnseenUid; + BOOL _allowsNewPermanentFlags; } @synthesize uidNext = _uidNext; @@ -21,6 +22,7 @@ @synthesize modSequenceValue = _modSequenceValue; @synthesize messageCount = _messageCount; @synthesize firstUnseenUid = _firstUnseenUid; +@synthesize allowsNewPermanentFlags = _allowsNewPermanentFlags; + (MCOIMAPFolderInfo *) info { diff --git a/src/objc/imap/MCOIMAPFolderInfoOperation.mm b/src/objc/imap/MCOIMAPFolderInfoOperation.mm index 7ea8e887..f4d322af 100644 --- a/src/objc/imap/MCOIMAPFolderInfoOperation.mm +++ b/src/objc/imap/MCOIMAPFolderInfoOperation.mm @@ -65,6 +65,7 @@ typedef void (^CompletionType)(NSError *error, MCOIMAPFolderInfo *info); [info setModSequenceValue:MCO_NATIVE_INSTANCE->modSequenceValue()]; [info setMessageCount:MCO_NATIVE_INSTANCE->messageCount()]; [info setFirstUnseenUid:MCO_NATIVE_INSTANCE->firstUnseenUid()]; + [info setAllowsNewPermanentFlags:MCO_NATIVE_INSTANCE->allowsNewPermanentFlags()]; _completionBlock(nil, info); } |