/** * SPDX-FileCopyrightText: 2021-2023 Bart De Vries * * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #pragma once #include #include #include #include #include #include "models/abstractepisodemodel.h" class EpisodeModel : public AbstractEpisodeModel { Q_OBJECT public: static EpisodeModel &instance() { static EpisodeModel _instance; return _instance; } explicit EpisodeModel(QObject *parent = nullptr); QVariant data(const QModelIndex &index, int role = Qt::UserRole) const override; int rowCount(const QModelIndex &parent) const override; public Q_SLOTS: void updateInternalState() override; private: QStringList m_entryIds; QVector m_read; QVector m_new; QVector m_favorite; QStringList m_titles; QStringList m_contents; QStringList m_feedNames; QList m_updated; };