mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-14 11:02:19 +01:00
9c789792f4
- updated Italian homepage translation
40 lines
718 B
C++
40 lines
718 B
C++
#ifndef CABUNDLEUPDATER_H
|
|
#define CABUNDLEUPDATER_H
|
|
|
|
#include <QObject>
|
|
#include <QTimer>
|
|
#include <QFile>
|
|
#include <QDateTime>
|
|
#include <QNetworkReply>
|
|
|
|
class NetworkManager;
|
|
class CaBundleUpdater : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CaBundleUpdater(NetworkManager* manager, QObject* parent = 0);
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
|
|
private slots:
|
|
void start();
|
|
void replyFinished();
|
|
|
|
private:
|
|
enum Progress { Start, CheckLastUpdate, LoadBundle };
|
|
|
|
NetworkManager* m_manager;
|
|
Progress m_progress;
|
|
QNetworkReply* m_reply;
|
|
|
|
QString m_bundleVersionFileName;
|
|
QString m_bundleFileName;
|
|
QString m_lastUpdateFileName;
|
|
|
|
int m_latestBundleVersion;
|
|
};
|
|
|
|
#endif // CABUNDLEUPDATER_H
|