mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
29 lines
536 B
C++
29 lines
536 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::Signal onlineVersionUpdated;
|
||
|
|
||
|
private:
|
||
|
QString currentVersion;
|
||
|
QString onlineVersion;
|
||
|
};
|
||
|
|
||
|
} // namespace singletons
|
||
|
} // namespace chatterino
|