mirror-chatterino2/src/controllers/accounts/AccountController.hpp

35 lines
714 B
C++
Raw Normal View History

2018-05-06 12:52:47 +02:00
#pragma once
#include <QObject>
2018-06-26 14:09:39 +02:00
#include "controllers/accounts/Account.hpp"
#include "providers/twitch/TwitchAccountManager.hpp"
#include "util/SharedPtrElementLess.hpp"
#include "util/SignalVector2.hpp"
2018-05-06 12:52:47 +02:00
namespace chatterino {
namespace controllers {
namespace accounts {
class AccountModel;
class AccountController
{
public:
AccountController();
AccountModel *createModel(QObject *parent);
void load();
2018-05-26 20:26:25 +02:00
providers::twitch::TwitchAccountManager twitch;
2018-05-06 12:52:47 +02:00
private:
util::SortedSignalVector<std::shared_ptr<Account>, util::SharedPtrElementLess<Account>>
accounts;
};
} // namespace accounts
} // namespace controllers
} // namespace chatterino