2014-10-29 00:47:51 -04:00
|
|
|
//
|
|
|
|
|
// DataManager.h
|
2015-05-12 21:48:30 -04:00
|
|
|
// Moonlight
|
2014-10-29 00:47:51 -04:00
|
|
|
//
|
|
|
|
|
// Created by Diego Waxemberg on 10/28/14.
|
2015-05-12 21:48:30 -04:00
|
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
2014-10-29 00:47:51 -04:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
#import "Settings.h"
|
|
|
|
|
#import "AppDelegate.h"
|
2014-11-26 17:57:16 -05:00
|
|
|
#import "Host.h"
|
2015-07-10 21:22:57 -07:00
|
|
|
#import "App.h"
|
2014-10-29 00:47:51 -04:00
|
|
|
|
|
|
|
|
@interface DataManager : NSObject
|
|
|
|
|
|
|
|
|
|
@property (strong, nonatomic) AppDelegate* appDelegate;
|
|
|
|
|
|
2014-12-29 13:03:07 -05:00
|
|
|
- (void) saveSettingsWithBitrate:(NSInteger)bitrate framerate:(NSInteger)framerate height:(NSInteger)height width:(NSInteger)width onscreenControls:(NSInteger)onscreenControls;
|
2014-10-29 00:47:51 -04:00
|
|
|
- (Settings*) retrieveSettings;
|
2014-11-26 17:57:16 -05:00
|
|
|
- (NSArray*) retrieveHosts;
|
2015-07-11 18:47:05 -07:00
|
|
|
- (void) saveData;
|
2015-01-01 22:30:03 -05:00
|
|
|
- (Host*) createHost;
|
2015-01-01 23:40:52 -05:00
|
|
|
- (void) removeHost:(Host*)host;
|
2015-07-10 21:22:57 -07:00
|
|
|
- (App*) createApp;
|
2015-07-11 18:47:05 -07:00
|
|
|
- (void) removeApp:(App*)app;
|
2014-10-29 00:47:51 -04:00
|
|
|
|
|
|
|
|
@end
|