started to refactor Application

This commit is contained in:
fourtf
2018-07-07 11:41:01 +02:00
parent 6a418e6e59
commit c609a9fd37
32 changed files with 195 additions and 147 deletions
@@ -33,7 +33,7 @@ AccountController::AccountController()
});
}
void AccountController::load()
void AccountController::initialize(Application &app)
{
this->twitch.load();
}
@@ -1,5 +1,7 @@
#pragma once
#include "common/Singleton.hpp"
#include <QObject>
#include "common/SignalVector.hpp"
@@ -11,14 +13,14 @@ namespace chatterino {
class AccountModel;
class AccountController
class AccountController : public Singleton
{
public:
AccountController();
AccountModel *createModel(QObject *parent);
void load();
virtual void initialize(Application &app) override;
TwitchAccountManager twitch;