mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
f6d9fb2aac
Co-authored-by: Paweł <zneix@zneix.eu> Co-authored-by: 23rd <23rd@vivaldi.net> Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
37 lines
836 B
C++
37 lines
836 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
|
|
#include "common/SignalVectorModel.hpp"
|
|
#include "controllers/highlights/HighlightBadge.hpp"
|
|
#include "providers/twitch/TwitchBadges.hpp"
|
|
|
|
namespace chatterino {
|
|
|
|
class HighlightController;
|
|
|
|
class BadgeHighlightModel : public SignalVectorModel<HighlightBadge>
|
|
{
|
|
public:
|
|
explicit BadgeHighlightModel(QObject *parent);
|
|
|
|
enum Column {
|
|
Badge = 0,
|
|
FlashTaskbar = 1,
|
|
PlaySound = 2,
|
|
SoundPath = 3,
|
|
Color = 4
|
|
};
|
|
|
|
protected:
|
|
// vector into model row
|
|
virtual HighlightBadge getItemFromRow(
|
|
std::vector<QStandardItem *> &row,
|
|
const HighlightBadge &original) override;
|
|
|
|
virtual void getRowFromItem(const HighlightBadge &item,
|
|
std::vector<QStandardItem *> &row) override;
|
|
};
|
|
|
|
} // namespace chatterino
|