-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGBController.h
108 lines (79 loc) · 4.39 KB
/
GBController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// This file is part of hdhomerunner.
// hdhomerunner is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
// hdhomerunner is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// GBController.h
// hdhomerunner
//
// Created by Gregory Barchard on 7/22/07.
// Copyright 2007 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <Carbon/Carbon.h>
#import "hdhomerun.h"
#import "ThreadWorker.h"
#import "DIController.h"
#import "GBPreferenceController.h";
#import "GBTuner.h";
#import "GBChannel.h";
@interface GBController : NSObject {
NSMutableArray *tuners; // The array of tuners found on the network
NSMutableArray *channels; // The array of channels
NSMutableArray *threads; // An array of threads
NSMutableArray *autoscan; // An array to hold the autoscan results
IBOutlet NSMenuItem *importhdhrcontrol; // The menu item associated with importing HDHomeRunControl ChannelMaps
IBOutlet NSMenuItem *exporthdhrcontrol; // The menu item associated with exporting HDHomeRunControl ChannelMaps
IBOutlet NSMenuItem *importxml; // The menu item associated with importing a XML ChannelMap
IBOutlet NSMenuItem *exportxml; // The menu item associated with exporting a XML ChannelMap
IBOutlet NSWindow *_mainWindow; // The main window
IBOutlet NSWindow *_upgradeWindow; // The upgrade window
IBOutlet NSWindow *_autoscanSheet; // The autoscan window
IBOutlet NSProgressIndicator *progress_indicator; // The progress indicator on the main window
IBOutlet NSProgressIndicator *upgrade_progress_indicator; // The progress indicator on the upgrade window
IBOutlet NSTextField *upgrade_status_field; // The upgrade status field on the upgrade window
IBOutlet NSProgressIndicator *autoscan_total_level; // The progress on scanning a given tuner
IBOutlet NSArrayController *_tunercontroller; // The array controller which manages the tuners
IBOutlet NSArrayController *_channelcontroller; // The array controller which manages the channels
IBOutlet NSArrayController *_autoscancontroller; // The array controller which manages the results from the autoscan
IBOutlet NSTableView *_tunerview; // The tableview that displays available tuners
IBOutlet NSTableView *_channelview; // The tableview that displays available channels
IBOutlet NSTableView *_autoscanview; // The tableview that displays channels discovered by the autoscan feature
BOOL fullscreen; // The value that specifies whether VLC should be launched in fullscreen
BOOL autoupdate; // The value that specifies if tuners should be autoupdated.
NSAppleScript *vlc; // The script to launch and control VLC
NSURL *firmware; // The location of the most up-to-date firmware
NSNumber *lineuplocation; // The location to retrieve channel data for
}
-(NSArray *)tuners;
-(void)setTuners:(NSArray *)newTuners;
-(void)addTuner:(GBTuner *)newTuner;
-(NSArray *)channels;
-(void)setChannels:(NSArray *)newChannels;
-(BOOL)fullscreen;
-(void)setFullscreen:(BOOL)newState;
-(void)addChannel:(GBChannel *)newChannel;
-(NSNumber *)lineuplocation;
-(void)setLineuplocation:(NSNumber *)newLocation;
-(IBAction)importChannels:(id)sender;
-(IBAction)exportChannels:(id)sender;
-(IBAction)discover:(id)sender;
-(IBAction)playChannel:(id)sender;
-(BOOL)autoupdate;
-(void)setAutoupdate:(BOOL)newState;
-(void)update;
-(void)filePanelDidEnd:(NSOpenPanel *)panel returnCode:(int)returnCode contextInfo:(void *)contextInfo;
-(void)tunerWillChangeChannel:(NSNotification *)notification;
-(IBAction)scanChannels:(id)sender;
-(void)autoscanDidFinish:(NSNotification *)notification;
-(void)setAutoscan:(NSArray *)newArray;
-(NSArray *)autoscan;
- (IBAction)doneConfiguring:(id)sender;
@end