[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-22 23:22:05
Message-ID: 1185146525.355875.11294.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 691123 by henrique:

 * Forward errors from ExtractJob


 M  +9 -0      jobs.cpp  
 M  +1 -0      jobs.h  


--- branches/work/libarchive-based-ark/ark/kerfuffle/jobs.cpp #691122:691123
@@ -77,6 +77,8 @@
 		         this, SLOT( done( ThreadWeaver::Job* ) ) );
 		connect( job, SIGNAL( progress( double ) ),
 		         this, SLOT( progress( double ) ) );
+		connect( job, SIGNAL( error( const QString&, const QString& ) ),
+		         this, SLOT( error( const QString&, const QString& ) ) );
 
 		ThreadWeaver::Weaver::instance()->enqueue( job );
 	}
@@ -91,6 +93,13 @@
 		setPercent( static_cast<unsigned long>( 100.0*p ) );
 	}
 
+	void ExtractJob::error( const QString& errorMessage, const QString& details )
+	{
+		Q_UNUSED( details );
+		setError( 1 );
+		setErrorText( errorMessage );
+	}
+
 	void ListJob::progress( double p )
 	{
 		setPercent( static_cast<unsigned long>( 100.0*p ) );
--- branches/work/libarchive-based-ark/ark/kerfuffle/jobs.h #691122:691123
@@ -72,6 +72,7 @@
 		private slots:
 			void done( ThreadWeaver::Job * );
 			void progress( double );
+			void error( const QString&, const QString& );
 
 		private:
 			QList<QVariant>           m_files;
[prev in list] [next in list] [prev in thread] [next in thread] 

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