From d617e0679b42680d5068513a951b6f6db10b0565 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 23 Jul 2010 21:25:34 +0200 Subject: Big code cleanup hopefully removed all code connected to ArchiveViewWidget in this tree. Files removed ({h,cpp}): *archiveeditdialog *listeditor *covereditor *archivefilewidget *addmoviewizard *archivefileview *archiveproxy *sizedelegate *archivedidelegate *archiveitemeditdialog *coveritem *movieitem *moviemodel *moviemodelsingleton *listmodel *listmodelsingleton *archiveviewwidget *archiveiteminfoedit *archiveitemcoveredit *fileinfoitem *fileinfomodel See added file TODOS for stuff that needs fixes. --- movieitem.h | 55 ------------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 movieitem.h (limited to 'movieitem.h') diff --git a/movieitem.h b/movieitem.h deleted file mode 100644 index a20cf52..0000000 --- a/movieitem.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation; either version - 2 of the License, or (at your option) any later version. -*/ - -#ifndef MOVIEITEM_H -#define MOVIEITEM_H - -#include -#include -#include -#include - -#include "coveritem.h" - -class QSqlQuery; - -class MovieItem : public QObject { - Q_OBJECT - Q_ENUMS(Columns) - public: - enum Columns { Title = 0, Filename = 1, Md5Sum = 2, Size = 3, Genre = 4, Quality = 5, Dvd = 6, SeriesNo = 7, PartNo = 8 }; - enum { NumRows = 9 }; - MovieItem(int id = -1, QObject *parent = 0); - ~MovieItem() {}; - int id() const { return mId; }; - void setId(int id); - int genreId() const { return mGenreId; }; - bool setData(const QList &data); - void setDataAt(int column, const QVariant &data); - 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 setSize(); - const int mNumRows; - int mId; - int mGenreId; - QList mRows; - QList mActors; - QHash mActorIdMap; - QList mCovers; -}; - -#endif - -- cgit v1.2.3-70-g09d2