//
//  ChooseServerController.h
//  CyTV Client
//
//  Copyright (c) 2004 Andreas Junghans. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface ChooseServerController : NSObject
{
    IBOutlet NSButton *advanced;
    IBOutlet NSTextField *audioBitrate;
    IBOutlet NSTextField *cacheSize;
    IBOutlet NSTextField *framerate;
    IBOutlet NSTextField *height;
    IBOutlet NSTextField *numberOfChannels;
    IBOutlet NSTextField *sampleRate;
    IBOutlet NSButton *secureConnection;
    IBOutlet NSTextField *securePort;
    IBOutlet NSTextField *secureUser;
    IBOutlet NSButton *transcode;
    IBOutlet NSTextField *videoBitrate;
    IBOutlet NSTextField *width;
    IBOutlet NSWindow *window;
    IBOutlet NSWindow *advancedWindow;
    IBOutlet NSButton *proxy;
    IBOutlet NSTextField *proxyServer;
    IBOutlet NSButton *proxyAuth;
    IBOutlet NSButton *proxyAuthSwitch;
    IBOutlet NSWindow *proxyWindow;
    IBOutlet NSTextField *proxyUser;
    IBOutlet NSSecureTextField *proxyPassword;
    IBOutlet NSButton *deinterlace;
    IBOutlet NSButton *highQuality;
    IBOutlet NSButton *manual;
    IBOutlet NSTextField *ip;
    
    //BOOL _advanced;
    BOOL _transcode;
    int _videoBitrate;
    float _framerate;
    int _width;
    int _height;
    int _audioBitrate;
    int _sampleRate;
    int _numberOfChannels;
    int _cacheSize;
    BOOL _secureConnection;
    int _securePort;
    NSString* _secureUser;
    BOOL _proxy;
    NSString* _proxyServer;
    BOOL _proxyAuth;
    BOOL _deinterlace;
    BOOL _highQuality;
}
//- (IBAction)advanced:(id)sender;
- (IBAction)transcode:(id)sender;
- (IBAction)secureConnection:(id)sender;
//- (IBAction)advancedOK:(id)sender;
//- (IBAction)advancedCancel:(id)sender;
- (IBAction)proxy:(id)sender;
//- (IBAction)proxyAuth:(id)sender;
- (IBAction)proxyAuthSwitch:(id)sender;
//- (IBAction)proxyOK:(id)sender;
//- (IBAction)proxyCancel:(id)sender;
- (void)initSettings;
- (void)initAdvancedSettings;
- (void)setManual;
- (BOOL)validateSettings;
- (NSString*)createTranscodeURLFragment;
- (int)cacheSize;
- (int)securePort;
- (NSString*)secureUser;
- (BOOL)proxy;
- (BOOL)proxyAuth;
- (NSString*)proxyServer;
- (BOOL)secureConnection;
- (int)securePort;

@end
