44 #include "../communication_global.h"
45 #include "../rtCommand/commandmanager.h"
46 #include "../rtCommand/command.h"
52 #include <QDataStream>
54 #include <QSharedPointer>
62 namespace COMMUNICATIONLIB
76 typedef QSharedPointer<RtCmdClient>
SPtr;
77 typedef QSharedPointer<const RtCmdClient>
ConstSPtr;
95 inline bool hasCommand(
const QString &p_sCommand)
const;
105 QString sendCLICommand(
const QString &p_sCommand);
115 void sendCommandJSON(
const Command &p_command);
123 inline QString readAvailableData();
129 qint32 requestBufsize();
135 void requestCommands();
145 qint32 requestConnectors(QMap<qint32, QString> &p_qMapConnectors);
155 bool waitForDataAvailable(qint32 msecs = 30000)
const;
165 Command& operator[] (
const QString &key);
175 const Command operator[] (
const QString &key)
const;
184 void response(QString p_sResponse);
189 QString m_sAvailableData;
199 QString p_sResponse = m_sAvailableData;
200 m_sAvailableData.clear();
210 return m_commandManager.
hasCommand(p_sCommand);
214 #endif // RTCMDCLIENT_H