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

#import <Foundation/Foundation.h>

#ifndef __MAILCORE_MCOIMAPNAMESPACE_H_

#define __MAILCORE_MCOIMAPNAMESPACE_H_

@class MCOIMAPNamespace;

@interface MCOIMAPNamespace : NSObject <NSCopying>

+ (MCOIMAPNamespace *) namespaceWithPrefix:(NSString *)prefix delimiter:(char)delimiter;

- (NSString *) mainPrefix;
- (char) mainDelimiter;
- (NSArray *) prefixes;
- (NSString *) pathForComponents:(NSArray *)components;
- (NSString *) pathForComponents:(NSArray *)components prefix:(NSString *)prefix;
- (NSArray *) componentsFromPath:(NSString *)path;
- (BOOL) containsFolderPath:(NSString *)path;

@end

#endif