18 #include <QtConcurrent> 19 #include <QNetworkAccessManager> 20 #include <QHostAddress> 21 #include <qhttpserver.h> 22 #include <qhttprequest.h> 23 #include <qhttpresponse.h> 38 std::cout <<
"Created NetworkPluginActivator" << std::endl;
47 CX_LOG_INFO() << QString(
"Starting REST server on port %1...").arg(port);
48 server =
new QHttpServer;
51 connect(server, SIGNAL(newRequest(QHttpRequest*, QHttpResponse*)),
52 mRequestHandler.get(), SLOT(handle_request(QHttpRequest*, QHttpResponse*)));
61 mRequestHandler.reset();
void stop(ctkPluginContext *context)
static VisServicesPtr create(ctkPluginContext *context)
~NetworkPluginActivator()
void start(ctkPluginContext *context)
Namespace for all CustusX production code.