Develop Kerberos renew system for ticket
[openafs.git] / src / platform / DARWIN / AFSPreference / AFSCommanderPref.h
index df67372..cc1534b 100644 (file)
@@ -43,6 +43,10 @@ int CoreMenuExtraRemoveMenuExtra(void *menuExtra, int whoCares);
        IBOutlet NSTextField *daemonNumber;
        IBOutlet NSTextField *afsRootMountPoint;
        IBOutlet NSTextField *nVolEntry;
+       IBOutlet NSTextField *nsTextFieldKrb5RenewTime;
+       IBOutlet NSTextField *nsTextFieldKrb5SecToExpireDateForRenew;
+       IBOutlet NSTextField *nsTextFieldKrb5RenewCheckIntervall;
+       IBOutlet NSButton *nsButtonEnableDisableKrb5RenewCheck;
        IBOutlet NSButton *dynRoot;
        IBOutlet NSButton *afsDB;
        IBOutlet NSButton *verbose;
@@ -50,17 +54,17 @@ int CoreMenuExtraRemoveMenuExtra(void *menuExtra, int whoCares);
        IBOutlet NSBox *groupsBox;
        
        //id installationPathTextField;
-       id startStopButton;
-       id cellList;
+       IBOutlet NSButton *startStopButton;
+       IBOutlet NSTableView *cellList;
        //id cellNameTextEdit;
-       id cellIpButton;
-       id addCellButton;
-       id removeCellButton;
+       IBOutlet NSControl *cellIpButton;
+       IBOutlet NSControl *addCellButton;
+       IBOutlet NSControl *removeCellButton;
        //id refreshConfigurationButton;
-       id saveConfigurationButton;
+       IBOutlet NSControl *saveConfigurationButton;
        id labelSaveResult;
-       id tokensTable;
-       id afsMenucheckBox;
+       IBOutlet NSTableView *tokensTable;
+       IBOutlet NSControl *afsMenucheckBox;
                
        //Configuration sheet
        id ipConfigurationSheet;
@@ -83,7 +87,8 @@ int CoreMenuExtraRemoveMenuExtra(void *menuExtra, int whoCares);
        IBOutlet NSButton                                       *checkEnableLink;
        IBOutlet NSButton                                       *buttonAddLink;
        IBOutlet NSButton                                       *buttonRemoveLink;
-       bool enableLink;
+       IBOutlet NSTableView                            *tableViewLink;
+       NSMutableDictionary                                     *linkConfiguration;
        
        AFSPropertyManager *afsProperty;        //AFS Property managment class
        NSMutableArray *filteredCellDB;         //Filtered CellServDB
@@ -121,6 +126,9 @@ int CoreMenuExtraRemoveMenuExtra(void *menuExtra, int whoCares);
 - (IBAction) krb5KredentialAtLoginTimeEvent:(id) sender;
 - (IBAction) searchCellTextEvent:(id) sender;
 - (IBAction) manageBackgrounderActivation:(id)sender;
+- (IBAction) tableViewLinkPerformClick:(id) sender;
+- (IBAction) enableDisableKrb5RenewCheck:(id) sender;
+- (IBAction) krb5RenewParamChange:(id) sender;
 - (void) credentialAtLoginTimeEventCreationLaunchAgentDir:(NSWindow*)alert returnCode:(int)returnCode contextInfo:(void *)contextInfo;
 - (void) clearCellServDBFiltering;
 - (void) filterCellServDB:(NSString*)textToFilter;
@@ -129,13 +137,15 @@ int CoreMenuExtraRemoveMenuExtra(void *menuExtra, int whoCares);
 - (void) modifyCell:(DBCellElement*) cellElement;
 - (void) modifyCellByIDX:(int) idx;
 - (void) showMessage:(NSString*) message;
-- (void) manageButtonState:(int) rowSelected;
+- (void) tableViewCellmanageButtonState:(int) rowSelected;
+- (void) tableViewLinkmanageButtonState:(NSIndexSet *) rowsSelectedIndex;
 - (void) setAfsStatus;
 - (void) refreshTokens:(NSTimer*)theTimer;
 - (void) repairHelperTool;
 - (void) writePreferenceFile;
 - (void) readPreferenceFile;
 - (void) refreshGui:(NSNotification *)notification;
+- (void) refreshTokensNotify:(NSNotification*)notification;
 - (void) afsVolumeMountChange:(NSNotification *)notification;
 - (void)tabView:(NSTabView *)tabView willSelectTabViewItem: (NSTabViewItem *)tabViewItem;
 @end
@@ -143,4 +153,5 @@ int CoreMenuExtraRemoveMenuExtra(void *menuExtra, int whoCares);
 @interface AFSCommanderPref (NSTableDataSource)
 - (id) getTableTokensListValue:(int) colId row:(int)row;
 - (id) getTableCelListValue:(int) colId row:(int)row;
+- (id) getTableLinkValue:(int) colId row:(int)row;
 @end;
\ No newline at end of file