QJsonChannelCore
QJsonChannelServiceRepository.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QScopedPointer>
4 
5 #include "QJsonChannelGlobal.h"
6 
9 class QJsonChannelServiceRepositoryPrivate;
10 
16 public:
19 
27  bool addService (const QSharedPointer<QJsonChannelService>& service);
28 
39  bool addService (const QByteArray& name, const QByteArray& version, const QByteArray& description, QSharedPointer<QObject> obj);
40 
51  bool addThreadSafeService (const QByteArray& name, const QByteArray& version, const QByteArray& description, QSharedPointer<QObject> obj);
52 
59  QSharedPointer<QJsonChannelService> getService (const QByteArray& serviceName);
60 
67  QSharedPointer<QObject> getServiceObject (const QByteArray& serviceName);
68 
76  bool removeService (const QByteArray& serviceName);
77 
84  QJsonChannelMessage processMessage (const QJsonChannelMessage& message) const;
85 
86 private:
87  QScopedPointer<QJsonChannelServiceRepositoryPrivate> d;
88 };
Service wrapper over QOblect is responsible for QObjects methods ivocation according to JSON-RPC requ...
The main entity of QJsonChannel represents service repository and provides API for a JSON-RPC method ...
Representation of JSON-RPC message.
#define QJSONCHANNELCORE_EXPORT