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

29 lines
576 B
C++
Raw Normal View History

2018-05-13 19:24:32 +02:00
#pragma once
2018-07-07 11:41:01 +02:00
#include "common/Singleton.hpp"
#include "common/SignalVector.hpp"
2018-06-26 14:09:39 +02:00
#include "controllers/ignores/IgnorePhrase.hpp"
2018-06-28 19:46:45 +02:00
#include "singletons/Settings.hpp"
2018-05-13 19:24:32 +02:00
namespace chatterino {
class IgnoreModel;
2018-07-07 11:41:01 +02:00
class IgnoreController : public Singleton
2018-05-13 19:24:32 +02:00
{
public:
2018-07-07 11:41:01 +02:00
virtual void initialize(Application &app) override;
2018-05-13 19:24:32 +02:00
2018-06-26 17:06:17 +02:00
UnsortedSignalVector<IgnorePhrase> phrases;
2018-05-13 19:24:32 +02:00
IgnoreModel *createModel(QObject *parent);
private:
2018-07-06 19:23:47 +02:00
bool initialized_ = false;
2018-05-13 19:24:32 +02:00
2018-07-06 19:23:47 +02:00
ChatterinoSetting<std::vector<IgnorePhrase>> ignoresSetting_ = {"/ignore/phrases"};
2018-05-13 19:24:32 +02:00
};
} // namespace chatterino