diff options
author | Arno <am@disconnect.de> | 2012-12-30 13:42:35 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2012-12-30 13:42:35 +0100 |
commit | 6ca8a6fab443c0b4ac7f6249c9ef02457ddf4f55 (patch) | |
tree | cf5a50340feeccf136eb7b99cd7a0699f43b7111 /filestreemodel.h | |
parent | a069898249b863b0982b1807afa8d0b0912b496e (diff) | |
download | SheMov-6ca8a6fab443c0b4ac7f6249c9ef02457ddf4f55.tar.gz SheMov-6ca8a6fab443c0b4ac7f6249c9ef02457ddf4f55.tar.bz2 SheMov-6ca8a6fab443c0b4ac7f6249c9ef02457ddf4f55.zip |
Allow moving files from one Series to another
Allow moving files from one SeriesPart to another. Had to add another
global variable for this.
Diffstat (limited to 'filestreemodel.h')
-rw-r--r-- | filestreemodel.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<QPersistentModelIndex> 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<int> mCurrentIds; }; #endif // FILESTREEMODEL_H |