Interims commit. Broken. Doesn compile

This commit is contained in:
michael starke
2014-02-07 00:46:28 +01:00
parent c5cc511dcd
commit d6dcb96ba5
8 changed files with 164 additions and 164 deletions

View File

@@ -14,7 +14,9 @@ extern NSString *const kMPAutotypeSymbolAlt;
extern NSString *const kMPAutotypeSymbolEnter;
extern NSString *const kMPAutptypeCommandEnter;
@class KPKEntry;
extern uint16_t const kMPUnknownKeyCode;
@class MPAutotypeContext;
/**
* The Autotype command reperesent a capsualted Action that was determined by interpreting
@@ -23,16 +25,24 @@ extern NSString *const kMPAutptypeCommandEnter;
*/
@interface MPAutotypeCommand : NSObject
@property (readonly, copy) NSString *commandString;
@property (readonly, strong) MPAutotypeContext *context;
/**
* Determines the Keycode for the given keyboard layout for the supplied character
* Retrieves the string representation with the current keyboard mapping for the keycode
*
* @param uchrHeader The KeyboardLayout
* @param character The Character that needs to be pressed
*
* @return Key code in the supplied keyboard layout
* @param keyCode The virutal keycode to be pressed
* @return NSString containing the current mapping for the keyCode
*/
- (CGKeyCode)keyCodeForKeyboard:(const UCKeyboardLayout *)uchrHeader character:(NSString *)character;
+ (NSString *)stringForKey:(CGKeyCode)keyCode;
/**
* Determines the keyCode (if possible) for the charater
*
* @param character NSString with a single character to be transformed
* @return virtual Keycode for the supplied string. If none is found, kMPUnkonwKeyCode is returned
*/
+ (CGKeyCode)keyCodeForCharacter:(NSString *)character;
- (id)initWithContext:(MPAutotypeContext *)context;
/**
* Sends a KeyPress Event with the supplied modifier flags and Keycode
* Any existing modifiers will be disabled for this event. If the user
@@ -51,6 +61,6 @@ extern NSString *const kMPAutptypeCommandEnter;
/**
* Exectues the Autotype Command. This will be called by the autotype daemon.
*/
- (void)executeWithEntry:(KPKEntry *)entry;
- (void)execute;
@end