Licensing ITMac under the GNU Lesser General Public License version 2.1.
[ITMac.git] / ITOSAComponent.h
1 /*
2  *      ITMac
3  *      ITOSAComponent.h
4  *
5  *      Class that wraps OpenScripting components.
6  *
7  *      Copyright (c) 2005 iThink Software
8  *
9  */
10
11 #import <Foundation/Foundation.h>
12 #import <Carbon/Carbon.h>
13
14 @interface ITOSAComponent : NSObject {
15         Component _component;
16         ComponentInstance _componentInstance;
17         NSDictionary *_information;
18 }
19
20 + (ITOSAComponent *)appleScriptComponent;
21 + (ITOSAComponent *)componentWithCarbonComponent:(Component)component;
22 + (NSArray *)availableComponents;
23
24 - (id)initWithSubtype:(unsigned long)subtype;
25 - (id)initWithComponent:(Component)component;
26
27 - (Component)component;
28 - (ComponentInstance)componentInstance;
29 - (NSDictionary *)information;
30
31 @end