diff options
Diffstat (limited to 'archivemodel.h')
-rw-r--r-- | archivemodel.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/archivemodel.h b/archivemodel.h index da673c7..ad11fce 100644 --- a/archivemodel.h +++ b/archivemodel.h @@ -106,6 +106,10 @@ class ArchiveFilesModel : public SmTreeModel { void populate(const QSet<int> &seriesPartIds); QStringList filesForSeriespart(int seriesPartId) const; void updateSeriesPartForFile(const QString &md5sum, int newSeriesPart); + quint64 totalDuration() const { return mTotalDuration; } + quint64 totalSize() const { return mTotalSize; } + int movieFilesCount() const { return mTotalMovies; } + int otherFilesCount() const { return mTotalOthers; } static bool hasFile(const QString &md5); static bool setDvdNo(const QString &md5, int dvdno); @@ -117,6 +121,10 @@ class ArchiveFilesModel : public SmTreeModel { QSet<int> mSeriesPartIds; QHash<int, QString> mRoleDbColumnMap; QSqlDatabase mDb; + quint64 mTotalSize; + quint64 mTotalDuration; + int mTotalMovies; + int mTotalOthers; }; class ArchiveCollector : public QThread { |