summaryrefslogtreecommitdiff
path: root/macosx/PcsxrPlugin.h
blob: 3eb2b54994be862ac6a207c4e8eb1723ae0fc3ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
//  PcsxrPlugin.h
//  Pcsxr
//
//  Created by Gil Pedersen on Fri Oct 03 2003.
//  Copyright (c) 2003 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface PcsxrPlugin : NSObject {
	void *pluginRef;
	
	NSDate *modDate;
	NSString *fullPlugPath;
	long version;
	int type;
	int active;
}

@property (readonly, copy) NSString *path;
@property (readonly, strong) NSString *name;

+ (NSString *)prefixForType:(int)type;
+ (NSString *)defaultKeyForType:(int)type;
+ (char **)configEntriesForType:(int)type;
+ (NSArray *)pluginsPaths;

- (id)initWithPath:(NSString *)aPath;

- (NSString *)displayVersion;
- (int)type;
- (NSUInteger)hash;
- (NSString *)description;
- (BOOL)hasAboutAs:(int)type;
- (BOOL)hasConfigureAs:(int)type;
- (long)runAs:(int)aType;
- (long)shutdownAs:(int)aType;
- (void)aboutAs:(int)type;
- (void)configureAs:(int)type;
- (BOOL)verifyOK;

@end