From 58ba968b492479f6a4539bceaefe3eaa88aab8f7 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 27 May 2011 19:00:03 +0200 Subject: 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. --- filestreemodel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'filestreemodel.h') 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 pictureInfo(const QModelIndex &idx) const; QMap 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 mFileTypes; -- cgit v1.2.3-70-g09d2