summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qstorageinfo_p.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-07-27 14:41:19 -0700
committerThiago Macieira <thiago.macieira@intel.com>2015-07-30 21:12:21 +0000
commitcc7fcecd7ad3c2d7dcf9d93ba4d7018b9cd111b3 (patch)
treefd0f1c597bc6be8d96cf33540033b41e6f15ebb9 /src/corelib/io/qstorageinfo_p.h
parent62bd4f5852137276e354746737a88c06168c4b8b (diff)
Add QStorageInfo::blockSize
[ChangeLog][QtCore][QStorageInfo] Added QStorageInfo::blockSize(), which returns the optimal block size for data transfer to and from the storage. Change-Id: Ib306f8f647014b399b87ffff13f4eba6000452d4 Reviewed-by: Jake Petroules <jake.petroules@petroules.com> Reviewed-by: Tobias Koenig <tobias.koenig@kdab.com>
Diffstat (limited to 'src/corelib/io/qstorageinfo_p.h')
-rw-r--r--src/corelib/io/qstorageinfo_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/io/qstorageinfo_p.h b/src/corelib/io/qstorageinfo_p.h
index 564321bedd..fb3bd8bd5b 100644
--- a/src/corelib/io/qstorageinfo_p.h
+++ b/src/corelib/io/qstorageinfo_p.h
@@ -53,7 +53,7 @@ class QStorageInfoPrivate : public QSharedData
{
public:
inline QStorageInfoPrivate() : QSharedData(),
- bytesTotal(-1), bytesFree(-1), bytesAvailable(-1),
+ bytesTotal(-1), bytesFree(-1), bytesAvailable(-1), blockSize(-1),
readOnly(false), ready(false), valid(false)
{}
@@ -84,6 +84,7 @@ public:
qint64 bytesTotal;
qint64 bytesFree;
qint64 bytesAvailable;
+ int blockSize;
bool readOnly;
bool ready;