Notify using a signal when a comic is updated using the http api

This commit is contained in:
Luis Ángel San Martín
2022-10-15 11:41:06 +02:00
parent bf36672ade
commit c576140e6a
4 changed files with 22 additions and 8 deletions

View File

@ -1,17 +1,16 @@
#ifndef YACREADER_HTTP_SERVER_H
#define YACREADER_HTTP_SERVER_H
#include <QObject>
#include <QString>
namespace stefanfrings {
class HttpListener;
}
class YACReaderHttpServer
class YACReaderHttpServer : public QObject
{
private:
stefanfrings::HttpListener *listener;
Q_OBJECT
public:
YACReaderHttpServer();
@ -20,7 +19,11 @@ public:
QString getPort();
protected:
signals:
void comicUpdated(qulonglong libraryId, qulonglong comicId);
private:
stefanfrings::HttpListener *listener;
};
#endif // YACREADER_HTTP_SERVER_H