From 6ca8a6fab443c0b4ac7f6249c9ef02457ddf4f55 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 30 Dec 2012 13:42:35 +0100 Subject: Allow moving files from one Series to another Allow moving files from one SeriesPart to another. Had to add another global variable for this. --- filestreemodel.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'filestreemodel.h') diff --git a/filestreemodel.h b/filestreemodel.h index 0ff7043..df3831b 100644 --- a/filestreemodel.h +++ b/filestreemodel.h @@ -52,6 +52,7 @@ class FilesTreeModel : public SmTreeModel { bool addFile(const QString &fullPath, int type, int quality, int filePart, int seriesPartId, int dvd = -1); bool deleteFile(const QModelIndex &file); bool deleteFiles(const QModelIndexList &files); + bool updateSeries(int newSeries, QList files); //misc void readCache(); @@ -59,6 +60,7 @@ class FilesTreeModel : public SmTreeModel { public slots: void readSettings(); + void refresh(); private: //functions @@ -74,6 +76,7 @@ class FilesTreeModel : public SmTreeModel { QSqlQuery *mFilesQuery; QSqlQuery *mDeleteFileQuery; QSqlQuery *mFileTypeQuery; + QSqlQuery *mUpdateSeriesPartQuery; QString mFileSizeLessThanQueryTemplate; //misc @@ -88,6 +91,7 @@ class FilesTreeModel : public SmTreeModel { QColor mArchivedColor; QColor mFavoriteColor; qint64 mDvdSize; + QList mCurrentIds; }; #endif // FILESTREEMODEL_H -- cgit v1.2.3-70-g09d2