1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-14 11:02:19 +01:00
falkonOfficial/src/lib/network/cabundleupdater.h
2012-02-23 19:18:08 +01:00

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