QJsonChannelCore
|
Service wrapper over QOblect is responsible for QObjects methods ivocation according to JSON-RPC requests messages. More...
#include <QJsonChannelService.h>
Public Member Functions | |
QJsonChannelService (const QByteArray &name, const QByteArray &version, const QByteArray &description, QSharedPointer< QObject > obj, bool serviceObjIsThreadSafe) | |
Construct a new QJsonChannelService object. More... | |
~QJsonChannelService () | |
QSharedPointer< QObject > | serviceObj () |
Returns service object. More... | |
const QByteArray & | serviceName () const |
Returns service name. More... | |
const QJsonObject & | serviceInfo () const |
Returns JSON Document contains JSON Schema Service Descriptor (https://jsonrpc.org/historical/json-schema-service-descriptor.html) More... | |
QJsonChannelMessage | dispatch (const QJsonChannelMessage &request) const |
Process a JSON-RPC message. In general it means the invocation of a requested function. More... | |
Service wrapper over QOblect is responsible for QObjects methods ivocation according to JSON-RPC requests messages.
Definition at line 15 of file QJsonChannelService.h.
QJsonChannelService::QJsonChannelService | ( | const QByteArray & | name, |
const QByteArray & | version, | ||
const QByteArray & | description, | ||
QSharedPointer< QObject > | obj, | ||
bool | serviceObjIsThreadSafe | ||
) |
Construct a new QJsonChannelService object.
name | Service name |
version | Service version |
description | Service description |
serviceObjIsThreadSafe | Is the service object thread safe |
obj | Service object |
QJsonChannelService::~QJsonChannelService | ( | ) |
QSharedPointer<QObject> QJsonChannelService::serviceObj | ( | ) |
Returns service object.
const QByteArray& QJsonChannelService::serviceName | ( | ) | const |
Returns service name.
const QJsonObject& QJsonChannelService::serviceInfo | ( | ) | const |
Returns JSON Document contains JSON Schema Service Descriptor (https://jsonrpc.org/historical/json-schema-service-descriptor.html)
QJsonChannelMessage QJsonChannelService::dispatch | ( | const QJsonChannelMessage & | request | ) | const |
Process a JSON-RPC message. In general it means the invocation of a requested function.
message | JSON-RPC message |