Develop Kerberos renew system for ticket
[openafs.git] / src / platform / DARWIN / AFSPreference / AFSCommanderPref.h
index a6e03f2..cc1534b 100644 (file)
@@ -25,6 +25,7 @@ int CoreMenuExtraRemoveMenuExtra(void *menuExtra, int whoCares);
        //for check system version
        int prefStartUp;
        // Main View
+       BOOL startAFSAtLogin;
        IBOutlet NSView *afsCommanderView;
        IBOutlet NSSearchField *textSearchField;
        IBOutlet NSTextField *afsDefaultCellLabel;
@@ -34,36 +35,37 @@ int CoreMenuExtraRemoveMenuExtra(void *menuExtra, int whoCares);
        IBOutlet NSButton *installKRB5AuthAtLoginButton;
        IBOutlet NSButton *useAklogCheck;
        IBOutlet NSTextField *afsVersionLabel;
-       BOOL startAFSAtLogin;
        IBOutlet NSButton *checkButtonAfsAtBootTime;
        IBOutlet NSTextField *textFieldDevInfoLabel;
-       
-       //NSString *appID;
-       //id installationPathTextField;
-       id startStopButton;
-       id cellList;
-       //id cellNameTextEdit;
-       id cellIpButton;
-       id addCellButton;
-       id removeCellButton;
-       //id refreshConfigurationButton;
-       id saveConfigurationButton;
-       id labelSaveResult;
-       id tokensTable;
-       id afsMenucheckBox;
-               
-       //cache manager IBOutlet
        IBOutlet NSTextField *statCacheEntry;
        IBOutlet NSTextField *dCacheDim;
        IBOutlet NSTextField *cacheDimension;
        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;
+       IBOutlet NSButton *backgrounderActivationCheck;
        IBOutlet NSBox *groupsBox;
        
+       //id installationPathTextField;
+       IBOutlet NSButton *startStopButton;
+       IBOutlet NSTableView *cellList;
+       //id cellNameTextEdit;
+       IBOutlet NSControl *cellIpButton;
+       IBOutlet NSControl *addCellButton;
+       IBOutlet NSControl *removeCellButton;
+       //id refreshConfigurationButton;
+       IBOutlet NSControl *saveConfigurationButton;
+       id labelSaveResult;
+       IBOutlet NSTableView *tokensTable;
+       IBOutlet NSControl *afsMenucheckBox;
+               
        //Configuration sheet
        id ipConfigurationSheet;
        id ipConfControllerCommander;
@@ -85,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
@@ -120,9 +123,13 @@ int CoreMenuExtraRemoveMenuExtra(void *menuExtra, int whoCares);
 - (IBAction) aklogSwitchEvent:(id) sender;
 - (IBAction) credentialAtLoginTimeEvent:(id) sender;
 - (IBAction) afsStartupSwitchEvent:(id) sender;
-- (void) credentialAtLoginTimeEventCreationLaunchAgentDir:(NSWindow*)alert returnCode:(int)returnCode contextInfo:(void *)contextInfo;
 - (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;
 - (DBCellElement*) getCurrentCellInDB;
@@ -130,16 +137,21 @@ 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;
-- (BOOL) isAFSMenuExtraLoaded;
-- (void) addAFSMenuExtra;
-- (void) removeAFSMenuExtra;
 - (void) repairHelperTool;
 - (void) writePreferenceFile;
 - (void) readPreferenceFile;
-- (void) mextraChangeActivation:(NSNotification *)notification;
 - (void) refreshGui:(NSNotification *)notification;
+- (void) refreshTokensNotify:(NSNotification*)notification;
 - (void) afsVolumeMountChange:(NSNotification *)notification;
-@end
\ No newline at end of file
+- (void)tabView:(NSTabView *)tabView willSelectTabViewItem: (NSTabViewItem *)tabViewItem;
+@end
+
+@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