Merging STORAGE-dev to master
[u/mrichter/AliRoot.git] / MONITOR / alistoragemanager / AliStorageAdministratorPanelSetStorageParams.h
CommitLineData
5eb34a26 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
5eb34a26 10class AliStorageAdministratorPanelSetStorageParams : public TGMainFrame
11{
12public:
13 static AliStorageAdministratorPanelSetStorageParams* GetInstance();
164d3d29 14 void Setup(storageSockets socket,
5eb34a26 15 int maxStorageSize,
16 int maxOccupation,
17 int removeEvents,
18 int eventsInChunk);
19private:
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
164d3d29 40 storageSockets fClientSocket;
5eb34a26 41 AliStorageEventManager *fEventManager;
42
43 AliStorageAdministratorPanelSetStorageParams(const AliStorageAdministratorPanelSetStorageParams&);
44 AliStorageAdministratorPanelSetStorageParams& operator=(const AliStorageAdministratorPanelSetStorageParams&);
45
46 ClassDef(AliStorageAdministratorPanelSetStorageParams,0);
47};
48
49#endif