18 #ifndef SDRBASE_COMMANDS_COMMAND_H_ 19 #define SDRBASE_COMMANDS_COMMAND_H_ 38 void resetToDefaults();
40 QByteArray serialize()
const;
41 bool deserialize(
const QByteArray& data);
43 void setCommand(
const QString& command) { m_command = command; }
45 void setArgString(
const QString& argString) { m_argString = argString; }
47 void setGroup(
const QString& group) { m_group = group; }
48 const QString&
getGroup()
const {
return m_group; }
49 void setDescription(
const QString& description) { m_description = description; }
51 void setKey(Qt::Key key) { m_key = key; }
52 Qt::Key
getKey()
const {
return m_key; }
53 void setKeyModifiers(Qt::KeyboardModifiers keyModifiers) { m_keyModifiers = keyModifiers; }
59 QString getKeyLabel()
const;
61 void run(
const QString& apiAddress,
int apiPort,
int deviceSetIndex);
63 QProcess::ProcessState getLastProcessState()
const;
64 bool getLastProcessError(QProcess::ProcessError& error)
const;
65 bool getLastProcessExit(
int& exitCode, QProcess::ExitStatus& exitStatus)
const;
66 const QString& getLastProcessLog()
const;
117 void processStateChanged(QProcess::ProcessState newState);
118 void processError(QProcess::ProcessError error);
119 void processFinished(
int exitCode, QProcess::ExitStatus exitStatus);
void setRelease(bool release)
Qt::KeyboardModifiers getKeyModifiers() const
QProcess::ExitStatus m_currentProcessExitStatus
const QString & getDescription() const
QProcess * m_currentProcess
qint64 m_currentProcessPid
void setArgString(const QString &argString)
uint64_t getLastProcessFinishTimestampms() const
QString m_currentProcessCommandLine
const QString & getLastProcessCommandLine() const
static bool commandCompare(const Command *c1, Command *c2)
uint64_t m_currentProcessFinishTimeStampms
qint64 getLastProcessPid() const
void setDescription(const QString &description)
uint64_t getLastProcessStartTimestampms() const
QProcess::ProcessState m_currentProcessState
Qt::KeyboardModifiers m_keyModifiers
Q_DECLARE_METATYPE(const Command *)
QProcess::ProcessError m_currentProcessError
uint64_t m_currentProcessStartTimeStampms
const QString & getArgString() const
void setCommand(const QString &command)
const QString & getGroup() const
void setAssociateKey(bool associate)
bool getAssociateKey() const
void setGroup(const QString &group)
const QString & getCommand() const
void setKeyModifiers(Qt::KeyboardModifiers keyModifiers)
int m_currentProcessExitCode
unsigned __int64 uint64_t