ATVDeviceController.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* ATVDeviceController */
  2. #import <Cocoa/Cocoa.h>
  3. #import <Foundation/Foundation.h>
  4. @protocol ATVDeviceControllerDelegate <NSObject>
  5. - (void)servicesFound:(NSArray *)services;
  6. @end
  7. @interface ATVDeviceController : NSObject <NSNetServiceBrowserDelegate>
  8. {
  9. IBOutlet id hostNameField;
  10. IBOutlet id deviceList;
  11. IBOutlet id apiVersionLabel;
  12. IBOutlet id osVersionLabel;
  13. IBOutlet NSWindow *myWindow;
  14. IBOutlet NSPopUpButton *theComboBox;
  15. IBOutlet NSArrayController *deviceController;
  16. BOOL searching;
  17. NSNetServiceBrowser * browser;
  18. NSMutableArray * services;
  19. NSMutableData * currentDownload;
  20. NSArray *receivedFiles;
  21. NSDictionary *deviceDictionary;
  22. }
  23. @property (nonatomic, strong) IBOutlet NSPopUpButton *theComboBox;
  24. @property (nonatomic, strong) NSArrayController *deviceController;
  25. @property (readwrite, weak) id <ATVDeviceControllerDelegate> delegate;
  26. - (NSDictionary *)deviceDictionary;
  27. - (NSDictionary *)stringDictionaryFromService:(NSNetService *)theService;
  28. - (IBAction)serviceClicked:(id)sender;
  29. - (IBAction)menuItemSelected:(id)sender;
  30. - (NSDictionary *)currentServiceDictionary;
  31. @end