347110f967aa21d50895b03f8a3280306f5e89ba
[ITKit.git] / ITHotKeyCenter.h
1 /*
2  *      ITKit
3  *  ITHotKeyCenter
4  *
5  *  Original Author : Quentin Carnicelli <...>
6  *   Responsibility : Kent Sutherland <kent.sutherland@ithinksw.com>
7  *   Responsibility : Matthew Judy <mjudy@ithinksw.com>
8  *
9  *  Copyright (c) 2002 - 2003 iThink Software.
10  *  All Rights Reserved
11  *
12  */
13
14
15 #import <AppKit/AppKit.h>
16
17
18 @class ITHotKey;
19
20
21 @interface ITHotKeyCenter : NSObject
22 {
23         NSMutableDictionary*    mHotKeys; //Keys are NSValue of EventHotKeyRef
24         BOOL                    mEventHandlerInstalled;
25         BOOL                    _enabled;
26 }
27
28 + (id)sharedCenter;
29
30 - (BOOL)isEnabled;
31 - (void)setEnabled:(BOOL)flag;
32
33 - (BOOL)registerHotKey: (ITHotKey*)hotKey;
34 - (void)unregisterHotKey: (ITHotKey*)hotKey;
35
36 - (NSArray*)allHotKeys;
37
38 - (void)sendEvent: (NSEvent*)event;
39
40
41 @end