blob: 1690c0e3a0c6fd90388b67db5a719065b235116d (
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
|
//
// 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;
@end
#endif
|