1 #ifndef AliStorageAdministratorPanel_H
2 #define AliStorageAdministratorPanel_H
4 #include "AliStorageEventManager.h"
10 class AliStorageAdministratorPanel : public TGMainFrame
14 AliStorageAdministratorPanel();
15 virtual ~AliStorageAdministratorPanel();
19 //gui components and methods
20 TGLabel *fConnectionLabel;
22 TGLabel *fSavingLabel;
23 TGLabel *fCurrentSizeLabel;
24 TGLabel *fMaxSizeLabel;
25 TGLabel *fMaxOccupationLabel;
26 TGLabel *fRemoveEventsLabel;
27 TGLabel *fEventsInChunkLabel;
30 void SetupThreadsFrame();
32 void SetupFixedMenuBar();
33 void SetupDockableMenuBar();
36 void SetLabel(TGLabel *label, int option);
37 void SetLabelValue(TGLabel *label, long value, int option);
39 //handle different actions
45 void onServerListEvents();
46 void onServerMarkEvent();
47 void onServerMarkAllEvents();
48 void onServerGetEvent();
49 void onClientSetParams();
50 void onServerGetNextEvent();
51 void onServerGetLastEvent();
59 //handle different messages
60 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t);
64 TThread *fCommunicationThread;
65 storageSockets fCommunicationSocket;
66 static void* Dispatch(void *arg){static_cast<AliStorageAdministratorPanel*>(arg)->CheckStateHandle();}
67 void CheckStateHandle();
68 void CheckClientState(int option);
70 storageSockets fServerSocket;//socket for two-way communication with AliStorageServerThread
71 AliStorageEventManager *fEventManager;
73 AliStorageAdministratorPanel(const AliStorageAdministratorPanel&);
74 AliStorageAdministratorPanel& operator=(const AliStorageAdministratorPanel&);
76 ClassDef(AliStorageAdministratorPanel,0);