refactor: some Application & style things (#5561)
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <pajlada/signals/scoped-connection.hpp>
|
||||
#include <pajlada/signals/signal.hpp>
|
||||
#include <QString>
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
class Paths;
|
||||
class Settings;
|
||||
|
||||
/**
|
||||
* To check for updates, use the `checkForUpdates` method.
|
||||
@@ -16,7 +21,7 @@ class Updates
|
||||
const Paths &paths;
|
||||
|
||||
public:
|
||||
explicit Updates(const Paths &paths_);
|
||||
Updates(const Paths &paths_, Settings &settings);
|
||||
|
||||
enum Status {
|
||||
None,
|
||||
@@ -59,6 +64,9 @@ private:
|
||||
QString updateGuideLink_;
|
||||
|
||||
void setStatus_(Status status);
|
||||
|
||||
std::vector<std::unique_ptr<pajlada::Signals::ScopedConnection>>
|
||||
managedConnections;
|
||||
};
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user