mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-24 05:09:44 +00:00
Interims commit. Broken. Doesn compile
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user