|
|
|
@ -122,18 +122,18 @@ void Kleo::QGpgMESecretKeyExportJob::slotqStatus( GnuPGProcessBase * proc, const
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( args.size() < 2 ) {
|
|
|
|
|
kdDebug( 5150 ) << "Kleo::QGpgMESecretKeyExportJob::slotqStatus() not recognising ERROR with < 2 args!" << endl;
|
|
|
|
|
kdDebug( 5150 ) << "Kleo::QGpgMESecretKeyExportJob::sloStatus() not recognising ERROR with < 2 args!" << endl;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
const int source = (*++it).toInt( &ok );
|
|
|
|
|
if ( !ok ) {
|
|
|
|
|
kdDebug( 5150 ) << "Kleo::QGpgMESecretKeyExportJob::slotqStatus() expected number for first ERROR arg, got something else" << endl;
|
|
|
|
|
kdDebug( 5150 ) << "Kleo::QGpgMESecretKeyExportJob::sloStatus() expected number for first ERROR arg, got something else" << endl;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
ok = false;
|
|
|
|
|
const int code = (*++it).toInt( &ok );
|
|
|
|
|
if ( !ok ) {
|
|
|
|
|
kdDebug( 5150 ) << "Kleo::QGpgMESecretKeyExportJob::slotqStatus() expected number for second ERROR arg, got something else" << endl;
|
|
|
|
|
kdDebug( 5150 ) << "Kleo::QGpgMESecretKeyExportJob::sloStatus() expected number for second ERROR arg, got something else" << endl;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
mError = gpg_err_make( (gpg_err_source_t)source, (gpg_err_code_t)code );
|
|
|
|
@ -143,20 +143,20 @@ void Kleo::QGpgMESecretKeyExportJob::slotqStatus( GnuPGProcessBase * proc, const
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( args.size() < 4 ) {
|
|
|
|
|
kdDebug( 5150 ) << "Kleo::QGpgMESecretKeyExportJob::slotqStatus() not recognising PROGRESS with < 4 args!" << endl;
|
|
|
|
|
kdDebug( 5150 ) << "Kleo::QGpgMESecretKeyExportJob::sloStatus() not recognising PROGRESS with < 4 args!" << endl;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
const TQString what = *++it;
|
|
|
|
|
++it; // don't use "type"...
|
|
|
|
|
const int cur = (*++it).toInt( &ok );
|
|
|
|
|
if ( !ok ) {
|
|
|
|
|
kdDebug( 5150 ) << "Kleo::QGpgMESecretKeyExportJob::slotqStatus() expected number for \"cur\", got something else" << endl;
|
|
|
|
|
kdDebug( 5150 ) << "Kleo::QGpgMESecretKeyExportJob::sloStatus() expected number for \"cur\", got something else" << endl;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
ok = false;
|
|
|
|
|
const int total = (*++it).toInt( &ok );
|
|
|
|
|
if ( !ok ) {
|
|
|
|
|
kdDebug( 5150 ) << "Kleo::QGpgMESecretKeyExportJob::slotqStatus() expected number for \"total\", got something else" << endl;
|
|
|
|
|
kdDebug( 5150 ) << "Kleo::QGpgMESecretKeyExportJob::sloStatus() expected number for \"total\", got something else" << endl;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
emit progress( QGpgMEProgressTokenMapper::instance()->map( what, 0, cur, total ), cur, total );
|
|
|
|
|