// // AppDelegate.h // Mini vMac // // Created by Jesús A. Álvarez on 27/04/2016. // Copyright © 2016 namedfork. All rights reserved. // #import extern NSString * const MNVMDidInsertDiskNotification; extern NSString * const MNVMDidEjectDiskNotification; typedef enum : NSUInteger { EmulationSpeedMax = -1, EmulationSpeed1x = 0, EmulationSpeed2x, EmulationSpeed4x, EmulationSpeed8x, EmulationSpeed16x, EmulationSpeed32x } EmulationSpeed; @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; @property (assign, nonatomic, getter=isEmulatorRunning) BOOL emulatorRunning; @property (nonatomic, assign) EmulationSpeed emulationSpeed; @property (nonatomic, readonly) NSString *documentsPath; @property (nonatomic, readonly) NSArray *diskImageExtensions; + (instancetype)sharedInstance; - (void)showAlertWithTitle:(NSString *)title message:(NSString *)message; - (IBAction)showInsertDisk:(id)sender; - (IBAction)showSettings:(id)sender; - (void)setMouseX:(NSInteger)x Y:(NSInteger)y; - (void)moveMouseX:(NSInteger)x Y:(NSInteger)y; - (void)setMouseButton:(BOOL)down; - (BOOL)insertDisk:(NSString*)path; - (BOOL)isDiskInserted:(NSString*)path; @end