summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qzip.cpp
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2010-03-10 12:30:07 +0100
committerBenjamin Poulain <benjamin.poulain@nokia.com>2010-03-10 12:30:07 +0100
commit5746fb12c6e7353483cf130b83fb2ab88f0217a2 (patch)
treeffbc1a520933e74d5944e664fc7e305715d62295 /src/gui/text/qzip.cpp
parent11859316dbe9a5745a7faf93fbe38a1aec9fbbe8 (diff)
Add `QIODevice* device() const` public method to QZip classes.
allows to fetch some extra info from the used device (errorString() for ex.) Reviewed-by: Benjamin Poulain <benjamin.poulain@nokia.com>
Diffstat (limited to 'src/gui/text/qzip.cpp')
-rw-r--r--src/gui/text/qzip.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gui/text/qzip.cpp b/src/gui/text/qzip.cpp
index d30c996014..fab6891200 100644
--- a/src/gui/text/qzip.cpp
+++ b/src/gui/text/qzip.cpp
@@ -750,6 +750,14 @@ QZipReader::~QZipReader()
}
/*!
+ Returns device used for reading zip archive.
+*/
+QIODevice* QZipReader::device() const
+{
+ return d->device;
+}
+
+/*!
Returns true if the user can read the file; otherwise returns false.
*/
bool QZipReader::isReadable() const
@@ -1022,6 +1030,14 @@ QZipWriter::~QZipWriter()
}
/*!
+ Returns device used for writing zip archive.
+*/
+QIODevice* QZipWriter::device() const
+{
+ return d->device;
+}
+
+/*!
Returns true if the user can write to the archive; otherwise returns false.
*/
bool QZipWriter::isWritable() const