[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/libarchive-based-ark/ark/kerfuffle
From:       Henrique Pinto <tawhaki () gmail ! com>
Date:       2007-07-20 16:44:07
Message-ID: 1184949847.686393.25142.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 690301 by henrique:

 * Remove jobs_p.h


 M  +0 -2      jobs.cpp  
 M  +29 -3     jobs.h  
 D             jobs_p.h  


--- branches/work/libarchive-based-ark/ark/kerfuffle/jobs.cpp #690300:690301
@@ -24,7 +24,6 @@
  */
 
 #include "jobs.h"
-#include "jobs_p.h"
 #include <kdebug.h>
 
 ListingJob::ListingJob( ReadOnlyArchiveInterface *archive, QObject *parent )
@@ -114,4 +113,3 @@
 }
 
 #include "jobs.moc"
-#include "jobs_p.moc"
--- branches/work/libarchive-based-ark/ark/kerfuffle/jobs.h #690300:690301
@@ -23,13 +23,14 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef JOBS_H
-#define JOBS_H
+#ifndef KERFUFFLE_INTERNAL_JOBS_H
+#define KERFUFFLE_INTERNAL_JOBS_H
 
 #include <ThreadWeaver/Job>
 #include <ThreadWeaver/Weaver>
 
 #include "archiveinterface.h"
+#include "observer.h"
 #include <QList>
 
 class ArchiveJobHelper;
@@ -83,4 +84,29 @@
 		bool                      m_preservePaths;
 };
 
-#endif // JOBS_H
+class ArchiveJobHelper: public QObject, public ArchiveObserver
+{
+	Q_OBJECT
+	public:
+		ArchiveJobHelper( ReadOnlyArchiveInterface *archive, QObject *parent = 0 );
+		~ArchiveJobHelper();
+
+		bool getTheListing();
+
+		void onError( const QString & message, const QString & details = QString() );
+		void onEntry( const ArchiveEntry & archiveEntry );
+		void onProgress( double );
+
+	signals:
+		void entry( const ArchiveEntry & );
+		void progress( double );
+		void error( const QString & message, const QString & details );
+
+	private slots:
+		void entryslot( const ArchiveEntry & );
+
+	private:
+		ReadOnlyArchiveInterface *m_archive;
+};
+
+#endif // KERFUFFLE_INTERNAL_JOBS_H
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic