summaryrefslogtreecommitdiffstats
path: root/filestreemodel.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-07-08 22:58:55 +0200
committerArno <am@disconnect.de>2010-07-08 22:58:55 +0200
commit36d60fc19f6cbc1a76931479664589544411763b (patch)
treeff4f8eee9b665b8dced009823a80d3166c0c140c /filestreemodel.h
parent7d0dbd9c36b1b2df787158abf745fff527dd18d2 (diff)
downloadSheMov-36d60fc19f6cbc1a76931479664589544411763b.tar.gz
SheMov-36d60fc19f6cbc1a76931479664589544411763b.tar.bz2
SheMov-36d60fc19f6cbc1a76931479664589544411763b.zip
Preparations for NewMovieWizard::accept
-new memfunc: SeriesTreeModel::addSeries -new memfunc: SeriesTreeModel::addSeriesPart started FilesTreeModel::addFile, not finished yet.
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 ffa23f8..1e3f40e 100644
--- a/filestreemodel.h
+++ b/filestreemodel.h
@@ -30,10 +30,14 @@ class FilesTreeModel : public SmTreeModel {
bool setData(const QModelIndex &index, const QVariant &value, int role);
Qt::ItemFlags flags(const QModelIndex &index) const;
+ //file manipulation
+ bool addFile(const QString &fullPath, int type, int quality, int filePart, int seriesPartId, int dvd = -1);
+
private:
QSqlDatabase mDb;
QSqlQuery *mUpdateDvdQuery;
QSqlQuery *mUpdateQualityQuery;
+ QSqlQuery *mInsertFileQuery;
};
#endif // FILESTREEMODEL_H