diff options
author | Arno <am@disconnect.de> | 2011-05-27 19:00:03 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2011-05-27 19:00:03 +0200 |
commit | 58ba968b492479f6a4539bceaefe3eaa88aab8f7 (patch) | |
tree | 84670022123ae15c15a3f8d80da622bf7373250c /filestreemodel.h | |
parent | bd74eb2df37dd84ecf0279971c64c23ac5de8bce (diff) | |
download | SheMov-58ba968b492479f6a4539bceaefe3eaa88aab8f7.tar.gz SheMov-58ba968b492479f6a4539bceaefe3eaa88aab8f7.tar.bz2 SheMov-58ba968b492479f6a4539bceaefe3eaa88aab8f7.zip |
Implemented FilesTreeModel::fileSizeLessThan
Implemented function to find movie files less a specific size to
suggest suitable files for burning. Not tested, and I guess I have
to take the picture size into account.
Diffstat (limited to 'filestreemodel.h')
-rw-r--r-- | filestreemodel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/filestreemodel.h b/filestreemodel.h index 315e6b2..4039077 100644 --- a/filestreemodel.h +++ b/filestreemodel.h @@ -46,6 +46,7 @@ class FilesTreeModel : public SmTreeModel { QMap<QString, QString> pictureInfo(const QModelIndex &idx) const; QMap<QString, QString> pictureMetaInfo(const QModelIndex &idx); int fileType(const QString &md5sum) const; + QModelIndexList fileSizeLessThan(quint64 size, quint16 limit = 3) const; //file manipulation bool addFile(const QString &fullPath, int type, int quality, int filePart, int seriesPartId, int dvd = -1); @@ -73,6 +74,7 @@ class FilesTreeModel : public SmTreeModel { QSqlQuery *mFilesQuery; QSqlQuery *mDeleteFileQuery; QSqlQuery *mFileTypeQuery; + QSqlQuery *mFileSizeLessThanQuery; //misc QHash<int, QString> mFileTypes; |