aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/imap/MCOIMAPNamespaceItem.h
blob: 64ae3c5fa9888a94897949d1b7f576c60cf5bb8d (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
//
//  MCOIMAPNamespaceItem.h
//  mailcore2
//
//  Created by DINH Viêt Hoà on 3/23/13.
//  Copyright (c) 2013 MailCore. All rights reserved.
//

#ifndef MAILCORE_MCOIMAPNAMESPACEITEM_H

#define MAILCORE_MCOIMAPNAMESPACEITEM_H

/** Represents a namespace item */

#import <Foundation/Foundation.h>

@interface MCOIMAPNamespaceItem : NSObject <NSCopying>

/** This is the prefix for this namespace item */
@property (nonatomic, copy) NSString * prefix;

/** This is the delimiter of the path for this namespace item */
@property (nonatomic, assign) char delimiter;

/** Returns folder path for given path components in the context of this namespace item */
- (NSString *) pathForComponents:(NSArray *)components;

/** Returns components for the given path in the context of this namespace */
- (NSArray * /* NSString */) componentsForPath:(NSString *)path;

/** Returns YES if the namespace contains this folder path */
- (BOOL) containsFolder:(NSString *)folder;

@end

#endif