minivmac4ios/Mini vMac/AppDelegate.h

46 lines
1.2 KiB
C
Raw Normal View History

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