3 #include <QSharedDataPointer> 12 class QJsonChannelMessagePrivate;
55 static QJsonChannelMessage createRequest (
const QString& method,
const QJsonArray& params = QJsonArray ());
71 static QJsonChannelMessage createRequest (
const QString& method,
const QJsonObject& namedParameters);
80 static QJsonChannelMessage createNotification (
const QString& method,
const QJsonArray& params = QJsonArray ());
88 static QJsonChannelMessage createNotification (
const QString& method,
const QJsonValue& param);
96 static QJsonChannelMessage createNotification (
const QString& method,
const QJsonObject& namedParameters);
129 bool isValid ()
const;
144 QString serviceName ()
const;
150 QString method ()
const;
156 QJsonValue params ()
const;
164 QJsonValue result ()
const;
172 int errorCode ()
const;
178 QString errorMessage ()
const;
184 QJsonValue errorData ()
const;
191 QJsonObject toObject ()
const;
206 QByteArray toJson ()
const;
217 return !(operator== (message));
221 friend class QJsonChannelMessagePrivate;
222 QSharedDataPointer<QJsonChannelMessagePrivate> d;
QJSONCHANNELCORE_EXPORT QDebug operator<<(QDebug, const QJsonChannelMessage &)
Representation of JSON-RPC message.
void swap(QJsonChannelMessage &other)
#define QJSONCHANNELCORE_EXPORT