Removing the use of private CoreGraphics APIs to draw shadows, and replacing with...
[ITKit.git] / ITHotKeyCenter.h
old mode 100755 (executable)
new mode 100644 (file)
index e984bc5..e0ab5e0
@@ -1,27 +1,31 @@
-//
-//  ITHotKeyCenter.h
-//
-//  Created by Quentin Carnicelli on Sat Aug 02 2003.
-//  Copyright (c) 2003 iThink Software. All rights reserved.
-//
+/*
+ *     ITKit
+ *     ITHotKeyCenter.h
+ *
+ *     Copyright (c) 2005 iThink Software
+ *
+ */
 
-#import <AppKit/AppKit.h>
+#import <Cocoa/Cocoa.h>
 
 @class ITHotKey;
 
-@interface ITHotKeyCenter : NSObject
-{
-       NSMutableDictionary*    mHotKeys; //Keys are NSValue of EventHotKeyRef
-       BOOL                    mEventHandlerInstalled;
+@interface ITHotKeyCenter : NSObject {
+       NSMutableDictionary *mHotKeys; //Keys are NSValue of EventHotKeyRef
+       BOOL mEventHandlerInstalled;
+       BOOL _enabled;
 }
 
 + (id)sharedCenter;
 
-- (BOOL)registerHotKey: (ITHotKey*)hotKey;
-- (void)unregisterHotKey: (ITHotKey*)hotKey;
+- (BOOL)isEnabled;
+- (void)setEnabled:(BOOL)flag;
 
-- (NSArray*)allHotKeys;
+- (BOOL)registerHotKey:(ITHotKey *)hotKey;
+- (void)unregisterHotKey:(ITHotKey *)hotKey;
 
-- (void)sendEvent: (NSEvent*)event;
+- (NSArray *)allHotKeys;
 
-@end
+- (void)sendEvent:(NSEvent *)event;
+
+@end
\ No newline at end of file