mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
28 lines
540 B
C++
28 lines
540 B
C++
#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::NoArgSignal onlineVersionUpdated;
|
|
|
|
private:
|
|
QString currentVersion;
|
|
QString onlineVersion;
|
|
};
|
|
|
|
} // namespace singletons
|
|
} // namespace chatterino
|