QGUISocketInterface.hh
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef _QGUI_SOCKET_INTERFACE_HH_
00016 #define _QGUI_SOCKET_INTERFACE_HH_
00017
00018
00019 #include "Rtypes.h"
00020
00021
00022 #include "QApolloSocketClient.hh"
00023
00024 class QGUISocketInterface
00025 {
00026
00027 public:
00028
00029
00030 QGUISocketInterface();
00031
00032
00033 virtual ~QGUISocketInterface();
00034
00036 bool StartRun(unsigned int settingsBasket,
00037 unsigned int runNumb,
00038 unsigned int shifterSet,
00039 std::string& serverAnswer);
00040
00042 bool StopRun(unsigned int shifterSet,
00043 std::string& serverAnswer);
00044
00050 int GetStatus(std::string& response);
00051
00058 int GetCurrentRun(std::string& response);
00059
00064 inline const std::string& GetServerPort() const {return fClient.GetServerPort();}
00065
00070 inline const std::string& GetServerAddress() const {return fClient.GetServerAddress();}
00071
00072
00073 private:
00074
00075
00076 QApolloSocketClient fClient;
00077
00078
00079 ClassDef(QGUISocketInterface,0);
00080 };
00081
00082 #endif // _QGUI_SOCKET_INTERFACE_HH_