59#include <QSharedPointer>
71static QVariant defaultVariant;
91 typedef QSharedPointer<Command>
SPtr;
101 explicit Command(
bool p_bIsJson =
true, QObject *parent = 0);
112 explicit Command(
const QString &p_sCommand,
const QJsonObject &p_qCommandContent,
bool p_bIsJson =
true, QObject *parent = 0);
123 explicit Command(
const QString &p_sCommand,
const QString &p_sDescription,
bool p_bIsJson =
true, QObject *parent = 0);
136 explicit Command(
const QString &p_sCommand,
const QString &p_sDescription,
137 const QStringList &p_qListParamNames,
const QList<QVariant> &p_qListParamValues,
bool p_bIsJson =
true, QObject *parent = 0);
149 explicit Command(
const QString &p_sCommand,
const QString &p_sDescription,
150 const QStringList &p_qListParamNames,
const QList<QVariant> &p_qListParamValues,
const QStringList &p_vecParameterDescriptions,
bool p_bIsJson =
true, QObject *parent = 0);
172 inline QString
command()
const;
180 inline quint32
count()
const;
220 inline QList<QString>
pNames()
const;
228 inline QList<QVariant>&
pValues();
236 void reply(
const QString &p_sReply);
284 QVariant& operator[] (
const QString &key);
294 QVariant& operator[] (qint32 idx);
304 const QVariant operator[] (
const QString &key)
const;
Export macros, build-info entry points and namespace anchor for the COMLIB communication library.
Minimal ICommand interface for the GoF command pattern, used by the MNE Scan plugin runtime.
Real-time client/server communication primitives for talking to mne_rt_server.
QStringList toStringList() const
QJsonObject toJsonObject() const
QList< QString > pDescriptions() const
void reply(const QString &p_sReply)
QStringList m_qListParamDescriptions
QStringList m_qListParamNames
Command(bool p_bIsJson=true, QObject *parent=0)
QList< QVariant > m_qListParamValues
QString description() const
void executed(Command p_command)
QList< QVariant > & pValues()
QSharedPointer< Command > SPtr
QString toStringReadySend() const
QList< QString > pNames() const
QSharedPointer< const Command > ConstSPtr
The ICommand interface provides the base class of every command of the command design pattern.