本文整理汇总了C++中Package::extractAll方法的典型用法代码示例。如果您正苦于以下问题:C++ Package::extractAll方法的具体用法?C++ Package::extractAll怎么用?C++ Package::extractAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Package
的用法示例。
在下文中一共展示了Package::extractAll方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: run
void WorkerThread::run() {
// If you wish to add post-extraction code, do it here.
connect( this, SIGNAL( requestDiskspaceError() ),
this, SLOT( showDiskspaceError() ) );
// FIXME: Remove Test code for dialog over splash screen.
//QThread::currentThread()->sleep( 1 );
//emit requestDiskspaceError();
//return;
QDir d( _hiddenDir );
if ( ! QFile::exists( QDir::cleanPath( _hiddenDir + "/version.nfo" ) ) ) {
Package* pkg = Package::openEdit( _archFile );
if ( ! checkAvailoableDiskSpace( pkg->requiredDiskSpace() ) ) {
delete pkg;
return;
}
connect( pkg, SIGNAL( checkingFile( QString ) ),
this, SLOT( checkingFile( QString ) ) );
connect( pkg, SIGNAL( extractingFile( QString ) ),
this, SLOT( extractingFile( QString ) ) );
connect( pkg, SIGNAL( skippingFile( QString ) ),
this, SLOT( skippingFile( QString ) ) );
connect( pkg, SIGNAL( finishExtracting() ),
this, SLOT( finishExtracting() ) );
connect( pkg, SIGNAL( startExtracting( int ) ),
this, SLOT( startExtracting( int ) ) );
connect( pkg, SIGNAL( destroyed( QObject* ) ),
this, SLOT( packageDeleted() ) );
pkg->extractAll( _hiddenDir );
delete pkg;
} else {