mirror-chatterino2/src/controllers/ignores/IgnoreController.hpp

32 lines
627 B
C++
Raw Normal View History

2018-05-13 19:24:32 +02:00
#pragma once
2018-06-26 14:09:39 +02:00
#include "controllers/ignores/IgnorePhrase.hpp"
#include "singletons/SettingsManager.hpp"
#include "util/SignalVector2.hpp"
2018-05-13 19:24:32 +02:00
namespace chatterino {
namespace controllers {
namespace ignores {
class IgnoreModel;
class IgnoreController
{
public:
void initialize();
util::UnsortedSignalVector<IgnorePhrase> phrases;
IgnoreModel *createModel(QObject *parent);
private:
bool initialized = false;
singletons::ChatterinoSetting<std::vector<ignores::IgnorePhrase>> ignoresSetting = {
"/ignore/phrases"};
};
} // namespace ignores
} // namespace controllers
} // namespace chatterino