-//
-// 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