1 | //␊ |
2 | // PartitionInfoElement.h␊ |
3 | // ChameleonPrefPane␊ |
4 | //␊ |
5 | // Created by Rekursor on 11-11-12.␊ |
6 | //␊ |
7 | ␊ |
8 | #import <Cocoa/Cocoa.h>␊ |
9 | ␊ |
10 | @interface PartitionInfoElement : NSObject {␊ |
11 | ␉NSString*␉ bsdName;␊ |
12 | ␉NSString␉␉*vUUID, *vName, *vKind, *mediaPath, *devProtocol;␊ |
13 | ␉bool␉␉␉␉devInternal, mediaRemovable;␊ |
14 | ␉NSDictionary*␉descDict;␊ |
15 | ␊ |
16 | ␉NSString␉␉*vAliasName; // for rename partition purpose␊ |
17 | ␉bool␉␉␉␉hidden;␉␉ // for hide partition purpose␊ |
18 | ␉int␉␉␉␉err; // non zero if problem occurred during info extraction␊ |
19 | ␉int␉␉␉␉diskNum, partNum;␊ |
20 | }␊ |
21 | ␊ |
22 | // Partition information properties␊ |
23 | @property (retain) NSDictionary* descDict;␊ |
24 | @property (retain) NSString* bsdName;␊ |
25 | @property (retain) NSString* vUUID;␊ |
26 | @property (retain) NSString* vKind;␊ |
27 | @property (retain) NSString* vName;␊ |
28 | @property (retain) NSString* mediaPath;␊ |
29 | @property (retain) NSString* devProtocol;␊ |
30 | ␊ |
31 | @property (assign) bool devInternal;␊ |
32 | @property (assign) bool mediaRemovable;␊ |
33 | ␊ |
34 | @property (retain) NSString* vAliasName;␊ |
35 | @property (assign) bool hidden;␊ |
36 | ␊ |
37 | +(NSArray*) createBSDPartitionList;␊ |
38 | +(NSUInteger*) hdRedirTable;␊ |
39 | ␊ |
40 | -(id)␉initWithBSDName: (NSString*) bsdName;␊ |
41 | -(id)␉initWithBSDName: (NSString*) bsdName withinSession: (DASessionRef) session;␊ |
42 | ␊ |
43 | -(int)␉extractInfoWithBSDName: (NSString*) bsdName;␊ |
44 | -(int)␉extractInfoWithBSDName: (NSString*) bsdName withinSession:(DASessionRef) session;␊ |
45 | ␊ |
46 | +(NSMutableArray*)␉extractInfoWithBSDNames: (NSArray*) bsdNames;␊ |
47 | +(NSMutableArray*)␉extractInfoWithBSDNames: (NSArray*) bsdNames withArray:(NSMutableArray*) arr;␊ |
48 | ␊ |
49 | -(bool)␉isValid;␊ |
50 | ␊ |
51 | // Get any DA attribute from dict␊ |
52 | -(NSString*) createStringValueWithKey: (NSString*) key;␊ |
53 | ␊ |
54 | -(int) diskNumber;␊ |
55 | -(int) partitionNumber;␊ |
56 | -(void) setDiskNumber:(int) d;␊ |
57 | -(void) setPartitionNumber:(int)p;␊ |
58 | -(NSString*) hdString;␊ |
59 | ␊ |
60 | -(NSString*) description;␊ |
61 | -(bool) isBootable;␊ |
62 | -(int) imageIndexFromFs;␊ |
63 | +(NSString*) removesSpacesFromLabel:(NSString*) label;␊ |
64 | @end␊ |
65 | |