]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STORAGE/AliStorageAdministratorPanelSetStorageParams.h
remove unnecessary if already effective before, move it out of the method call
[u/mrichter/AliRoot.git] / STORAGE / 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
10namespace zmq
11{
12 class socket_t;
13}
14
15class AliStorageAdministratorPanelSetStorageParams : public TGMainFrame
16{
17public:
18 static AliStorageAdministratorPanelSetStorageParams* GetInstance();
19 void Setup(zmq::socket_t *socket,
20 int maxStorageSize,
21 int maxOccupation,
22 int removeEvents,
23 int eventsInChunk);
24private:
25 AliStorageAdministratorPanelSetStorageParams();
26 virtual ~AliStorageAdministratorPanelSetStorageParams();
27
28 static AliStorageAdministratorPanelSetStorageParams *fInstance;
29
30 //gui components and methods
31 TGLabel *fStatusLabel;
32 TGNumberEntry *fMaxStorageSizeEntry;
33 TGNumberEntry *fMaxOccupationEntry;
34 TGNumberEntry *fRemoveEventsEntry;
35 TGNumberEntry *fEventsInChunkEntry;
36
37 void InitWindow();
38 void onCloseButton();
39 void onSetParamsButton();
40 void onExit();
41
42 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t);
43 void CloseWindow();
44
45 zmq::socket_t *fClientSocket;
46 AliStorageEventManager *fEventManager;
47
48 AliStorageAdministratorPanelSetStorageParams(const AliStorageAdministratorPanelSetStorageParams&);
49 AliStorageAdministratorPanelSetStorageParams& operator=(const AliStorageAdministratorPanelSetStorageParams&);
50
51 ClassDef(AliStorageAdministratorPanelSetStorageParams,0);
52};
53
54#endif