Unescape the HREF attribute's text before passing it to NSURL which does not expect...
[adiumx.git] / Source / PTHotKeyCenter.h
bloba779aeddc43f3efa6b51ed664b1fd91f7e003fa5
1 //
2 // PTHotKeyCenter.h
3 // Protein
4 //
5 // Created by Quentin Carnicelli on Sat Aug 02 2003.
6 // Copyright (c) 2003 Quentin D. Carnicelli. All rights reserved.
7 //
8 // Contributers:
9 // Quentin D. Carnicelli
10 // Finlay Dobbie
11 // Vincent Pottier
13 #import <Cocoa/Cocoa.h>
14 @class PTHotKey;
16 @interface PTHotKeyCenter : NSObject
18 NSMutableDictionary* mHotKeys; //Keys are NSValue of EventHotKeyRef
19 BOOL mEventHandlerInstalled;
22 + (PTHotKeyCenter *)sharedCenter;
24 - (BOOL)registerHotKey: (PTHotKey*)hotKey;
25 - (void)unregisterHotKey: (PTHotKey*)hotKey;
27 - (NSArray*)allHotKeys;
28 - (PTHotKey*)hotKeyWithIdentifier: (id)ident;
30 - (void)sendEvent: (NSEvent*)event;
32 @end