2018-04-19 22:16:55 +02:00
|
|
|
#pragma once
|
|
|
|
|
2018-05-06 14:16:41 +02:00
|
|
|
#include <QString>
|
2018-04-19 22:16:55 +02:00
|
|
|
#include <pajlada/signals/signal.hpp>
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
namespace singletons {
|
|
|
|
|
|
|
|
class UpdateManager
|
|
|
|
{
|
|
|
|
UpdateManager();
|
|
|
|
|
|
|
|
public:
|
|
|
|
static UpdateManager &getInstance();
|
|
|
|
|
|
|
|
void checkForUpdates();
|
|
|
|
const QString &getCurrentVersion() const;
|
|
|
|
const QString &getOnlineVersion() const;
|
|
|
|
|
2018-04-20 00:15:57 +02:00
|
|
|
pajlada::Signals::NoArgSignal onlineVersionUpdated;
|
2018-04-19 22:16:55 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
QString currentVersion;
|
|
|
|
QString onlineVersion;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace singletons
|
|
|
|
} // namespace chatterino
|