From 88791c89ac1066a9c0118120e10ec3cc19c2ec72 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 18 Jul 2010 11:33:04 +0200 Subject: Implemented "move to burn directory" for TreeWidget Files from the archive can be moved to a configurable directory with this function. The specified files won't be deleted from the database. --- filestreemodel.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'filestreemodel.h') diff --git a/filestreemodel.h b/filestreemodel.h index 7cff707..73c46e0 100644 --- a/filestreemodel.h +++ b/filestreemodel.h @@ -10,6 +10,7 @@ #include #include +#include #include "smtreemodel.h" @@ -31,6 +32,7 @@ class FilesTreeModel : public SmTreeModel { QVariant data(const QModelIndex &index, int role) const; bool setData(const QModelIndex &index, const QVariant &value, int role); Qt::ItemFlags flags(const QModelIndex &index) const; + QHash filesBySeriesPartId(int seriesPartId); //file manipulation bool addFile(const QString &fullPath, int type, int quality, int filePart, int seriesPartId, int dvd = -1); @@ -41,6 +43,7 @@ class FilesTreeModel : public SmTreeModel { QSqlQuery *mUpdateDvdQuery; QSqlQuery *mUpdateQualityQuery; QSqlQuery *mInsertFileQuery; + QSqlQuery *mFilesQuery; }; #endif // FILESTREEMODEL_H -- cgit v1.2.3-70-g09d2