Fixing file after rebasing master
[u/mrichter/AliRoot.git] / MONITOR / alistoragemanager / AliStorageAdministratorPanelSetStorageParams.h
1 #ifndef AliStorageAdministratorPanelSetStorageParams_H
2 #define AliStorageAdministratorPanelSetStorageParams_H
3
4 #include "AliStorageEventManager.h"
5
6 #include <TGLabel.h>
7 #include <TGNumberEntry.h>
8 #include <TG3DLine.h>
9
10 class AliStorageAdministratorPanelSetStorageParams : public TGMainFrame
11 {
12 public:
13         static AliStorageAdministratorPanelSetStorageParams* GetInstance();
14         void Setup(storageSockets socket,
15                    int maxStorageSize,
16                    int maxOccupation,
17                    int removeEvents,
18                    int eventsInChunk);
19 private:
20         AliStorageAdministratorPanelSetStorageParams();
21         virtual ~AliStorageAdministratorPanelSetStorageParams();
22
23         static AliStorageAdministratorPanelSetStorageParams *fInstance;
24         
25         //gui components and methods
26         TGLabel *fStatusLabel;
27         TGNumberEntry *fMaxStorageSizeEntry;
28         TGNumberEntry *fMaxOccupationEntry;
29         TGNumberEntry *fRemoveEventsEntry;
30         TGNumberEntry *fEventsInChunkEntry;
31         
32         void InitWindow();
33         void onCloseButton();
34         void onSetParamsButton();
35         void onExit();
36
37         virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t);
38         void CloseWindow();
39         
40         storageSockets fClientSocket;
41         AliStorageEventManager *fEventManager;
42
43         AliStorageAdministratorPanelSetStorageParams(const AliStorageAdministratorPanelSetStorageParams&);
44         AliStorageAdministratorPanelSetStorageParams& operator=(const AliStorageAdministratorPanelSetStorageParams&);
45         
46         ClassDef(AliStorageAdministratorPanelSetStorageParams,0);
47 };
48
49 #endif