Files
chatterino2/src/controllers/accounts/AccountController.hpp
2018-06-26 17:20:03 +02:00

30 lines
574 B
C++

#pragma once
#include <QObject>
#include "common/SignalVector2.hpp"
#include "controllers/accounts/Account.hpp"
#include "providers/twitch/TwitchAccountManager.hpp"
#include "util/SharedPtrElementLess.hpp"
namespace chatterino {
class AccountModel;
class AccountController
{
public:
AccountController();
AccountModel *createModel(QObject *parent);
void load();
TwitchAccountManager twitch;
private:
SortedSignalVector<std::shared_ptr<Account>, SharedPtrElementLess<Account>> accounts;
};
} // namespace chatterino