aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/abstract/MCOAddress.h
blob: 7362af93220db99ef7d5fb3d9c874bd8f6d676aa (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
//
//  MCOAddress.h
//  mailcore2
//
//  Created by DINH Viêt Hoà on 3/10/13.
//  Copyright (c) 2013 MailCore. All rights reserved.
//

#ifndef __MAILCORE_MCOADDRESS_H_

#define __MAILCORE_MCOADDRESS_H_

#import <Foundation/Foundation.h>

@interface MCOAddress : NSObject <NSCopying>

+ (MCOAddress *) addressWithDisplayName:(NSString *)displayName
                                mailbox:(NSString *)mailbox;

+ (MCOAddress *) addressWithMailbox:(NSString *)mailbox;

+ (MCOAddress *) addressWithRFC822String:(NSString *)RFC822String;

+ (MCOAddress *) addressWithNonEncodedRFC822String:(NSString *)nonEncodedRFC822String;

@property (nonatomic, copy) NSString * displayName;
@property (nonatomic, copy) NSString * mailbox;

- (NSString *) RFC822String;
- (NSString *) nonEncodedRFC822String;

@end

#endif