AppDelegate.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // AppDelegate.h
  3. // nitoTV4Installer
  4. //
  5. // Created by Kevin Bradley on 1/24/18.
  6. // Copyright © 2018 Kevin Bradley. All rights reserved.
  7. //
  8. #import <Cocoa/Cocoa.h>
  9. #include "ObjSSH.h"
  10. #import "EMKeychainItem.h"
  11. #import "KBDownloadFile.h"
  12. typedef enum
  13. {
  14. KBInstallVersionStateNine,
  15. KBInstallVersionStateTenOne,
  16. KBInstallVersionStateTenTwo,
  17. KBInstallVersionStateEleven
  18. }
  19. KBInstallVersionState;
  20. @interface AppDelegate : NSObject <NSApplicationDelegate>
  21. {
  22. ObjSSH *sshSession;
  23. BOOL isSending;
  24. BOOL _atvAvailable;
  25. NSString *finalDestination;
  26. IBOutlet NSTextField *statusLabel;
  27. NSString *fileName;
  28. }
  29. @property (readwrite, assign) KBInstallVersionState versionState;
  30. @property (nonatomic, strong) ObjSSH *sshSession;
  31. @property (nonatomic, strong) NSString *workingPath;
  32. @property (readwrite, assign) BOOL isSending;
  33. @property (nonatomic, weak) IBOutlet NSProgressIndicator *progressInd;
  34. @property (nonatomic, weak) IBOutlet NSButton *mainButton;
  35. @property (nonatomic, strong) KBDownloadFile *downloadFile;
  36. @property (readwrite, assign) BOOL downloading;
  37. @property (nonatomic, strong) NSDictionary *deviceDict;
  38. //@property (readwrite, assign) BOOL atvAvailable;
  39. @property (nonatomic, strong) NSString *bundleID;
  40. - (void)setAtvAvailable:(BOOL)atvAvailable;
  41. - (BOOL)atvAvailable;
  42. - (void)checkJailbreakWithCompletion:(void(^)(BOOL jailbroken))completion;
  43. - (IBAction)doIt:(id)sender;
  44. - (void)resetServerSettings;
  45. - (void)setStatusText:(NSString *)statusText;
  46. - (void)showATVWarning;
  47. - (BOOL)isJailbroken;- (void)showNotJailbrokenWarning;
  48. @end