23 #ifndef TUFAO_CLASSHANDLERMANAGER_H
24 #define TUFAO_CLASSHANDLERMANAGER_H
26 #include <QtCore/QObject>
27 #include <QtCore/QList>
28 #include <QtCore/QHash>
29 #include <QtCore/QMap>
30 #include <QtCore/QMultiHash>
31 #include <QtCore/QStringList>
33 #include "abstracthttpserverrequesthandler.h"
74 Q_PROPERTY(QString urlNamespace READ urlNamespace)
87 const QString &urlNamespace = QString{},
88 QObject * parent = 0);
95 QString urlNamespace()
const;
112 struct PluginDescriptor
114 PluginDescriptor(){;}
120 QHash<uint, int> methods;
122 QList<QString> methodNames;
135 const QString className,
136 const QString methodName,
137 const QHash<QString, QString> arguments);
139 void dispatchVoidMethod(QMetaMethod method,
ClassHandler * handler,
const QGenericArgument * args)
const;
143 const QGenericArgument * args)
const;
145 int selectMethod(
const QString className,
const QString methodName,
const QHash<QString, QString> arguments)
const;
148 static QStringList pluginLocations;
156 #endif // TUFAO_CLASSHANDLERMANAGER_H
This class provides an interface for HttpServerRequest handlers.
Definition: abstracthttpserverrequesthandler.h:50
The Tufao::HttpServerResponse is used to respond to a Tufao::HttpServerRequest.
Definition: httpserverresponse.h:142
The Tufao::HttpServer represents a HTTP request received by Tufao::HttpServer.
Definition: httpserverrequest.h:54
virtual ~ClassHandlerManager()
Destroys the object.
This class serves as the HttpServerRequestHandler for all ClassHandler plugins.
Definition: classhandlermanager.h:71
static void addPluginLocation(const QString location)
Adds a non-standard path to the search paths.
The ClassHandler class Define the interface to implement when creating a plugin.
Definition: classhandler.h:168
This is the namespace where all Tufão facilities are grouped.
Definition: abstracthttpserverrequesthandler.h:30
ClassHandlerManager(const QString &pluginID=QString{}, const QString &urlNamespace=QString{}, QObject *parent=0)
Constructs a ClassHandlerManager object.