@ -111,9 +111,9 @@ void KgpgInterface::KgpgEncryptFile(TQStringList encryptKeys,KURL srcUrl,KURL de
* proc < < TQString ( TQFile : : encodeName ( srcUrl . path ( ) ) ) ;
///////// when process ends, update dialog infos
TQObject : : connect ( proc , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( encryptfin ( K Process * ) ) ) ;
TQObject : : connect ( proc , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( encryptfin ( TDE Process * ) ) ) ;
TQObject : : connect ( proc , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( readencprocess ( KProcIO * ) ) ) ;
proc - > start ( K Process: : NotifyOnExit , true ) ;
proc - > start ( TDE Process: : NotifyOnExit , true ) ;
}
@ -121,7 +121,7 @@ KgpgInterface::~KgpgInterface()
{ }
void KgpgInterface : : encryptfin ( K Process * )
void KgpgInterface : : encryptfin ( TDE Process * )
{
if ( message . find ( " END_ENCRYPTION " ) ! = - 1 )
emit encryptionfinished ( sourceFile ) ;
@ -180,12 +180,12 @@ void KgpgInterface::KgpgDecryptFile(KURL srcUrl,KURL destUrl,TQStringList Option
* proc < < " -d " < < TQString ( TQFile : : encodeName ( srcUrl . path ( ) ) ) ;
TQObject : : connect ( proc , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( decryptfin ( K Process * ) ) ) ;
TQObject : : connect ( proc , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( decryptfin ( TDE Process * ) ) ) ;
TQObject : : connect ( proc , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( readdecprocess ( KProcIO * ) ) ) ;
proc - > start ( K Process: : NotifyOnExit , true ) ;
proc - > start ( TDE Process: : NotifyOnExit , true ) ;
}
void KgpgInterface : : decryptfin ( K Process * )
void KgpgInterface : : decryptfin ( TDE Process * )
{
if ( ( message . find ( " DECRYPTION_OKAY " ) ! = - 1 ) & & ( message . find ( " END_DECRYPTION " ) ! = - 1 ) ) //&& (message.find("GOODMDC")!=-1)
emit decryptionfinished ( ) ;
@ -248,7 +248,7 @@ void KgpgInterface::readdecprocess(KProcIO *p)
void KgpgInterface : : KgpgEncryptText ( TQString text , TQStringList userIDs , TQStringList Options )
{
message = TQString ( ) ;
//TQTextCodec *codec = KGlobal::charsets()->codecForName(K Global::locale()->encoding());
//TQTextCodec *codec = TDEGlobal::charsets()->codecForName(TDE Global::locale()->encoding());
TQTextCodec * codec = TQTextCodec : : codecForLocale ( ) ;
if ( codec - > canEncode ( text ) ) txtToEncrypt = text ;
else txtToEncrypt = text . utf8 ( ) ;
@ -270,14 +270,14 @@ void KgpgInterface::KgpgEncryptText(TQString text,TQStringList userIDs, TQString
///////// when process ends, update dialog infos
TQObject : : connect ( proc , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( txtencryptfin ( K Process * ) ) ) ;
TQObject : : connect ( proc , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( txtencryptfin ( TDE Process * ) ) ) ;
TQObject : : connect ( proc , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( txtreadencprocess ( KProcIO * ) ) ) ;
proc - > start ( K Process: : NotifyOnExit , false ) ;
proc - > start ( TDE Process: : NotifyOnExit , false ) ;
emit txtencryptionstarted ( ) ;
}
void KgpgInterface : : txtencryptfin ( K Process * )
void KgpgInterface : : txtencryptfin ( TDE Process * )
{
if ( ! message . isEmpty ( ) )
emit txtencryptionfinished ( message ) ;
@ -328,7 +328,7 @@ void KgpgInterface::KgpgDecryptText(TQString text,TQStringList Options)
decfinished = false ;
decok = false ;
badmdc = false ;
KProcess * proc = new K Process( ) ;
TDEProcess * proc = new TDE Process( ) ;
* proc < < " gpg " < < " --no-tty " < < " --no-secmem-warning " < < " --command-fd=0 " < < " --status-fd=2 " < < " --no-batch " < < " --utf8-strings " ;
for ( TQStringList : : Iterator it = Options . begin ( ) ; it ! = Options . end ( ) ; + + it )
if ( ! TQFile : : encodeName ( * it ) . isEmpty ( ) ) * proc < < TQString ( TQFile : : encodeName ( * it ) ) ;
@ -336,14 +336,14 @@ void KgpgInterface::KgpgDecryptText(TQString text,TQStringList Options)
///////// when process ends, update dialog infos
TQObject : : connect ( proc , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( txtdecryptfin ( K Process * ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStdout ( K Process * , char * , int ) ) , this , TQT_SLOT ( getOutput ( K Process * , char * , int ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStderr ( K Process * , char * , int ) ) , this , TQT_SLOT ( getCmdOutput ( K Process * , char * , int ) ) ) ;
proc - > start ( KProcess: : NotifyOnExit , K Process: : All ) ;
TQObject : : connect ( proc , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( txtdecryptfin ( TDE Process * ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStdout ( TDE Process * , char * , int ) ) , this , TQT_SLOT ( getOutput ( TDE Process * , char * , int ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStderr ( TDE Process * , char * , int ) ) , this , TQT_SLOT ( getCmdOutput ( TDE Process * , char * , int ) ) ) ;
proc - > start ( TDEProcess: : NotifyOnExit , TDE Process: : All ) ;
proc - > writeStdin ( text . utf8 ( ) , text . length ( ) ) ;
}
void KgpgInterface : : txtdecryptfin ( K Process * )
void KgpgInterface : : txtdecryptfin ( TDE Process * )
{
if ( ( decok ) & & ( ! badmdc ) )
emit txtdecryptionfinished ( message ) ;
@ -358,13 +358,13 @@ emit txtdecryptionfailed(log);
}
void KgpgInterface : : getOutput ( K Process * , char * data , int )
void KgpgInterface : : getOutput ( TDE Process * , char * data , int )
{
message . append ( TQString : : fromUtf8 ( data ) ) ;
}
void KgpgInterface : : getCmdOutput ( K Process * p , char * data , int )
void KgpgInterface : : getCmdOutput ( TDE Process * p , char * data , int )
{
gpgOutput . append ( TQString : : fromUtf8 ( data ) ) ;
log . append ( data ) ;
@ -450,12 +450,12 @@ void KgpgInterface::KgpgSignText(TQString text,TQString userIDs, TQStringList Op
///////// when process ends, update dialog infos
TQObject : : connect ( proc , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( txtsignfin ( K Process * ) ) ) ;
TQObject : : connect ( proc , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( txtsignfin ( TDE Process * ) ) ) ;
TQObject : : connect ( proc , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( txtsignprocess ( KProcIO * ) ) ) ;
//emit txtsigningstarted();
proc - > start ( K Process: : NotifyOnExit , false ) ;
proc - > start ( TDE Process: : NotifyOnExit , false ) ;
/*if (useAgent)
{
kdDebug ( 2100 ) < < " Using Agent+++++++++++++ " < < endl ;
@ -468,7 +468,7 @@ void KgpgInterface::KgpgSignText(TQString text,TQString userIDs, TQStringList Op
}
void KgpgInterface : : txtsignfin ( K Process * )
void KgpgInterface : : txtsignfin ( TDE Process * )
{
if ( ! message . isEmpty ( ) )
emit txtSignOver ( message ) ;
@ -530,7 +530,7 @@ decfinished=false;
decok = false ;
badmdc = false ;
KProcess * proc = new K Process( ) ;
TDEProcess * proc = new TDE Process( ) ;
* proc < < " gpg " < < " --no-tty " < < " --utf8-strings " < < " --no-secmem-warning " < < " --command-fd=0 " < < " --status-fd=2 " < < " --no-batch " < < " -o " < < " - " ;
for ( TQStringList : : Iterator it = Options . begin ( ) ; it ! = Options . end ( ) ; + + it ) {
if ( ! TQFile : : encodeName ( * it ) . isEmpty ( ) ) * proc < < TQString ( TQFile : : encodeName ( * it ) ) ;
@ -539,10 +539,10 @@ badmdc=false;
///////// when process ends, update dialog infos
connect ( proc , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( txtdecryptfin ( K Process * ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStdout ( K Process * , char * , int ) ) , this , TQT_SLOT ( getOutput ( K Process * , char * , int ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStderr ( K Process * , char * , int ) ) , this , TQT_SLOT ( getCmdOutput ( K Process * , char * , int ) ) ) ;
proc - > start ( KProcess: : NotifyOnExit , K Process: : All ) ;
connect ( proc , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( txtdecryptfin ( TDE Process * ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStdout ( TDE Process * , char * , int ) ) , this , TQT_SLOT ( getOutput ( TDE Process * , char * , int ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStderr ( TDE Process * , char * , int ) ) , this , TQT_SLOT ( getCmdOutput ( TDE Process * , char * , int ) ) ) ;
proc - > start ( TDEProcess: : NotifyOnExit , TDE Process: : All ) ;
}
@ -559,15 +559,15 @@ void KgpgInterface::KgpgVerifyText(TQString text)
message = TQString ( ) ;
KProcIO * verifyproc = new KProcIO ( TQTextCodec : : codecForLocale ( ) ) ;
* verifyproc < < " gpg " < < " --no-secmem-warning " < < " --status-fd=2 " < < " --command-fd=0 " < < " --utf8-strings " < < " --verify " ;
connect ( verifyproc , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( slotverifyresult ( K Process * ) ) ) ;
connect ( verifyproc , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( slotverifyresult ( TDE Process * ) ) ) ;
connect ( verifyproc , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( slotverifyread ( KProcIO * ) ) ) ;
verifyproc - > start ( K Process: : NotifyOnExit , true ) ;
verifyproc - > start ( TDE Process: : NotifyOnExit , true ) ;
verifyproc - > writeStdin ( text ) ;
verifyproc - > closeWhenDone ( ) ;
}
void KgpgInterface : : slotverifyresult ( K Process* )
void KgpgInterface : : slotverifyresult ( TDE Process* )
{
if ( signmiss ) emit missingSignature ( signID ) ;
else {
@ -705,14 +705,14 @@ void KgpgInterface::KgpgSignFile(TQString keyID,KURL srcUrl,TQStringList Options
* proc < < " --output " < < TQString ( TQFile : : encodeName ( srcUrl . path ( ) + " .sig " ) ) ;
* proc < < " --detach-sig " < < TQString ( TQFile : : encodeName ( srcUrl . path ( ) ) ) ;
TQObject : : connect ( proc , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( signfin ( K Process * ) ) ) ;
TQObject : : connect ( proc , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( signfin ( TDE Process * ) ) ) ;
TQObject : : connect ( proc , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( readsignprocess ( KProcIO * ) ) ) ;
proc - > start ( K Process: : NotifyOnExit , true ) ;
proc - > start ( TDE Process: : NotifyOnExit , true ) ;
}
void KgpgInterface : : signfin ( K Process * )
void KgpgInterface : : signfin ( TDE Process * )
{
if ( message . find ( " SIG_CREATED " ) ! = - 1 )
KMessageBox : : information ( 0 , i18n ( " The signature file %1 was successfully created. " ) . arg ( file . fileName ( ) ) ) ;
@ -778,9 +778,9 @@ void KgpgInterface::KgpgVerifyFile(KURL sigUrl,KURL srcUrl)
* proc < < TQString ( TQFile : : encodeName ( srcUrl . path ( ) ) ) ;
* proc < < TQString ( TQFile : : encodeName ( sigUrl . path ( ) ) ) ;
TQObject : : connect ( proc , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( verifyfin ( K Process * ) ) ) ;
TQObject : : connect ( proc , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( verifyfin ( TDE Process * ) ) ) ;
TQObject : : connect ( proc , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( readprocess ( KProcIO * ) ) ) ;
proc - > start ( K Process: : NotifyOnExit , true ) ;
proc - > start ( TDE Process: : NotifyOnExit , true ) ;
}
@ -819,7 +819,7 @@ TQString required;
}
void KgpgInterface : : verifyfin ( K Process * )
void KgpgInterface : : verifyfin ( TDE Process * )
{
if ( ! signmiss ) {
if ( signID . isEmpty ( ) ) signID = i18n ( " No signature found. " ) ;
@ -860,8 +860,8 @@ void KgpgInterface::KgpgSignKey(TQString keyID,TQString signKeyID,TQString signK
if ( local ) * conprocess < < " lsign " ;
else * conprocess < < " sign " ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( sigprocess ( KProcIO * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( signover ( K Process * ) ) ) ;
conprocess - > start ( K Process: : NotifyOnExit , true ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( signover ( TDE Process * ) ) ) ;
conprocess - > start ( TDE Process: : NotifyOnExit , true ) ;
}
void KgpgInterface : : sigprocess ( KProcIO * p )
@ -941,7 +941,7 @@ void KgpgInterface::sigprocess(KProcIO *p)
}
void KgpgInterface : : signover ( K Process * )
void KgpgInterface : : signover ( TDE Process * )
{
if ( signSuccess > 1 )
emit signatureFinished ( signSuccess ) ; //// signature successful or bad passphrase
@ -957,8 +957,8 @@ void KgpgInterface::signover(KProcess *)
void KgpgInterface : : openSignConsole ( )
{
K Process conprocess ;
KConfig * config = K Global: : config ( ) ;
TDE Process conprocess ;
KConfig * config = TDE Global: : config ( ) ;
config - > setGroup ( " General " ) ;
conprocess < < config - > readPathEntry ( " TerminalApplication " , " konsole " ) ;
conprocess < < " -e " < < " gpg " ;
@ -967,7 +967,7 @@ void KgpgInterface::openSignConsole()
conprocess < < " --sign-key " < < konsKeyID ;
else
conprocess < < " --lsign-key " < < konsKeyID ;
conprocess . start ( K Process: : Block ) ;
conprocess . start ( TDE Process: : Block ) ;
emit signatureFinished ( 3 ) ;
}
@ -1008,8 +1008,8 @@ void KgpgInterface::KgpgDelSignature(TQString keyID,TQString signKeyID)
* conprocess < < " gpg " < < " --no-secmem-warning " < < " --no-tty " < < " --utf8-strings " < < " --command-fd=0 " < < " --status-fd=2 " ;
* conprocess < < " --edit-key " < < keyID < < " uid 1 " < < " delsig " ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( delsigprocess ( KProcIO * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( delsignover ( K Process * ) ) ) ;
conprocess - > start ( K Process: : NotifyOnExit , true ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( delsignover ( TDE Process * ) ) ) ;
conprocess - > start ( TDE Process: : NotifyOnExit , true ) ;
}
@ -1042,7 +1042,7 @@ void KgpgInterface::delsigprocess(KProcIO *p)
}
}
void KgpgInterface : : delsignover ( K Process * )
void KgpgInterface : : delsignover ( TDE Process * )
{
emit delsigfinished ( deleteSuccess ) ;
}
@ -1085,8 +1085,8 @@ void KgpgInterface::KgpgKeyExpire(TQString keyID,TQDate date,bool unlimited)
* conprocess < < " gpg " < < " --no-secmem-warning " < < " --no-tty " < < " --command-fd=0 " < < " --status-fd=2 " < < " --utf8-strings " ;
* conprocess < < " --edit-key " < < keyID < < " expire " ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( expprocess ( KProcIO * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( expover ( K Process * ) ) ) ;
conprocess - > start ( KProcess: : NotifyOnExit , K Process: : AllOutput ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( expover ( TDE Process * ) ) ) ;
conprocess - > start ( TDEProcess: : NotifyOnExit , TDE Process: : AllOutput ) ;
}
@ -1150,7 +1150,7 @@ void KgpgInterface::expprocess(KProcIO *p)
void KgpgInterface : : expover ( K Process * )
void KgpgInterface : : expover ( TDE Process * )
{
if ( ( expSuccess = = 3 ) | | ( expSuccess = = 2 ) )
emit expirationFinished ( expSuccess ) ; //// signature successful or bad passphrase
@ -1179,8 +1179,8 @@ void KgpgInterface::KgpgTrustExpire(TQString keyID,int keyTrust)
* conprocess < < " gpg " < < " --no-secmem-warning " < < " --no-tty " < < " --command-fd=0 " < < " --status-fd=2 " < < " --utf8-strings " ;
* conprocess < < " --edit-key " < < keyID < < " trust " ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( trustprocess ( KProcIO * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( trustover ( K Process * ) ) ) ;
conprocess - > start ( K Process: : NotifyOnExit , true ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( trustover ( TDE Process * ) ) ) ;
conprocess - > start ( TDE Process: : NotifyOnExit , true ) ;
}
@ -1217,7 +1217,7 @@ void KgpgInterface::trustprocess(KProcIO *p)
void KgpgInterface : : trustover ( K Process * )
void KgpgInterface : : trustover ( TDE Process * )
{
emit trustfinished ( ) ;
}
@ -1235,8 +1235,8 @@ void KgpgInterface::KgpgChangePass(TQString keyID)
* conprocess < < " gpg " < < " --no-secmem-warning " < < " --no-tty " < < " --no-use-agent " < < " --command-fd=0 " < < " --status-fd=2 " < < " --utf8-strings " ;
* conprocess < < " --edit-key " < < keyID < < " passwd " ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( passprocess ( KProcIO * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( passover ( K Process * ) ) ) ;
conprocess - > start ( KProcess: : NotifyOnExit , K Process: : AllOutput ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( passover ( TDE Process * ) ) ) ;
conprocess - > start ( TDEProcess: : NotifyOnExit , TDE Process: : AllOutput ) ;
}
@ -1318,7 +1318,7 @@ void KgpgInterface::passprocess(KProcIO *p)
void KgpgInterface : : passover ( K Process * )
void KgpgInterface : : passover ( TDE Process * )
{
//emit trustfinished();
}
@ -1339,7 +1339,7 @@ TQString KgpgInterface::getKey(TQStringList IDs, bool attributes)
for ( TQStringList : : Iterator it = IDs . begin ( ) ; it ! = IDs . end ( ) ; + + it )
* proc < < * it ;
TQObject : : connect ( proc , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( slotReadKey ( KProcIO * ) ) ) ;
proc - > start ( K Process: : Block , false ) ;
proc - > start ( TDE Process: : Block , false ) ;
return keyString ;
}
@ -1364,9 +1364,9 @@ void KgpgInterface::importKeyURL(KURL url)
* conprocess < < " gpg " < < " --no-tty " < < " --no-secmem-warning " < < " --status-fd=2 " < < " --utf8-strings " < < " --import " ;
* conprocess < < " --allow-secret-key-import " ;
* conprocess < < tempKeyFile ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( importURLover ( K Process * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( importURLover ( TDE Process * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( importprocess ( KProcIO * ) ) ) ;
conprocess - > start ( K Process: : NotifyOnExit , true ) ;
conprocess - > start ( TDE Process: : NotifyOnExit , true ) ;
}
}
@ -1377,14 +1377,14 @@ void KgpgInterface::importKey(TQString keystr)
KProcIO * conprocess = new KProcIO ( TQTextCodec : : codecForLocale ( ) ) ;
* conprocess < < " gpg " < < " --no-tty " < < " --no-secmem-warning " < < " --status-fd=2 " < < " --import " ;
* conprocess < < " --allow-secret-key-import " ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( importover ( K Process * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( importover ( TDE Process * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( importprocess ( KProcIO * ) ) ) ;
conprocess - > start ( K Process: : NotifyOnExit , true ) ;
conprocess - > start ( TDE Process: : NotifyOnExit , true ) ;
conprocess - > writeStdin ( keystr , true ) ;
conprocess - > closeWhenDone ( ) ;
}
void KgpgInterface : : importover ( K Process * )
void KgpgInterface : : importover ( TDE Process * )
{
TQStringList importedKeysIds ;
TQStringList messageList ;
@ -1448,7 +1448,7 @@ kdDebug(2100)<<"Importing is over"<<endl;
( void ) new KDetailedInfo ( 0 , " import_result " , resultMessage , message , importedKeys ) ;
}
void KgpgInterface : : importURLover ( K Process * p )
void KgpgInterface : : importURLover ( TDE Process * p )
{
KIO : : NetAccess : : removeTempFile ( tempKeyFile ) ;
importover ( p ) ;
@ -1480,12 +1480,12 @@ addSuccess=true;
KProcIO * conprocess = new KProcIO ( TQTextCodec : : codecForLocale ( ) ) ;
* conprocess < < " gpg " < < " --no-tty " < < " --status-fd=2 " < < " --command-fd=0 " < < " --utf8-strings " ;
* conprocess < < " --edit-key " < < keyID < < " adduid " ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( adduidover ( K Process * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( adduidover ( TDE Process * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( adduidprocess ( KProcIO * ) ) ) ;
conprocess - > start ( K Process: : NotifyOnExit , true ) ;
conprocess - > start ( TDE Process: : NotifyOnExit , true ) ;
}
void KgpgInterface : : adduidover ( K Process * )
void KgpgInterface : : adduidover ( TDE Process * )
{
if ( addSuccess ) emit addUidFinished ( ) ;
else emit addUidError ( output ) ;
@ -1564,9 +1564,9 @@ userIDs=keyID;
KProcIO * conprocess = new KProcIO ( TQTextCodec : : codecForLocale ( ) ) ;
* conprocess < < " gpg " < < " --no-tty " < < " --status-fd=2 " < < " --command-fd=0 " ;
* conprocess < < " --with-colon " < < " --list-keys " < < keyID ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( photoreadover ( K Process * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( photoreadover ( TDE Process * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( photoreadprocess ( KProcIO * ) ) ) ;
conprocess - > start ( K Process: : NotifyOnExit , true ) ;
conprocess - > start ( TDE Process: : NotifyOnExit , true ) ;
}
void KgpgInterface : : photoreadprocess ( KProcIO * p )
@ -1579,7 +1579,7 @@ void KgpgInterface::photoreadprocess(KProcIO *p)
}
void KgpgInterface : : photoreadover ( K Process * )
void KgpgInterface : : photoreadover ( TDE Process * )
{
for ( int i = 1 ; i < photoCount + 1 ; i + + )
if ( isPhotoId ( i ) ) photoList + = TQString : : number ( i ) ;
@ -1596,7 +1596,7 @@ KTempFile *kgpginfotmp=new KTempFile();
KProcIO * conprocess = new KProcIO ( TQTextCodec : : codecForLocale ( ) ) ;
* conprocess < < " gpg " < < " --no-tty " < < " --status-fd=2 " < < " --command-fd=0 " < < " --utf8-strings " ;
* conprocess < < " --photo-viewer " < < TQString ( TQFile : : encodeName ( pgpgOutput ) ) < < " --edit-key " < < userIDs < < " uid " < < TQString : : number ( uid ) < < " showphoto " ;
conprocess - > start ( K Process: : Block ) ;
conprocess - > start ( TDE Process: : Block ) ;
if ( kgpginfotmp - > file ( ) - > size ( ) > 0 )
{
kgpginfotmp - > unlink ( ) ;
@ -1613,12 +1613,12 @@ void KgpgInterface::KgpgDeletePhoto(TQString keyID,TQString uid)
KProcIO * conprocess = new KProcIO ( TQTextCodec : : codecForLocale ( ) ) ;
* conprocess < < " gpg " < < " --no-tty " < < " --status-fd=2 " < < " --command-fd=0 " < < " --utf8-strings " ;
* conprocess < < " --edit-key " < < keyID < < " uid " < < uid < < " deluid " ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( delphotoover ( K Process * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( delphotoover ( TDE Process * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( delphotoprocess ( KProcIO * ) ) ) ;
conprocess - > start ( K Process: : NotifyOnExit , true ) ;
conprocess - > start ( TDE Process: : NotifyOnExit , true ) ;
}
void KgpgInterface : : delphotoover ( K Process * )
void KgpgInterface : : delphotoover ( TDE Process * )
{
if ( delSuccess ) emit delPhotoFinished ( ) ;
else emit delPhotoError ( output ) ;
@ -1676,12 +1676,12 @@ addSuccess=true;
KProcIO * conprocess = new KProcIO ( TQTextCodec : : codecForLocale ( ) ) ;
* conprocess < < " gpg " < < " --no-tty " < < " --status-fd=2 " < < " --command-fd=0 " < < " --utf8-strings " ;
* conprocess < < " --edit-key " < < keyID < < " addphoto " ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( addphotoover ( K Process * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( addphotoover ( TDE Process * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( addphotoprocess ( KProcIO * ) ) ) ;
conprocess - > start ( K Process: : NotifyOnExit , true ) ;
conprocess - > start ( TDE Process: : NotifyOnExit , true ) ;
}
void KgpgInterface : : addphotoover ( K Process * )
void KgpgInterface : : addphotoover ( TDE Process * )
{
if ( addSuccess ) emit addPhotoFinished ( ) ;
else emit addPhotoError ( output ) ;
@ -1757,12 +1757,12 @@ void KgpgInterface::KgpgRevokeKey(TQString keyID,TQString revokeUrl,int reason,T
if ( ! revokeUrl . isEmpty ( ) )
* conprocess < < " -o " < < revokeUrl ;
* conprocess < < " --gen-revoke " < < keyID ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( K Process * ) ) , this , TQT_SLOT ( revokeover ( K Process * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( processExited ( TDE Process * ) ) , this , TQT_SLOT ( revokeover ( TDE Process * ) ) ) ;
TQObject : : connect ( conprocess , TQT_SIGNAL ( readReady ( KProcIO * ) ) , this , TQT_SLOT ( revokeprocess ( KProcIO * ) ) ) ;
conprocess - > start ( K Process: : NotifyOnExit , true ) ;
conprocess - > start ( TDE Process: : NotifyOnExit , true ) ;
}
void KgpgInterface : : revokeover ( K Process * )
void KgpgInterface : : revokeover ( TDE Process * )
{
if ( ! revokeSuccess )
KMessageBox : : detailedSorry ( 0 , i18n ( " Creation of the revocation certificate failed... " ) , output ) ;