AuthenticationController.h [plain text]
#import "Preferences.h"
#import "Principal.h"
#import "BadgedImageView.h"
#import "PopupButton.h"
#include <Kerberos/Kerberos.h>
typedef struct AuthenticationControllerState
{
BOOL doesMinimize;
BOOL isMinimized;
NSString *callerNameString;
NSImage *callerIconImage;
Principal *callerProvidedPrincipal;
NSString *serviceNameString;
time_t startTime;
time_t lifetime;
BOOL forwardable;
BOOL proxiable;
BOOL addressless;
BOOL renewable;
time_t renewableLifetime;
} AuthenticationControllerState;
@interface AuthenticationController : NSWindowController
{
IBOutlet NSBox *bannerBox;
IBOutlet BadgedImageView *kerberosIconImageView;
IBOutlet NSTextField *headerTextField;
IBOutlet NSSecureTextField *passwordSecureTextField;
IBOutlet NSComboBox *realmComboBox;
IBOutlet NSTextField *callerProvidedRealmTextField;
IBOutlet NSTextField *nameTextField;
IBOutlet NSTextField *callerProvidedNameTextField;
IBOutlet NSButton *okButton;
IBOutlet NSButton *cancelButton;
IBOutlet PopupButton *gearPopupButton;
IBOutlet NSMenu *gearMenu;
IBOutlet NSMenuItem *showOptionsMenuItem;
IBOutlet NSMenuItem *changePasswordMenuItem;
IBOutlet NSWindow *optionsSheet;
IBOutlet NSButton *addresslessCheckbox;
IBOutlet NSButton *forwardableCheckbox;
IBOutlet NSButton *renewableCheckbox;
IBOutlet NSTextField *renewableTextField;
IBOutlet NSSlider *renewableSlider;
IBOutlet NSTextField *lifetimeTextField;
IBOutlet NSSlider *lifetimeSlider;
IBOutlet NSButton *optionsOKButton;
IBOutlet NSButton *optionsCancelButton;
float minimizedFrameHeight;
float maximizedFrameHeight;
AuthenticationControllerState state;
Preferences *preferences;
Principal *acquiredPrincipal;
NSMutableString *acquiredCacheName;
KLStatus result;
}
- (void) windowDidLoad;
- (void) controlTextDidChange: (NSNotification *) notification;
- (void) comboBoxSelectionDidChange: (NSNotification *) notification;
- (void) comboBoxWillDismiss: (NSNotification *) notification;
- (void) windowDidBecomeKey: (NSNotification *) notification;
- (void) windowDidResignKey: (NSNotification *) notification;
- (IBAction) changePassword: (id) sender;
- (IBAction) showOptions: (id) sender;
- (IBAction) renewableCheckboxWasHit: (id) sender;
- (IBAction) optionsOK: (id) sender;
- (IBAction) optionsCancel: (id) sender;
- (IBAction) ok: (id) sender;
- (IBAction) cancel: (id) sender;
- (void) setDoesMinimize: (BOOL) doesMinimize;
- (void) setCallerNameString: (NSString *) callerNameString;
- (void) setCallerIcon: (NSImage *) callerIcon;
- (void) setCallerProvidedPrincipal: (Principal *) callerProvidedPrincipal;
- (void) setServiceName: (NSString *) serviceName;
- (void) setStartTime: (time_t) startTime;
- (void) setLifetime: (time_t) lifetime;
- (void) setForwardable: (BOOL) forwardable;
- (void) setProxiable: (BOOL) proxiable;
- (void) setAddressless: (BOOL) addressless;
- (void) setRenewable: (BOOL) renewable;
- (void) setRenewableLifetime: (time_t) renewableLifetime;
- (Principal *) principal;
- (void) updateOKButtonState;
- (BOOL) validateMenuItem: (id <NSMenuItem>) menuItem;
- (void) setWindowContentHeight: (float) newHeight;
- (void) minimizeWindow;
- (void) maximizeWindow;
- (void) loginOptionsToPreferences;
- (int) getTickets;
- (Principal *) acquiredPrincipal;
- (NSString *) acquiredCacheName;
- (int) runWindow;
- (void) stopWithCode: (int) returnCode;
@end