5 // Created by Claudio on 10/07/07.
6 // Copyright 2007 INFN - National Institute of Nuclear Physics. All rights reserved.
10 #import <Cocoa/Cocoa.h>
11 #import "SystemUIPlugin.h"
13 #import "AFSMenuCredentialContoller.h"
14 @
class AFSMenuExtraView
;
15 @interface AFSMenuExtra
: NSMenuExtra
{
17 BOOL afsState
; //0-off 1-on
18 BOOL gotToken
; //0-no 1-one o more token
22 NSNumber
*useAklogPrefValue
;
27 AFSMenuExtraView
*theView
;
29 NSMenuItem
*startStopMenu
;
30 NSMenuItem
*loginMenu
;
31 NSMenuItem
*unlogMenu
;
33 //Icon for state visualization
34 NSImage
*hasTokenImage
;
35 NSImage
*noTokenImage
;
37 //credential windows mainWindow
38 AFSMenuCredentialContoller
*credentialMenuController
;
40 //NSTimer for tokens refresh
41 NSTimer
*timerForCheckTokensList
;
46 - (BOOL
)useAklogPrefValue
;
47 - (void)readPreferenceFile
:(NSNotification
*)notification
;
48 - (void)getToken
:(id
)sender
;
49 - (void)releaseToken
:(id
)sender
;
50 - (void)updateAfsStatus
:(NSTimer
*)timer
;
51 - (void)klogUserEven
:(NSNotification
*)notification
;
52 - (NSImage
*)getImageFromBundle
:(NSString
*)fileName fileExt
:(NSString
*)ext
;
53 - (NSImage
*)imageToRender
;
55 - (void) afsVolumeMountChange
:(NSNotification
*)notification
;