mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
added .pro file for the headless version of YACReader and a specific main file for the project
This commit is contained in:
27
common/check_new_version.h
Normal file
27
common/check_new_version.h
Normal file
@ -0,0 +1,27 @@
|
||||
#ifndef __CHECKUPDATE_H
|
||||
#define __CHECKUPDATE_H
|
||||
|
||||
#include "http_worker.h"
|
||||
#include "yacreader_global.h"
|
||||
|
||||
#include <QWidget>
|
||||
#include <QByteArray>
|
||||
#include <QThread>
|
||||
|
||||
class HttpVersionChecker : public HttpWorker
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
HttpVersionChecker();
|
||||
public slots:
|
||||
|
||||
private:
|
||||
bool found;
|
||||
private slots:
|
||||
bool checkNewVersion(QString sourceContent);
|
||||
void checkNewVersion(const QByteArray & data);
|
||||
signals:
|
||||
void newVersionDetected();
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user