refactored TaggedUsers and Ping

This commit is contained in:
fourtf
2020-02-23 20:34:00 +01:00
parent df91ea44c4
commit d0a81f3fe7
14 changed files with 131 additions and 161 deletions
@@ -0,0 +1,32 @@
#pragma once
#include <QObject>
#include "common/SignalVector.hpp"
#include "common/Singleton.hpp"
#include "singletons/Settings.hpp"
namespace chatterino {
class Settings;
class Paths;
class MutedChannelModel;
class MutedChannelController final : public Singleton, private QObject
{
public:
virtual void initialize(Settings &settings, Paths &paths) override;
bool isMuted(const QString &channelName);
bool toggleMuted(const QString &channelName);
private:
void mute(const QString &channelName);
void unmute(const QString &channelName);
bool initialized_ = false;
SignalVector<QString> channels;
};
} // namespace chatterino