aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-07-22 00:09:22 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-07-22 00:09:22 -0700
commit870591b2adfa8c17f894fdcc00c31e11f43f3a06 (patch)
tree7448d36f7257c3578880e33a7f21a705b5365a9a /src/objc
parentd35a0d144e6a9faeea4b451868b4822183107927 (diff)
Added urgent accessor on ObjC API
Diffstat (limited to 'src/objc')
-rw-r--r--src/objc/imap/MCOIMAPBaseOperation.h2
-rw-r--r--src/objc/imap/MCOIMAPBaseOperation.mm5
2 files changed, 7 insertions, 0 deletions
diff --git a/src/objc/imap/MCOIMAPBaseOperation.h b/src/objc/imap/MCOIMAPBaseOperation.h
index 31686f04..82a34378 100644
--- a/src/objc/imap/MCOIMAPBaseOperation.h
+++ b/src/objc/imap/MCOIMAPBaseOperation.h
@@ -19,6 +19,8 @@ typedef void (^MCOIMAPBaseOperationItemProgressBlock)(unsigned int current);
@interface MCOIMAPBaseOperation : MCOOperation
+@property (nonatomic, assign, getter=isUrgent) BOOL urgent;
+
/* Can be overriden by subclasses */
/*
diff --git a/src/objc/imap/MCOIMAPBaseOperation.mm b/src/objc/imap/MCOIMAPBaseOperation.mm
index fe20da53..70f0d5ff 100644
--- a/src/objc/imap/MCOIMAPBaseOperation.mm
+++ b/src/objc/imap/MCOIMAPBaseOperation.mm
@@ -13,6 +13,7 @@
#import "MCAsyncIMAP.h"
#import "MCOIMAPSession.h"
+#import "NSObject+MCO.h"
class MCOIMAPBaseOperationIMAPCallback : public mailcore::IMAPOperationCallback {
public:
@@ -42,6 +43,10 @@ private:
MCOIMAPSession * _session;
}
+#define nativeType mailcore::IMAPOperation
+
+MCO_OBJC_SYNTHESIZE_SCALAR(BOOL, bool, setUrgent, isUrgent)
+
- (id) initWithMCOperation:(mailcore::Operation *)op
{
self = [super initWithMCOperation:op];