|
Revision 792, 0.8 kB
(checked in by durin42, 8 months ago)
|
Initial version of an improved component management tab. I've done enough to
get the code Ken wrote working with our setup, but we need to add some smarts
so the components can compute their status (eg should upgrade, remove, etc).
|
| Line | |
|---|
| 1 |
// |
|---|
| 2 |
// ECQTComponent.h |
|---|
| 3 |
// QTManager |
|---|
| 4 |
// |
|---|
| 5 |
// Created by Ken on 12/15/07. |
|---|
| 6 |
// Copyright 2007 __MyCompanyName__. All rights reserved. |
|---|
| 7 |
// |
|---|
| 8 |
|
|---|
| 9 |
#import <Cocoa/Cocoa.h> |
|---|
| 10 |
|
|---|
| 11 |
typedef enum _componentScope |
|---|
| 12 |
{ |
|---|
| 13 |
componentIsLocal = 0, |
|---|
| 14 |
componentIsGlobal = 1, |
|---|
| 15 |
componentIsSystem = 2 |
|---|
| 16 |
|
|---|
| 17 |
} componentScope; |
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
@interface ECQTComponent : NSObject |
|---|
| 21 |
{ |
|---|
| 22 |
componentScope mWhere; |
|---|
| 23 |
|
|---|
| 24 |
NSMutableDictionary* mParameters; |
|---|
| 25 |
} |
|---|
| 26 |
|
|---|
| 27 |
+(id)componentWithPath:(NSString*)path; |
|---|
| 28 |
|
|---|
| 29 |
-(void)setComponentInfo; |
|---|
| 30 |
-(void)setComponentScope; |
|---|
| 31 |
|
|---|
| 32 |
-(componentScope)isWhere; |
|---|
| 33 |
|
|---|
| 34 |
-(BOOL)extended; |
|---|
| 35 |
-(void)setEnabled:(BOOL)enabled; |
|---|
| 36 |
|
|---|
| 37 |
-(NSString*)name; |
|---|
| 38 |
-(NSString*)location; |
|---|
| 39 |
-(NSString*)version; |
|---|
| 40 |
-(NSString*)type; |
|---|
| 41 |
-(NSNumber*)compVersion; |
|---|
| 42 |
-(NSNumber*)compFlags; |
|---|
| 43 |
-(NSString*)arches; |
|---|
| 44 |
-(NSString*)whereSort; |
|---|
| 45 |
-(NSNumber*)componentEnabled; |
|---|
| 46 |
|
|---|
| 47 |
-(NSString*)types; |
|---|
| 48 |
-(NSString*)names; |
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 |
@end |
|---|