mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
28 lines
833 B
C++
28 lines
833 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
|
|
#include "common/SignalVectorModel.hpp"
|
|
#include "controllers/highlights/HighlightBlacklistUser.hpp"
|
|
|
|
namespace chatterino {
|
|
|
|
class HighlightController;
|
|
|
|
class HighlightBlacklistModel : public SignalVectorModel<HighlightBlacklistUser>
|
|
{
|
|
explicit HighlightBlacklistModel(QObject *parent);
|
|
|
|
protected:
|
|
// turn a vector item into a model row
|
|
virtual HighlightBlacklistUser getItemFromRow(std::vector<QStandardItem *> &row,
|
|
const HighlightBlacklistUser &original) override;
|
|
|
|
// turns a row in the model into a vector item
|
|
virtual void getRowFromItem(const HighlightBlacklistUser &item,
|
|
std::vector<QStandardItem *> &row) override;
|
|
|
|
friend class HighlightController;
|
|
};
|
|
|
|
} // namespace chatterino
|