RawCommand.
More...
#include <rawcommand.h>
|
void | executed (QList< QString > p_qListParameters) |
|
RawCommand.
RawCommand, which includes beside command name also command parameters. The parameter type is not jet specified.
Definition at line 69 of file rawcommand.h.
◆ RawCommand() [1/3]
RawCommand::RawCommand |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
Default constructor.
- Parameters
-
[in] | parent | Parent QObject (optional). |
Definition at line 53 of file rawcommand.cpp.
◆ RawCommand() [2/3]
RawCommand::RawCommand |
( |
const QString & |
p_sCommand, |
|
|
bool |
p_bIsJson = true , |
|
|
QObject * |
parent = 0 |
|
) |
| |
|
explicit |
Constructor which parses a command stored in a json object
- Parameters
-
[in] | p_sCommand | Command. |
[in] | p_bIsJson | If is received/should be send as JSON (optional, default true). |
[in] | parent | Parent QObject (optional). |
Definition at line 61 of file rawcommand.cpp.
◆ RawCommand() [3/3]
RawCommand::RawCommand |
( |
const RawCommand & |
p_rawCommand | ) |
|
|
explicit |
◆ command()
QString COMMUNICATIONLIB::RawCommand::command |
( |
| ) |
const |
|
inline |
◆ count()
quint32 COMMUNICATIONLIB::RawCommand::count |
( |
| ) |
const |
|
inline |
Returns the number of parameters.
- Returns
- number of parameters.
Definition at line 170 of file rawcommand.h.
◆ execute()
void RawCommand::execute |
( |
| ) |
|
|
virtual |
◆ executed
void COMMUNICATIONLIB::RawCommand::executed |
( |
QList< QString > |
p_qListParameters | ) |
|
|
signal |
Signal which is emitted when command patterns execute method is processed.
- Parameters
-
[in] | p_qListParameters | Parameter List. |
◆ isJson()
bool COMMUNICATIONLIB::RawCommand::isJson |
( |
| ) |
const |
|
inline |
Returns whether the received command was in Json format.
- Returns
- true if received command was in Json format, false otherwise.
Definition at line 177 of file rawcommand.h.
◆ operator=()
◆ pValues()
QList< QString > & COMMUNICATIONLIB::RawCommand::pValues |
( |
| ) |
|
|
inline |
Returns parameter values
- Returns
- parameter values.
Definition at line 184 of file rawcommand.h.
The documentation for this class was generated from the following files: