summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/ziputil.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-07-26 20:54:44 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-07-26 20:54:44 +0000
commit743308e8828d36ce53fbf25a6fd815dad74b7d59 (patch)
tree4b3431410c2bdafc3e66541dee9e7733bc59e7b9 /rbutil/rbutilqt/base/ziputil.h
parent3bb0fed345d72c7bf944ab490a249463ed150586 (diff)
downloadrockbox-743308e8828d36ce53fbf25a6fd815dad74b7d59.tar.gz
rockbox-743308e8828d36ce53fbf25a6fd815dad74b7d59.tar.bz2
rockbox-743308e8828d36ce53fbf25a6fd815dad74b7d59.zip
Take cluster size into account when calculating zip extracted size.
Allow passing an (optional) cluster size to round up all file sizes when calculating the total size of an extracted zip archive. This allows to check if the space on disk is actually sufficient without relying on an arbitrary headroom value which might be wrong. Addresses FS#12195. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30214 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/ziputil.h')
-rw-r--r--rbutil/rbutilqt/base/ziputil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/ziputil.h b/rbutil/rbutilqt/base/ziputil.h
index cfafb96566..dc1b986c29 100644
--- a/rbutil/rbutilqt/base/ziputil.h
+++ b/rbutil/rbutilqt/base/ziputil.h
@@ -37,7 +37,7 @@ class ZipUtil : public QObject
bool extractArchive(QString& dest);
bool appendDirToArchive(QString& source, QString& basedir);
bool appendFileToArchive(QString& file, QString& basedir);
- qint64 totalUncompressedSize(void);
+ qint64 totalUncompressedSize(unsigned int clustersize = 0);
QStringList files(void);
signals: