aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/abstract/MCOAbstractPart.h
diff options
context:
space:
mode:
authorGravatar DINH Viet Hoa <dinh.viet.hoa@gmail.com>2013-03-22 18:00:46 -0700
committerGravatar DINH Viet Hoa <dinh.viet.hoa@gmail.com>2013-03-22 18:00:46 -0700
commit37265d9a5b2da31f522cc4f3d26ccc6bb5199b10 (patch)
tree12e5516c5a6a36f679a1d99c99f71953e34635a5 /src/objc/abstract/MCOAbstractPart.h
parent7b4eafc8149b151b63a111bbcc6f3a7f322c552d (diff)
Implemented Objective-C wrapper for core/abstract
Diffstat (limited to 'src/objc/abstract/MCOAbstractPart.h')
-rw-r--r--src/objc/abstract/MCOAbstractPart.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/objc/abstract/MCOAbstractPart.h b/src/objc/abstract/MCOAbstractPart.h
new file mode 100644
index 00000000..2ffcf338
--- /dev/null
+++ b/src/objc/abstract/MCOAbstractPart.h
@@ -0,0 +1,36 @@
+//
+// MCOAbstractPart.h
+// mailcore2
+//
+// Created by DINH Viêt Hoà on 3/10/13.
+// Copyright (c) 2013 MailCore. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+@class MCOAbstractMessage;
+
+typedef enum {
+ MCOPartTypeSingle,
+ MCOPartTypeMessage,
+ MCOPartTypeMultipartMixed,
+ MCOPartTypeMultipartRelated,
+ MCOPartTypeMultipartAlternative,
+} MCOPartType;
+
+@interface MCOAbstractPart : NSObject
+
+@property (nonatomic, assign) MCOPartType partType;
+@property (nonatomic, copy) NSString * filename;
+@property (nonatomic, copy) NSString * mimeType;
+@property (nonatomic, copy) NSString * charset;
+@property (nonatomic, copy) NSString * uniqueID;
+@property (nonatomic, copy) NSString * contentID;
+@property (nonatomic, copy) NSString * contentLocation;
+@property (nonatomic, assign, getter=isInlineAttachment) BOOL inlineAttachment;
+@property (nonatomic, assign) MCOAbstractMessage * message;
+
+- (MCOAbstractPart *) partForContentID:(NSString *)contentID;
+- (MCOAbstractPart *) partForUniqueID:(NSString *)uniqueID;
+
+@end