Adding methods for Equalizer enabled nonsense to the iTunes remote,
[MenuTunes.git] / HotKeyCenter.h
1 //
2 //  HotKeyCenter.h
3 //
4 //  Created by Quentin D. Carnicelli on Thu Jun 06 2002.
5 //  Copyright (c) 2002 Subband inc.. All rights reserved.
6 //
7 //  Feedback welcome at qdc@subband.com
8 //  This code is provided AS IS, so don't hurt yourself with it...
9 //
10
11 #import <AppKit/AppKit.h>
12
13 #import "KeyCombo.h"
14
15 @interface HotKeyCenter : NSObject
16 {
17     BOOL mEnabled;
18     NSMutableDictionary *mHotKeys;
19 }
20
21 + (id)sharedCenter;
22
23 - (BOOL)addHotKey:(NSString *)name combo:(KeyCombo *)combo target:(id)target action:(SEL)action;
24 - (void)removeHotKey:(NSString *)name;
25
26 - (NSArray *)allNames;
27 - (KeyCombo *)keyComboForName:(NSString *)name;
28
29 - (void)setEnabled:(BOOL)enabled;
30 - (BOOL)enabled;
31
32 - (void)sendEvent:(NSEvent *)event;
33
34 @end