diff options
author | 2013-03-24 23:26:55 -0700 | |
---|---|---|
committer | 2013-03-24 23:26:55 -0700 | |
commit | b41efcc17b184ce75a648e26f85662c68756a912 (patch) | |
tree | ad8932dc955dff61ccb0edc5764f53d98b2570ed /src/objc/utils/MCOIndexSet.h | |
parent | 2a6128d2d7782be77bcf5dc8d5087dd8eb493eab (diff) |
Implemented IMAP ObjC API
Diffstat (limited to 'src/objc/utils/MCOIndexSet.h')
-rw-r--r-- | src/objc/utils/MCOIndexSet.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/objc/utils/MCOIndexSet.h b/src/objc/utils/MCOIndexSet.h new file mode 100644 index 00000000..3e9cc613 --- /dev/null +++ b/src/objc/utils/MCOIndexSet.h @@ -0,0 +1,33 @@ +// +// MCOIndexSet.h +// mailcore2 +// +// Created by DINH Viêt Hoà on 3/23/13. +// Copyright (c) 2013 MailCore. All rights reserved. +// + +#import <Foundation/Foundation.h> + +#import <mailcore/MCORange.h> + +// similar to NSMutableIndexSet but supports int64_t + +@interface MCOIndexSet : NSObject <NSCopying> + ++ (MCOIndexSet *) indexSet; ++ (MCOIndexSet *) indexSetWithRange:(MCORange)range; ++ (MCOIndexSet *) indexSetWithIndex:(uint64_t)idx; + +- (unsigned int) count; +- (void) addIndex:(uint64_t)idx; +- (void) removeIndex:(uint64_t)idx; +- (BOOL) containsIndex:(uint64_t)idx; + +- (void) addRange:(MCORange)range; +- (void) removeRange:(MCORange)range; +- (void) intersectsRange:(MCORange)range; + +- (MCORange *) allRanges; +- (unsigned int) rangesCount; + +@end |