mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Notify using a signal when a comic is updated using the http api
This commit is contained in:
@ -137,7 +137,10 @@ void YACReaderHttpServer::start(quint16 port)
|
||||
testServer.close();
|
||||
}
|
||||
|
||||
listener = new HttpListener(listenerSettings, new RequestMapper(app), app);
|
||||
auto requestMapper = new RequestMapper(app);
|
||||
listener = new HttpListener(listenerSettings, requestMapper, app);
|
||||
|
||||
connect(requestMapper, &RequestMapper::comicUpdated, this, &YACReaderHttpServer::comicUpdated);
|
||||
|
||||
if (listener->isListening()) {
|
||||
qDebug("ServiceHelper: Service has started");
|
||||
@ -158,7 +161,7 @@ void YACReaderHttpServer::stop()
|
||||
}
|
||||
|
||||
YACReaderHttpServer::YACReaderHttpServer()
|
||||
: listener(nullptr)
|
||||
: QObject(nullptr), listener(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user