summaryrefslogtreecommitdiffstats
path: root/filestreemodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'filestreemodel.h')
-rw-r--r--filestreemodel.h4
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