/* PreferencesController */

#import <Cocoa/Cocoa.h>
#import "UsersDataSource.h"

@interface PreferencesController : NSObject
{
    IBOutlet NSButton *forceServerPort;
    IBOutlet NSTextField *secureServerPort;
    IBOutlet NSTextField *serverPort;
    IBOutlet NSTableView *users;
    IBOutlet NSWindow *preferencesWindow;
    IBOutlet UsersDataSource *usersDataSource;
    IBOutlet NSButton* useAltNumbering;
    BOOL _forceServerPort;
    int _serverPort;
    int _secureServerPort;
    NSArray *_allowedUsers;
    BOOL _useAltNumbering;
}
- (IBAction)forceServerPort:(id)sender;
- (void)initPreferences;
- (BOOL)validatePreferences:(int)currentServerPort;
- (int)serverPort;
- (int)secureServerPort;
- (BOOL)forceServerPort;
- (BOOL)useAltNumbering;
- (NSString*)allowedUsersString;
@end
