Inherits from NSObject
Conforms to NSCopying
Declared in MCOAbstractPart.h
MCOAbstractPart.mm

Properties

charset

Returns charset of the part in case it’s a text single part.

@property (nonatomic, copy) NSString *charset

Declared In

MCOAbstractPart.h

contentDescription

Returns the value of the Content-Description field of the part.

@property (nonatomic, copy) NSString *contentDescription

Declared In

MCOAbstractPart.h

contentID

Returns the value of the Content-ID field of the part.

@property (nonatomic, copy) NSString *contentID

Declared In

MCOAbstractPart.h

contentLocation

Returns the value of the Content-Location field of the part.

@property (nonatomic, copy) NSString *contentLocation

Declared In

MCOAbstractPart.h

filename

Returns filename of the part.

@property (nonatomic, copy) NSString *filename

Declared In

MCOAbstractPart.h

inlineAttachment

Returns whether the part is an explicit inline attachment.

@property (nonatomic, assign, getter=isInlineAttachment) BOOL inlineAttachment

Declared In

MCOAbstractPart.h

mimeType

Returns MIME type of the part. For example application/data.

@property (nonatomic, copy) NSString *mimeType

Declared In

MCOAbstractPart.h

partType

Returns type of the part (single / message part / multipart/mixed, multipart/related, multipart/alternative). See MCOPartType.

@property (nonatomic, assign) MCOPartType partType

Declared In

MCOAbstractPart.h

uniqueID

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

Declared In

MCOAbstractPart.h

Instance Methods

allContentTypeParametersNames

Returns an array with the names of all content type parameters.

- (NSArray *)allContentTypeParametersNames

Declared In

MCOAbstractPart.h

contentTypeParameterValueForName:

Returns the value of a given content type parameter.

- (NSString *)contentTypeParameterValueForName:(NSString *)name

Declared In

MCOAbstractPart.h

decodedStringForData:

Returns a string representation of the data according to charset.

- (NSString *)decodedStringForData:(NSData *)data

Declared In

MCOAbstractPart.h

partForContentID:

Returns the part with the given Content-ID among this part and its subparts.

- (MCOAbstractPart *)partForContentID:(NSString *)contentID

Declared In

MCOAbstractPart.h

partForUniqueID:

Returns the part with the given unique identifier among this part and its subparts.

- (MCOAbstractPart *)partForUniqueID:(NSString *)uniqueID

Declared In

MCOAbstractPart.h

removeContentTypeParameterForName:

Remove a given content type parameter.

- (void)removeContentTypeParameterForName:(NSString *)name

Declared In

MCOAbstractPart.h

setContentTypeParameterValue:forName:

Adds a content type parameter.

- (void)setContentTypeParameterValue:(NSString *)value forName:(NSString *)name

Declared In

MCOAbstractPart.h