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);
151 explicit Command(
const QString& p_sCommand,
const QString& p_sDescription,
152 const QStringList& p_qListParamNames,
const QList<QVariant>& p_qListParamValues,
const QStringList& p_vecParameterDescriptions,
bool p_bIsJson =
true, QObject* parent = 0);
174 inline QString
command()
const;
182 inline quint32
count()
const;
220 inline QList<QString>
pNames()
const;
228 inline QList<QVariant>&
pValues();
236 void reply(
const QString& p_sReply);
306 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 & operator=(const Command &rhs)
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
QVariant & operator[](const QString &key)
QList< QString > pNames() const
QSharedPointer< const Command > ConstSPtr
The ICommand interface provides the base class of every command of the command design pattern.