aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/imap/MCOIMAPIdentity.h
blob: 69f18c968d87a5db5efd0bd98cf86b14ef138145 (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
39
40
41
42
43
44
45
//
//  MCOIMAPIdentity.h
//  mailcore2
//
//  Created by Hoa V. DINH on 8/24/13.
//  Copyright (c) 2013 MailCore. All rights reserved.
//

#ifndef MAILCORE_MCOIMAPIDENTITY_H

#define MAILCORE_MCOIMAPIDENTITY_H

#import <Foundation/Foundation.h>

@interface MCOIMAPIdentity : NSObject <NSCopying>

/** Returns a simple identity */
+ (MCOIMAPIdentity *) identityWithVendor:(NSString *)vendor
                                    name:(NSString *)name
                                 version:(NSString *)version;

/** Vendor of the IMAP client */
@property (nonatomic, copy) NSString * vendor;

/** Name of the IMAP client */
@property (nonatomic, copy) NSString * name;

/** Version of the IMAP client */
@property (nonatomic, copy) NSString * version;

/** All fields names of the identity of the client */
- (NSArray *) allInfoKeys;

/** Set a custom field in the identity */
- (NSString *) infoForKey:(NSString *)key;

/** Retrieve a custom field in the identity */
- (void) setInfo:(NSString *)value forKey:(NSString *)key;

/** Remove all info keys including vendor, name and version */
- (void) removeAllInfos;

@end

#endif