/* MasterController */

#import <Cocoa/Cocoa.h>
#import "ApplicationController.h"
#import "ServersDataSource.h"
#import "RendezvousClient.h"
#import "MyTableView.h"
#import "PreferencesController.h"

@interface MasterController : NSObject
{
    IBOutlet ApplicationController *applicationController;
    IBOutlet ChooseServerController *chooseServerController;
    IBOutlet PreferencesController *preferencesController;
    IBOutlet NSPopUpButton *deinterlaceControl;
    IBOutlet NSPopUpButton *aspectRatioControl;
    IBOutlet NSSlider *gammaControl;
    IBOutlet MyTableView *streamsControl;
    IBOutlet NSButton *manualControl;
    IBOutlet NSTextField *manualAddressControl;
    IBOutlet NSTextField *playerInfoControl;
    IBOutlet NSTextField *choosePlayerInfoControl;
    IBOutlet NSWindow *searchingForServersWindow;
    IBOutlet NSProgressIndicator *searchProgressControl;
    IBOutlet ServersDataSource *serversDataSource;
    IBOutlet NSTableView *serversControl;
    IBOutlet NSWindow *chooseServerWindow;
    IBOutlet NSWindow *startingPlayerWindow;
    IBOutlet NSProgressIndicator *startProgressControl;
    IBOutlet NSPopUpButton *channelControl;
    IBOutlet NSWindow *controlWindow;
    IBOutlet NSButton *recordControl;
    IBOutlet NSButton *channelScanControl;
    IBOutlet NSButton *unlimitedBufferControl;
    IBOutlet NSSlider *streamPosControl;
    IBOutlet NSWindow *preferencesWindow;
    IBOutlet NSMenuItem *closeControl;

    RendezvousClient *_rendezvousClient;
    
    NSString *_resourcePath;
    NSString *_cytvSupportPath;
    NSString *_cytvLogPath;
    NSString *_manualAddress;
    NSString *_player;
    NSString *_playerBinary;
    NSString *_playerVersion;
    NSString *_server;
    NSString *_actualServer;
    NSString *_streamingServer;
    NSString *_transcoding;
    NSString *_clientId;
    NSString *_currentQuality;
    NSString *_playerCommandLine;
    NSString *_scheduledStream;
    NSString *_scheduledQuality;
    int _secureClientPid;
    int _secureClientPort;
    int _cacheSize;
    int _streamCachePort;
    int _streamCachePid;
    int _playerPid;
    BOOL _channelsAvailable;
    BOOL _idleEnabled;
}
- (ApplicationController *)applicationController;
@end
