1 | //␊ |
2 | // PartitionInfoManager.h␊ |
3 | // ChameleonPrefPane␊ |
4 | //␊ |
5 | // Encapsulate the handling & interfacing of all disk partitions␊ |
6 | // Implements: Singleton DP␊ |
7 | //␊ |
8 | // Created by Rekursor on 11-11-13.␊ |
9 | //␊ |
10 | ␊ |
11 | #import <Cocoa/Cocoa.h>␊ |
12 | #import "PartitionInfoElement.h"␊ |
13 | ␊ |
14 | @interface PartsInfoMgr : NSObject {␊ |
15 | ␉␊ |
16 | }␊ |
17 | ␊ |
18 | +(NSArray*)parts;␊ |
19 | +(NSUInteger) count;␊ |
20 | +(PartitionInfoElement*) objectAtIndex:(NSUInteger) index;␊ |
21 | ␊ |
22 | +(void) hideParts: (NSString*) partSpec;␊ |
23 | +(void) renameParts: (NSString*) partSpec;␊ |
24 | ␊ |
25 | +(PartitionInfoElement*) partWithName: (NSString*) nameSpec;␊ |
26 | +(PartitionInfoElement*) partWithName: (NSString*) nameSpec outIndex:(NSUInteger*) ind;␊ |
27 | ␊ |
28 | +(void) reload;␊ |
29 | +(void) reloadWithHideSpec: (NSString*) hideSpec andRenameSpec:(NSString*) renSpec;␊ |
30 | ␊ |
31 | // Partitions swapping mgt␊ |
32 | +(void)resetSwapping;␊ |
33 | +(void)swapHD:(NSUInteger) src with:(NSUInteger) dst;␊ |
34 | ␊ |
35 | +(NSString*) getRenameStringFrom:(NSString*) currentStr andPartition: (PartitionInfoElement*) partInfo;␊ |
36 | ␊ |
37 | ␊ |
38 | @end␊ |
39 | |