mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 09:08:20 -04:00
reestructuraci?n de parte del c?digo cambio a Qt 4.8.3 uso de QSettings en YACReader, falta leer la configuraci?n desde qsettings
33 lines
754 B
C++
33 lines
754 B
C++
#ifndef __CHECKUPDATE_H
|
|
#define __CHECKUPDATE_H
|
|
|
|
#include <QWidget>
|
|
#include <QHttp>
|
|
#include <QHttpResponseHeader>
|
|
#include <QByteArray>
|
|
|
|
#include "yacreader_global.h"
|
|
|
|
class HttpVersionChecker : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
HttpVersionChecker();
|
|
bool thereIsNewVersion();
|
|
public slots:
|
|
void httpRequestFinished(int requestId, bool error);
|
|
void readResponseHeader(const QHttpResponseHeader &);
|
|
void read(const QHttpResponseHeader &);
|
|
void get();
|
|
private:
|
|
QHttp *http;
|
|
int httpGetId;
|
|
QByteArray content;
|
|
bool found;
|
|
bool checkNewVersion(QString sourceContent);
|
|
signals:
|
|
void newVersionDetected();
|
|
};
|
|
|
|
#endif
|