From kde-commits Fri Apr 22 20:28:24 2005 From: Albert Astals Cid Date: Fri, 22 Apr 2005 20:28:24 +0000 To: kde-commits Subject: kdelibs/kio/kio Message-Id: <20050422202824.53305496 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111420171522331 CVS commit by aacid: Add bool KArchive::closeSucceeded() const for more info check http://lists.kde.org/?t=111392726700001&r=1&w=2 M +7 -1 karchive.cpp 1.23 M +8 -0 karchive.h 1.31 --- kdelibs/kio/kio/karchive.cpp #1.22:1.23 @@ -54,4 +54,5 @@ class KArchive::KArchivePrivate public: KArchiveDirectory* rootDir; + bool closeSucceeded; }; @@ -111,5 +112,5 @@ void KArchive::close() // moved by holger to allow kzip to write the zip central dir // to the file in closeArchive() - closeArchive(); + d->closeSucceeded = closeArchive(); if ( m_dev ) @@ -121,4 +122,9 @@ void KArchive::close() } +bool KArchive::closeSucceeded() const +{ + return d->closeSucceeded; +} + const KArchiveDirectory* KArchive::directory() const { --- kdelibs/kio/kio/karchive.h #1.30:1.31 @@ -70,4 +70,12 @@ public: /** + * Use to check if close had any problem + * @return true if close succeded without problems + * @since 3.5 + */ + // TODO KDE4 merge with above + bool closeSucceeded() const; + + /** * Checks whether the archive is open. * @return true if the archive is opened