7 #include <QReadWriteLock> 9 #include <QCoreApplication> 15 #define TORC_SERVICE_VERSION QStringLiteral("version") 26 const QMetaObject &MetaObject,
const QString &Blacklist = QStringLiteral(
""));
30 QVariantMap
ProcessRequest (
const QString &Method,
const QVariant &Parameters, QObject *Connection,
bool Authenticated)
override;
47 QMap<QString,MethodParameters*> m_methods;
48 QMap<int,int> m_properties;
49 QList<QObject*> m_subscribers;
50 QMutex m_subscriberLock;
57 #endif // TORCSERVICE_H A class to encapsulate an incoming HTTP request.
Base HTTP response handler class.
virtual ~TorcHTTPService()
QString Signature(void) const
void ProcessHTTPRequest(const QString &PeerAddress, int PeerPort, const QString &LocalAddress, int LocalPort, TorcHTTPRequest &Request) override
virtual QString GetUIName(void)
virtual QString GetPresentationURL(void)
void HandleSubscriberDeleted(QObject *Subscriber)
QReadWriteLock m_httpServiceLock
QVariantMap ProcessRequest(const QString &Method, const QVariant &Parameters, QObject *Connection, bool Authenticated) override
QVariant GetProperty(int Index)
Get the value of a given property.
QString GetMethod(int Index)
QVariantMap GetServiceDetails(void)
Return a QVariantMap describing the services methods and properties.
TorcHTTPService(QObject *Parent, const QString &Signature, const QString &Name, const QMetaObject &MetaObject, const QString &Blacklist=QStringLiteral(""))