39 #include <QtConcurrent>
40 #include <QNetworkAccessManager>
41 #include <QHostAddress>
42 #include <qhttpserver.h>
43 #include <qhttprequest.h>
44 #include <qhttpresponse.h>
59 std::cout <<
"Created NetworkPluginActivator" << std::endl;
68 CX_LOG_INFO() << QString(
"Starting REST server on port %1...").arg(port);
69 server =
new QHttpServer;
71 mRequestHandler.reset(
new HttpRequestHandler(mAPI));
72 connect(server, SIGNAL(newRequest(QHttpRequest*, QHttpResponse*)),
73 mRequestHandler.get(), SLOT(handle_request(QHttpRequest*, QHttpResponse*)));
void stop(ctkPluginContext *context)
static VisServicesPtr create(ctkPluginContext *context)
~NetworkPluginActivator()
void start(ctkPluginContext *context)