mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
33 lines
532 B
C++
33 lines
532 B
C++
#ifndef YACREADER_HTTP_SERVER_H
|
|
#define YACREADER_HTTP_SERVER_H
|
|
|
|
#include <QObject>
|
|
#include <QString>
|
|
|
|
namespace stefanfrings {
|
|
class HttpListener;
|
|
}
|
|
|
|
class YACReaderHttpServer : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
YACReaderHttpServer();
|
|
|
|
void start(quint16 port = 0);
|
|
void stop();
|
|
|
|
bool isRunning();
|
|
|
|
QString getPort();
|
|
|
|
signals:
|
|
void clientSync();
|
|
void comicUpdated(qulonglong libraryId, qulonglong comicId);
|
|
|
|
private:
|
|
stefanfrings::HttpListener *listener;
|
|
};
|
|
|
|
#endif // YACREADER_HTTP_SERVER_H
|