mirror-chatterino2/src/singletons/updatemanager.hpp

29 lines
536 B
C++
Raw Normal View History

2018-04-19 22:16:55 +02:00
#pragma once
#include <QString>;
#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;
pajlada::Signals::Signal onlineVersionUpdated;
private:
QString currentVersion;
QString onlineVersion;
};
} // namespace singletons
} // namespace chatterino