blob: 660113b5697a3e5b163e5c342c978c6dab9004ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
//
// MCOIMAPPart.h
// mailcore2
//
// Created by DINH Viêt Hoà on 3/23/13.
// Copyright (c) 2013 MailCore. All rights reserved.
//
#ifndef MAILCORE_MCOIMAPABSTRACTPART_H
#define MAILCORE_MCOIMAPABSTRACTPART_H
#import <MailCore/MCOAbstractPart.h>
#import <MailCore/MCOConstants.h>
/** Represents a single IMAP message part */
@interface MCOIMAPPart : MCOAbstractPart <NSCoding>
/** A part identifier looks like 1.2.1 */
@property (nonatomic, copy) NSString * partID;
/** The size of the single part in bytes */
@property (nonatomic, nonatomic) unsigned int size;
/** It's the encoding of the single part */
@property (nonatomic, nonatomic) MCOEncoding encoding;
/**
Returns the decoded size of the part.
For example, for a part that's encoded with base64, it will return actual_size * 3/4.
*/
- (unsigned int) decodedSize;
@end
#endif
|