diff options
author | am <am@f440f766-f032-0410-8965-dc7d17de2ca0> | 2009-07-20 17:37:08 +0000 |
---|---|---|
committer | am <am@f440f766-f032-0410-8965-dc7d17de2ca0> | 2009-07-20 17:37:08 +0000 |
commit | ec3418479b28ca8e162f84d76c2eed78c27a114c (patch) | |
tree | a947550fc9821999baf728dbf33adef71fa67576 /movieitem.h | |
parent | d2b854121266e32164290ee4e683c0c8388d7d41 (diff) | |
download | SheMov-ec3418479b28ca8e162f84d76c2eed78c27a114c.tar.gz SheMov-ec3418479b28ca8e162f84d76c2eed78c27a114c.tar.bz2 SheMov-ec3418479b28ca8e162f84d76c2eed78c27a114c.zip |
-started on editing the archive
-big probs with the covers, I'll stop for now, can't think straight any more
-changes to MovieModel
-changes to MovieItem
-modified CoverEditor to allow adding files (untested)
git-svn-id: file:///var/svn/repos2/shemov/trunk@392 f440f766-f032-0410-8965-dc7d17de2ca0
Diffstat (limited to 'movieitem.h')
-rw-r--r-- | movieitem.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/movieitem.h b/movieitem.h index edd46b4..70bfc88 100644 --- a/movieitem.h +++ b/movieitem.h @@ -11,6 +11,9 @@ #include <QObject> #include <QList> #include <QVariant> +#include <QHash> + +#include "coveritem.h" class QSqlQuery; @@ -30,17 +33,22 @@ class MovieItem : public QObject { const QList<QVariant> data() const; const QVariant dataAt(int column) const; const QList<QVariant> actors() const { return mActors; }; + const QHash<QString, QVariant> actorMap() const { return mActorIdMap; }; + const QList<QVariant> covers() const { return mCovers; }; void populate(); + void setActors(); + void setCovers(); private: void setGenreName(); - void setActors(); void setSize(); const int mNumRows; int mId; int mGenreId; QList<QVariant> mRows; QList<QVariant> mActors; + QHash<QString, QVariant> mActorIdMap; + QList<QVariant> mCovers; }; #endif |