MCOAbstractPart Class Reference
| Inherits from | NSObject |
| Conforms to | NSCopying |
| Declared in | MCOAbstractPart.h MCOAbstractPart.mm |
Tasks
-
partTypeproperty -
filenameproperty -
mimeTypeproperty -
charsetproperty -
uniqueIDproperty -
contentIDproperty -
contentLocationproperty -
contentDescriptionproperty -
inlineAttachmentproperty -
– partForContentID: -
– partForUniqueID: -
– decodedStringForData: -
– setContentTypeParameterValue:forName: -
– removeContentTypeParameterForName: -
– contentTypeParameterValueForName: -
– allContentTypeParametersNames
Properties
charset
Returns charset of the part in case it’s a text single part.
@property (nonatomic, copy) NSString *charsetDeclared In
MCOAbstractPart.hcontentDescription
Returns the value of the Content-Description field of the part.
@property (nonatomic, copy) NSString *contentDescriptionDeclared In
MCOAbstractPart.hcontentID
Returns the value of the Content-ID field of the part.
@property (nonatomic, copy) NSString *contentIDDeclared In
MCOAbstractPart.hcontentLocation
Returns the value of the Content-Location field of the part.
@property (nonatomic, copy) NSString *contentLocationDeclared In
MCOAbstractPart.hfilename
Returns filename of the part.
@property (nonatomic, copy) NSString *filenameDeclared In
MCOAbstractPart.hinlineAttachment
Returns whether the part is an explicit inline attachment.
@property (nonatomic, assign, getter=isInlineAttachment) BOOL inlineAttachmentDeclared In
MCOAbstractPart.hmimeType
Returns MIME type of the part. For example application/data.
@property (nonatomic, copy) NSString *mimeTypeDeclared In
MCOAbstractPart.hpartType
Returns type of the part (single / message part / multipart/mixed, multipart/related, multipart/alternative). See MCOPartType.
@property (nonatomic, assign) MCOPartType partTypeDeclared In
MCOAbstractPart.hInstance Methods
allContentTypeParametersNames
Returns an array with the names of all content type parameters.
- (NSArray *)allContentTypeParametersNamesDeclared In
MCOAbstractPart.hcontentTypeParameterValueForName:
Returns the value of a given content type parameter.
- (NSString *)contentTypeParameterValueForName:(NSString *)nameDeclared In
MCOAbstractPart.hdecodedStringForData:
Returns a string representation of the data according to charset.
- (NSString *)decodedStringForData:(NSData *)dataDeclared In
MCOAbstractPart.hpartForContentID:
Returns the part with the given Content-ID among this part and its subparts.
- (MCOAbstractPart *)partForContentID:(NSString *)contentIDDeclared In
MCOAbstractPart.hpartForUniqueID:
Returns the part with the given unique identifier among this part and its subparts.
- (MCOAbstractPart *)partForUniqueID:(NSString *)uniqueIDDeclared In
MCOAbstractPart.h