diff options
author | Arno <am@disconnect.de> | 2010-07-18 11:33:04 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-07-18 11:33:04 +0200 |
commit | 88791c89ac1066a9c0118120e10ec3cc19c2ec72 (patch) | |
tree | efe64de5f51bc4ab5821da7114ed9ebac16cccf7 /filestreemodel.h | |
parent | a7a6b1c9f8f718b3082e6cc373459a1eba508848 (diff) | |
download | SheMov-88791c89ac1066a9c0118120e10ec3cc19c2ec72.tar.gz SheMov-88791c89ac1066a9c0118120e10ec3cc19c2ec72.tar.bz2 SheMov-88791c89ac1066a9c0118120e10ec3cc19c2ec72.zip |
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.
Diffstat (limited to 'filestreemodel.h')
-rw-r--r-- | filestreemodel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/filestreemodel.h b/filestreemodel.h index 7cff707..73c46e0 100644 --- a/filestreemodel.h +++ b/filestreemodel.h @@ -10,6 +10,7 @@ #include <QSqlDatabase> #include <QList> +#include <QHash> #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<QString, QString> 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 |