OpenAFS
OpenAFS distributed network file system
/cygdrive/c/src/openafs/openafs.git/repo/src/platform/DARWIN/AFSPreference/global.h
00001 /*
00002  *  global.h
00003  *  AFSCommander
00004  *
00005  *  Created by Claudio on 13/07/07.
00006  *  Copyright 2007 INFN. All rights reserved.
00007  *
00008  */
00009 
00010 #define kMenuBarHeight                          22
00011 #define TOKENS_REFRESH_TIME_IN_SEC      60
00012 
00013 // Localized string
00014 #define kDevelopInfo                                    NSLocalizedStringFromTableInBundle(@"DevelopInfo",nil,[NSBundle bundleForClass:[self class]],@"DevelopInfo")
00015 #define kConfigurationSaved                             NSLocalizedStringFromTableInBundle(@"ConfigurationSaved",nil,[NSBundle bundleForClass:[self class]],@"ConfigurationSaved")
00016 #define kSavedCacheConfiguration                NSLocalizedStringFromTableInBundle(@"SavedCacheConfiguration",nil,[NSBundle bundleForClass:[self class]],@"SavedCacheConfiguration")
00017 #define kAfsOn                                                  NSLocalizedStringFromTableInBundle(@"AfsOn",nil,[NSBundle bundleForClass:[self class]],@"AfsOn")
00018 #define kAfsOff                                                 NSLocalizedStringFromTableInBundle(@"AfsOff",nil,[NSBundle bundleForClass:[self class]],@"AfsOff")
00019 #define kAfsButtonShutdown                              NSLocalizedStringFromTableInBundle(@"AfsButtonShutdown",nil,[NSBundle bundleForClass:[self class]],@"AfsButtonShutdown")
00020 #define kAfsButtonStartup                               NSLocalizedStringFromTableInBundle(@"AfsButtonStartup",nil,[NSBundle bundleForClass:[self class]],@"AfsButtonStartup")
00021 #define kNewCellName                                    NSLocalizedStringFromTableInBundle(@"NewCellName",nil,[NSBundle bundleForClass:[self class]],@"NewCellName")
00022 #define kNewCellComment                                 NSLocalizedStringFromTableInBundle(@"NewCellComment",nil,[NSBundle bundleForClass:[self class]],@"NewCellComment")
00023 #define kMenuLogin                                              NSLocalizedStringFromTableInBundle(@"MenuLogin",nil,[NSBundle bundleForClass:[self class]],@"MenuLogin")
00024 #define kMenuUnlog                                              NSLocalizedStringFromTableInBundle(@"MenuUnlog",nil,[NSBundle bundleForClass:[self class]],@"MenuUnlog")
00025 #define kBadAfsRootMountPoint                   NSLocalizedStringFromTableInBundle(@"BadAfsRootMountPoint",nil,[NSBundle bundleForClass:[self class]],@"BadAfsRootMountPoint")
00026 #define kDoYouWantCreateTheDirectory    NSLocalizedStringFromTableInBundle(@"DoYouWantCreateTheDirectory",nil,[NSBundle bundleForClass:[self class]],@"DoYouWantCreateTheDirectory")
00027 #define kDirectoryCreated                               NSLocalizedStringFromTableInBundle(@"DirectoryCreated",nil,[NSBundle bundleForClass:[self class]],@"DirectoryCreated")
00028 #define kErrorCreatingDirectory                 NSLocalizedStringFromTableInBundle(@"ErrorCreatingDirectory",nil,[NSBundle bundleForClass:[self class]],@"ErrorCreatingDirectory")
00029 #define kErrorGettongSystemVersion              NSLocalizedString(@"ErrorGettongSystemVersion",@"ErrorGettongSystemVersion");
00030 
00031 
00032 // PREFERENCE KEY
00033 #define PREFERENCE_AFS_SYS_PAT                                                                          @"PREFERENCE_AFS_SYS_PAT"
00034 #define PREFERENCE_AFS_SYS_PAT_STATIC                                                           @"/var/db/openafs"
00035 #define PREFERENCE_USE_AKLOG                                                                            @"PREFERENCE_USE_AKLOG"
00036 #define PREFERENCE_START_AFS_AT_STARTUP                                                         @"PREFERENCE_START_AFS_AT_STARTUP"
00037 #define PREFERENCE_SHOW_STATUS_MENU                                                                     @"PREFERENCE_SHOW_STATUS_MENU"
00038 #define PREFERENCE_AKLOG_TOKEN_AT_LOGIN                                                         @"PREFERENCE_AKLOG_TOKEN_AT_LOGIN"
00039 #define PREFERENCE_USE_LINK                                                                                     @"PREFERENCE_USE_LINK"
00040 #define PREFERENCE_LINK_CONFIGURATION                                                           @"PREFERENCE_LINK_CONFIGURATION"
00041 #define PREFERENCE_KRB5_RENEW_TIME                                                                      @"PREFERENCE_KRB5_RENEW_TIME"
00042 #define PREFERENCE_KRB5_RENEW_TIME_DEFAULT_VALUE                                        3600
00043 #define PREFERENCE_KRB5_SEC_TO_EXPIRE_TIME_FOR_RENEW                            @"PREFERENCE_KRB5_SEC_TO_EXPIRE_TIME_FOR_RENEW"
00044 #define PREFERENCE_KRB5_SEC_TO_EXPIRE_TIME_FOR_RENEW_DEFAULT_VALUE      3600
00045 #define PREFERENCE_KRB5_RENEW_CHECK_TIME_INTERVALL                                      @"PREFERENCE_KRB5_RENEW_CHECK_TIME_INTERVALL"
00046 #define PREFERENCE_KRB5_RENEW_CHECK_TIME_INTERVALL_DEFAULT_VALUE        3600
00047 #define PREFERENCE_KRB5_CHECK_ENABLE                                                            @"PREFERENCE_KRB5_CHECK_ENABLE"
00048 
00049 // AFSMENUEXTRA INFO
00050 #define kAFSMenuExtra                   [NSURL fileURLWithPath:[[self bundle] pathForResource:@"AFSBackgrounder" ofType:@"app" inDirectory:@""]]
00051 #define kMenuCrakerMenuExtra    [NSURL fileURLWithPath:[[self bundle] pathForResource:@"MenuCracker" ofType:@"menu" inDirectory:@""]]
00052 
00053 //notification id
00054 
00055 #define kMenuCrakerMenuExtraID  @"net.sourceforge.menucracker2"
00056 
00057 
00058 //Application id
00059 #define kAFSMenuExtraID                 @"it.infn.lnf.network.AFSBackgrounder"
00060 #define kAfsCommanderID                 @"it.infn.lnf.network.openafs"
00061 // Changed preference notification key
00062 #define kPrefChangeNotification @"preference_changed"
00063 //KLog menuextra window close
00064 #define kLogWindowClosed @"klog_window_closed"
00065 //Fired when some work as appened in AFSMenuExtra
00066 #define kMenuExtraEventOccured @"menu_extra_event_occured"
00067 // Changed preference notification key
00068 #define kMExtraClosedNotification @"preference_changed"
00069 // Changed preference notification key
00070 #define kMExtraTokenOperation @"kMExtraTokenOperation"
00071 // Update MenuExtra AfsState notification key
00072 #define kMExtraAFSStateChange @"menu_extra_afs_state_change"
00073 // Update MenuExtra for show menu notification key
00074 #define kMExtraAFSMenuChangeState @"kMExtraAFSMenuChangeState"
 All Data Structures Files Functions Variables