[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kio/kio
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2005-04-22 20:28:24
Message-ID: 20050422202824.53305496 () office ! kde ! org
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic