Chameleon Applications

Chameleon Applications Svn Source Tree

Root/trunk/ChameleonPrefPane/Sources/PartitionInfoElement.h

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 {
11NSString* bsdName;
12NSString*vUUID, *vName, *vKind, *mediaPath, *devProtocol;
13booldevInternal, mediaRemovable;
14NSDictionary*descDict;
15
16NSString*vAliasName; // for rename partition purpose
17boolhidden; // for hide partition purpose
18interr; // non zero if problem occurred during info extraction
19intdiskNum, 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-(NSString*) hdString;
57
58-(NSString*) description;
59-(bool) isBootable;
60-(int) imageIndexFromFs;
61+(NSString*) removesSpacesFromLabel:(NSString*) label;
62@end
63

Archive Download this file

Revision: 341