-//
-// ITHotKeyCenter.h
-//
-// Created by Quentin Carnicelli on Sat Aug 02 2003.
-// Copyright (c) 2003 iThink Software. All rights reserved.
-//
-
-#import <AppKit/AppKit.h>
+/*
+ * ITKit
+ * ITHotKeyCenter.h
+ *
+ * Copyright (c) 2005 by iThink Software.
+ * All Rights Reserved.
+ *
+ * $Id$
+ *
+ */
+
+#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;
+
+- (BOOL)registerHotKey:(ITHotKey *)hotKey;
+- (void)unregisterHotKey:(ITHotKey *)hotKey;
-- (NSArray*)allHotKeys;
+- (NSArray *)allHotKeys;
-- (void)sendEvent: (NSEvent*)event;
+- (void)sendEvent:(NSEvent *)event;
-@end
+@end
\ No newline at end of file