mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
34 lines
717 B
C++
34 lines
717 B
C++
#pragma once
|
|
|
|
#include "common/ChatterinoSetting.hpp"
|
|
#include "common/SignalVector.hpp"
|
|
#include "common/Singleton.hpp"
|
|
#include "controllers/ignores/IgnorePhrase.hpp"
|
|
|
|
namespace chatterino {
|
|
|
|
class Settings;
|
|
class Paths;
|
|
|
|
class IgnoreModel;
|
|
|
|
enum class ShowIgnoredUsersMessages { Never, IfModerator, IfBroadcaster };
|
|
|
|
class IgnoreController final : public Singleton
|
|
{
|
|
public:
|
|
virtual void initialize(Settings &settings, Paths &paths) override;
|
|
|
|
UnsortedSignalVector<IgnorePhrase> phrases;
|
|
|
|
IgnoreModel *createModel(QObject *parent);
|
|
|
|
private:
|
|
bool initialized_ = false;
|
|
|
|
ChatterinoSetting<std::vector<IgnorePhrase>> ignoresSetting_ = {
|
|
"/ignore/phrases"};
|
|
};
|
|
|
|
} // namespace chatterino
|