From ec3418479b28ca8e162f84d76c2eed78c27a114c Mon Sep 17 00:00:00 2001 From: am Date: Mon, 20 Jul 2009 17:37:08 +0000 Subject: -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 --- movieitem.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'movieitem.h') diff --git a/movieitem.h b/movieitem.h index edd46b4..70bfc88 100644 --- a/movieitem.h +++ b/movieitem.h @@ -11,6 +11,9 @@ #include #include #include +#include + +#include "coveritem.h" class QSqlQuery; @@ -30,17 +33,22 @@ class MovieItem : public QObject { const QList data() const; const QVariant dataAt(int column) const; const QList actors() const { return mActors; }; + const QHash actorMap() const { return mActorIdMap; }; + const QList 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 mRows; QList mActors; + QHash mActorIdMap; + QList mCovers; }; #endif -- cgit v1.2.3-70-g09d2