diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-04-05 20:42:57 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-04-05 20:42:57 -0700 |
commit | ed6ba5a558bccf6024c1a5ab3db2b89d4c6a1420 (patch) | |
tree | b9d4ab38cb52dda3ac2add8b008b677d3f6de4d0 /src/objc/abstract/MCOAbstractPart.h | |
parent | 03dc4ca7e3a6f4fbd73cf9f83a3871a307d043a2 (diff) |
Documentation for abstract
Diffstat (limited to 'src/objc/abstract/MCOAbstractPart.h')
-rw-r--r-- | src/objc/abstract/MCOAbstractPart.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/objc/abstract/MCOAbstractPart.h b/src/objc/abstract/MCOAbstractPart.h index bc1f3b7e..432863bf 100644 --- a/src/objc/abstract/MCOAbstractPart.h +++ b/src/objc/abstract/MCOAbstractPart.h @@ -24,17 +24,40 @@ typedef enum { @interface MCOAbstractPart : NSObject +// Returns type of the part (single / message part / multipart/mixed, +// multipart/related, multipart/alternative). See MCOPartType. @property (nonatomic, assign) MCOPartType partType; + +// Returns filename of the part. @property (nonatomic, copy) NSString * filename; + +// Returns MIME type of the part. For example application/data. @property (nonatomic, copy) NSString * mimeType; + +// Returns charset of the part in case it's a text single part. @property (nonatomic, copy) NSString * charset; + +// Returns the unique ID generated for this part. +// It's a unique identifier that's created when the object is created manually +// or created by the parser. @property (nonatomic, copy) NSString * uniqueID; + +// Returns the value of the Content-ID field of the part. @property (nonatomic, copy) NSString * contentID; + +// Returns the value of the Content-Location field of the part. @property (nonatomic, copy) NSString * contentLocation; + +// Returns whether the part is an explicit inline attachment. @property (nonatomic, assign, getter=isInlineAttachment) BOOL inlineAttachment; + +// Returns the owner message of the part. @property (nonatomic, weak) MCOAbstractMessage * message; +// Returns the part with the given Content-ID among this part and its subparts. - (MCOAbstractPart *) partForContentID:(NSString *)contentID; + +// Returns the part with the given unique identifier among this part and its subparts. - (MCOAbstractPart *) partForUniqueID:(NSString *)uniqueID; @end |