[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 20:40:31
Message-ID: 1184964031.531556.20114.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 690370 by henrique:
* Forward progress information
M +14 -0 jobs.cpp
M +3 -0 jobs.h
--- branches/work/libarchive-based-ark/ark/kerfuffle/jobs.cpp #690369:690370
@@ -41,6 +41,8 @@
this, SIGNAL( newEntry( const ArchiveEntry & ) ) );
connect( job, SIGNAL( done( ThreadWeaver::Job* ) ),
this, SLOT( done( ThreadWeaver::Job* ) ) );
+ connect( job, SIGNAL( progress( double ) ),
+ this, SLOT( progress( double ) ) );
ThreadWeaver::Weaver::instance()->enqueue( job );
}
@@ -62,6 +64,8 @@
connect( job, SIGNAL( done( ThreadWeaver::Job* ) ),
this, SLOT( done( ThreadWeaver::Job* ) ) );
+ connect( job, SIGNAL( progress( double ) ),
+ this, SLOT( progress( double ) ) );
ThreadWeaver::Weaver::instance()->enqueue( job );
}
@@ -71,4 +75,14 @@
emitResult();
}
+ void ExtractJob::progress( double p )
+ {
+ setPercent( static_cast<unsigned long>( 100.0*p ) );
+ }
+
+ void ListJob::progress( double p )
+ {
+ setPercent( static_cast<unsigned long>( 100.0*p ) );
+ }
+
} // namespace Kerfuffle
--- branches/work/libarchive-based-ark/ark/kerfuffle/jobs.h #690369:690370
@@ -55,6 +55,7 @@
private slots:
void done( ThreadWeaver::Job* );
+ void progress( double );
private:
ReadOnlyArchiveInterface *m_archive;
@@ -70,6 +71,8 @@
private slots:
void done( ThreadWeaver::Job * );
+ void progress( double );
+
private:
QList<QVariant> m_files;
QString m_destinationDir;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic