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

28 lines
518 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"
2018-06-26 15:33:51 +02:00
#include "common/SignalVector2.hpp"
2018-05-13 19:24:32 +02:00
namespace chatterino {
class IgnoreModel;
class IgnoreController
{
public:
void initialize();
2018-06-26 17:06:17 +02:00
UnsortedSignalVector<IgnorePhrase> phrases;
2018-05-13 19:24:32 +02:00
IgnoreModel *createModel(QObject *parent);
private:
bool initialized = false;
2018-06-26 17:06:17 +02:00
chatterino::ChatterinoSetting<std::vector<IgnorePhrase>> ignoresSetting = {
2018-05-13 19:24:32 +02:00
"/ignore/phrases"};
};
} // namespace chatterino