mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
34 lines
621 B
C++
34 lines
621 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
|
|
#include "common/SignalVector.hpp"
|
|
#include "common/Singleton.hpp"
|
|
#include "providers/twitch/TwitchAccountManager.hpp"
|
|
#include "util/SharedPtrElementLess.hpp"
|
|
|
|
namespace chatterino {
|
|
|
|
class Account;
|
|
class Settings;
|
|
class Paths;
|
|
|
|
class AccountModel;
|
|
|
|
class AccountController final : public Singleton
|
|
{
|
|
public:
|
|
AccountController();
|
|
|
|
AccountModel *createModel(QObject *parent);
|
|
|
|
virtual void initialize(Settings &settings, Paths &paths) override;
|
|
|
|
TwitchAccountManager twitch;
|
|
|
|
private:
|
|
SignalVector<std::shared_ptr<Account>> accounts_;
|
|
};
|
|
|
|
} // namespace chatterino
|