summaryrefslogtreecommitdiffstats
path: root/archivemodel.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-07-09 12:18:21 +0200
committerArno <am@disconnect.de>2013-07-09 12:18:21 +0200
commitde9d8a08fe5e85cdb599022261e07e27b7646f6c (patch)
tree8f47cc0602b37f32b26972c077ae15aedac79304 /archivemodel.h
parentfae552580c1214ff5b3e61c6f981c720b3f49263 (diff)
downloadSheMov-de9d8a08fe5e85cdb599022261e07e27b7646f6c.tar.gz
SheMov-de9d8a08fe5e85cdb599022261e07e27b7646f6c.tar.bz2
SheMov-de9d8a08fe5e85cdb599022261e07e27b7646f6c.zip
Show actors, genres and metadata when selecting a series
We're getting there, slowly, but steadily :)
Diffstat (limited to 'archivemodel.h')
-rw-r--r--archivemodel.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/archivemodel.h b/archivemodel.h
index 7e77642..991d4da 100644
--- a/archivemodel.h
+++ b/archivemodel.h
@@ -13,6 +13,7 @@
#include <QDataStream>
#include <QMutex>
#include <QSet>
+#include <QStringListModel>
#include "smtreemodel.h"
@@ -37,6 +38,9 @@ class ArchiveModel : public SmTreeModel {
QStringList indexToPath(const QModelIndex &idx) const;
QModelIndexList pathToIndex(const QStringList &path) const;
QSet<int> seriesPartIds(const QModelIndex &idx) const;
+ QStringList actors(const QSet<int> &partIds) const;
+ QStringList genres(const QSet<int> &genreIds) const;
+ QString metadata(int partId) const;
signals:
void needRefresh();
@@ -121,4 +125,11 @@ class ArchiveCollector : public QThread {
bool mCancelled;
};
+class SimpleModel : public QStringListModel {
+ Q_OBJECT
+ public:
+ explicit SimpleModel(QObject *parent = 0) : QStringListModel(parent) {}
+ virtual QVariant data(const QModelIndex &index, int role) const;
+};
+
#endif // ARCHIVEMODEL_H