Removing the use of private CoreGraphics APIs to draw shadows, and replacing with...
[ITKit.git] / ITHotKeyCenter.h
1 /*
2  *      ITKit
3  *      ITHotKeyCenter.h
4  *
5  *      Copyright (c) 2005 iThink Software
6  *
7  */
8
9 #import <Cocoa/Cocoa.h>
10
11 @class ITHotKey;
12
13 @interface ITHotKeyCenter : NSObject {
14         NSMutableDictionary *mHotKeys; //Keys are NSValue of EventHotKeyRef
15         BOOL mEventHandlerInstalled;
16         BOOL _enabled;
17 }
18
19 + (id)sharedCenter;
20
21 - (BOOL)isEnabled;
22 - (void)setEnabled:(BOOL)flag;
23
24 - (BOOL)registerHotKey:(ITHotKey *)hotKey;
25 - (void)unregisterHotKey:(ITHotKey *)hotKey;
26
27 - (NSArray *)allHotKeys;
28
29 - (void)sendEvent:(NSEvent *)event;
30
31 @end