mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
Update server code integration for QtWebApp 1.7.11
- Adapt server code for QtWebapp namespace 'stefanfrings' - Implement custom modifications needed by v1 controller via template engine - Unify iphone and ipad templates
This commit is contained in:
@ -24,6 +24,14 @@
|
||||
/** Short description of this application */
|
||||
#define DESCRIPTION "Comic reader and organizer"
|
||||
|
||||
using stefanfrings::HttpListener;
|
||||
using stefanfrings::HttpRequest;
|
||||
using stefanfrings::HttpResponse;
|
||||
|
||||
using stefanfrings::HttpSessionStore;
|
||||
using stefanfrings::StaticFileController;
|
||||
using stefanfrings::TemplateCache;
|
||||
|
||||
void Startup::start()
|
||||
{
|
||||
// Initialize the core application
|
||||
@ -126,6 +134,11 @@ void Startup::start()
|
||||
|
||||
listener = new HttpListener(listenerSettings, new RequestMapper(app), app);
|
||||
|
||||
// if the requested port is busy, use random port
|
||||
if (!listener->isListening()) {
|
||||
listener->QTcpServer::listen(QHostAddress::Any, 0);
|
||||
}
|
||||
|
||||
qDebug("ServiceHelper: Service has started");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user