mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
0dd40b7a51
The access manager is only one, while we can make requests from different parts of the application, so relying on the manager finished() signal to see if something was done or not was a not very good move. The QNetworkReply is created when a get() is invocked on the AccessManager and that's unique. connect it's finished() signal instead. bonus: code cleanup. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
20 lines
318 B
C++
20 lines
318 B
C++
#ifndef UPDATEMANAGER_H
|
|
#define UPDATEMANAGER_H
|
|
|
|
#include <QObject>
|
|
|
|
class QNetworkAccessManager;
|
|
class QNetworkReply;
|
|
|
|
class UpdateManager : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
explicit UpdateManager(QObject *parent = 0);
|
|
void checkForUpdates();
|
|
|
|
public
|
|
slots:
|
|
void requestReceived();
|
|
};
|
|
|
|
#endif // UPDATEMANAGER_H
|