mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
Notify using a signal when a comic is updated using the http api
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user