DAMN YOU PROJECT BUILDER FOR IMPORTING ONLY FOUNDATION!!!
[ITKit.git] / ITHotKeyCenter.h
1 //
2 //  ITHotKeyCenter.h
3 //
4 //  Created by Quentin Carnicelli on Sat Aug 02 2003.
5 //  Copyright (c) 2003 iThink Software. All rights reserved.
6 //
7
8 #import <AppKit/AppKit.h>
9
10 @class ITHotKey;
11
12 @interface ITHotKeyCenter : NSObject
13 {
14         NSMutableDictionary*    mHotKeys; //Keys are NSValue of EventHotKeyRef
15         BOOL                    mEventHandlerInstalled;
16 }
17
18 + (id)sharedCenter;
19
20 - (BOOL)registerHotKey: (ITHotKey*)hotKey;
21 - (void)unregisterHotKey: (ITHotKey*)hotKey;
22
23 - (NSArray*)allHotKeys;
24
25 - (void)sendEvent: (NSEvent*)event;
26
27 @end