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

31 lines
583 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"
2018-06-26 15:33:51 +02:00
#include "common/SignalVector2.hpp"
2018-05-06 12:52:47 +02:00
namespace chatterino {
class AccountModel;
class AccountController
{
public:
AccountController();
AccountModel *createModel(QObject *parent);
void load();
2018-06-26 17:06:17 +02:00
TwitchAccountManager twitch;
2018-05-06 12:52:47 +02:00
private:
2018-06-26 17:06:17 +02:00
SortedSignalVector<std::shared_ptr<Account>, SharedPtrElementLess<Account>>
2018-05-06 12:52:47 +02:00
accounts;
};
} // namespace chatterino