@ -144,8 +144,8 @@ bool Utils::tunDevExists()
bool Utils : : createTunDev ( )
bool Utils : : createTunDev ( )
{
{
createProcess = new TQProcess ( this ) ;
createProcess = new TQProcess ( this ) ;
connect ( createProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutCreateTunDev ( ) ) ) ;
connect ( createProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutCreateTunDev ( ) ) ) ;
connect ( createProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrCreateTunDev ( ) ) ) ;
connect ( createProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrCreateTunDev ( ) ) ) ;
// step one: create directory
// step one: create directory
if ( ! TQDir ( " /dev/net " ) . exists ( ) )
if ( ! TQDir ( " /dev/net " ) . exists ( ) )
@ -156,8 +156,8 @@ bool Utils::createTunDev()
if ( ! createProcess - > start ( env ) ) {
if ( ! createProcess - > start ( env ) ) {
disconnect ( createProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutCreateTunDev ( ) ) ) ;
disconnect ( createProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutCreateTunDev ( ) ) ) ;
disconnect ( createProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrCreateTunDev ( ) ) ) ;
disconnect ( createProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrCreateTunDev ( ) ) ) ;
delete createProcess ;
delete createProcess ;
createProcess = 0L ;
createProcess = 0L ;
kdError ( ) < < " Unable to create tunnel device file! " < < endl ;
kdError ( ) < < " Unable to create tunnel device file! " < < endl ;
@ -181,8 +181,8 @@ bool Utils::createTunDev()
if ( ! createProcess - > start ( env ) )
if ( ! createProcess - > start ( env ) )
{
{
disconnect ( createProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutCreateTunDev ( ) ) ) ;
disconnect ( createProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutCreateTunDev ( ) ) ) ;
disconnect ( createProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrCreateTunDev ( ) ) ) ;
disconnect ( createProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrCreateTunDev ( ) ) ) ;
delete createProcess ;
delete createProcess ;
createProcess = 0L ;
createProcess = 0L ;
kdError ( ) < < " Unable to create tunnel device file! " < < endl ;
kdError ( ) < < " Unable to create tunnel device file! " < < endl ;
@ -194,8 +194,8 @@ bool Utils::createTunDev()
{
{
sleep ( 1 ) ;
sleep ( 1 ) ;
}
}
disconnect ( createProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutCreateTunDev ( ) ) ) ;
disconnect ( createProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutCreateTunDev ( ) ) ) ;
disconnect ( createProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrCreateTunDev ( ) ) ) ;
disconnect ( createProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrCreateTunDev ( ) ) ) ;
delete createProcess ;
delete createProcess ;
createProcess = 0L ;
createProcess = 0L ;
return true ;
return true ;
@ -212,11 +212,11 @@ bool Utils::loadKernelModule( TQString Name, TQApplication *app )
ModprobeProcess - > addArgument ( " /sbin/modprobe " ) ;
ModprobeProcess - > addArgument ( " /sbin/modprobe " ) ;
ModprobeProcess - > addArgument ( Name ) ;
ModprobeProcess - > addArgument ( Name ) ;
connect ( ModprobeProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutLoadKernelModule ( ) ) ) ;
connect ( ModprobeProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutLoadKernelModule ( ) ) ) ;
connect ( ModprobeProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrLoadKernelModule ( ) ) ) ;
connect ( ModprobeProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrLoadKernelModule ( ) ) ) ;
if ( ! ModprobeProcess - > start ( env ) ) {
if ( ! ModprobeProcess - > start ( env ) ) {
disconnect ( ModprobeProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutLoadKernelModule ( ) ) ) ;
disconnect ( ModprobeProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutLoadKernelModule ( ) ) ) ;
disconnect ( ModprobeProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrLoadKernelModule ( ) ) ) ;
disconnect ( ModprobeProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrLoadKernelModule ( ) ) ) ;
delete ModprobeProcess ;
delete ModprobeProcess ;
ModprobeProcess = 0L ;
ModprobeProcess = 0L ;
return modprobeSuccess ;
return modprobeSuccess ;
@ -231,8 +231,8 @@ bool Utils::loadKernelModule( TQString Name, TQApplication *app )
config - > appPointer - > processEvents ( ) ;
config - > appPointer - > processEvents ( ) ;
usleep ( 250 ) ;
usleep ( 250 ) ;
}
}
disconnect ( ModprobeProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutLoadKernelModule ( ) ) ) ;
disconnect ( ModprobeProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutLoadKernelModule ( ) ) ) ;
disconnect ( ModprobeProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrLoadKernelModule ( ) ) ) ;
disconnect ( ModprobeProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrLoadKernelModule ( ) ) ) ;
delete ModprobeProcess ;
delete ModprobeProcess ;
ModprobeProcess = 0L ;
ModprobeProcess = 0L ;
return modprobeSuccess ;
return modprobeSuccess ;
@ -256,11 +256,11 @@ bool Utils::unloadKernelModule( TQString Name, TQApplication *app , bool force)
ModprobeProcess - > addArgument ( Name ) ;
ModprobeProcess - > addArgument ( Name ) ;
connect ( ModprobeProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutLoadKernelModule ( ) ) ) ;
connect ( ModprobeProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutLoadKernelModule ( ) ) ) ;
connect ( ModprobeProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrLoadKernelModule ( ) ) ) ;
connect ( ModprobeProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrLoadKernelModule ( ) ) ) ;
if ( ! ModprobeProcess - > start ( env ) ) {
if ( ! ModprobeProcess - > start ( env ) ) {
disconnect ( ModprobeProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutLoadKernelModule ( ) ) ) ;
disconnect ( ModprobeProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutLoadKernelModule ( ) ) ) ;
disconnect ( ModprobeProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrLoadKernelModule ( ) ) ) ;
disconnect ( ModprobeProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrLoadKernelModule ( ) ) ) ;
delete ModprobeProcess ;
delete ModprobeProcess ;
ModprobeProcess = 0L ;
ModprobeProcess = 0L ;
return modprobeSuccess ;
return modprobeSuccess ;
@ -275,8 +275,8 @@ bool Utils::unloadKernelModule( TQString Name, TQApplication *app , bool force)
config - > appPointer - > processEvents ( ) ;
config - > appPointer - > processEvents ( ) ;
usleep ( 250 ) ;
usleep ( 250 ) ;
}
}
disconnect ( ModprobeProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutLoadKernelModule ( ) ) ) ;
disconnect ( ModprobeProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutLoadKernelModule ( ) ) ) ;
disconnect ( ModprobeProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrLoadKernelModule ( ) ) ) ;
disconnect ( ModprobeProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrLoadKernelModule ( ) ) ) ;
delete ModprobeProcess ;
delete ModprobeProcess ;
ModprobeProcess = 0L ;
ModprobeProcess = 0L ;
return modprobeSuccess ;
return modprobeSuccess ;
@ -514,13 +514,13 @@ TQStringList Utils::getOpenvpnCiphers()
OpenvpnCiphersProcess - > addArgument ( pathToOpenvpn ) ;
OpenvpnCiphersProcess - > addArgument ( pathToOpenvpn ) ;
OpenvpnCiphersProcess - > addArgument ( " --show-ciphers " ) ;
OpenvpnCiphersProcess - > addArgument ( " --show-ciphers " ) ;
connect ( OpenvpnCiphersProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutRetriveOpenvpnCiphers ( ) ) ) ;
connect ( OpenvpnCiphersProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutRetriveOpenvpnCiphers ( ) ) ) ;
connect ( OpenvpnCiphersProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrRetriveOpenvpnCiphers ( ) ) ) ;
connect ( OpenvpnCiphersProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrRetriveOpenvpnCiphers ( ) ) ) ;
if ( ! OpenvpnCiphersProcess - > start ( env ) ) {
if ( ! OpenvpnCiphersProcess - > start ( env ) ) {
disconnect ( OpenvpnCiphersProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutRetriveOpenvpnCiphers ( ) ) ) ;
disconnect ( OpenvpnCiphersProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutRetriveOpenvpnCiphers ( ) ) ) ;
disconnect ( OpenvpnCiphersProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrRetriveOpenvpnCiphers ( ) ) ) ;
disconnect ( OpenvpnCiphersProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrRetriveOpenvpnCiphers ( ) ) ) ;
delete OpenvpnCiphersProcess ;
delete OpenvpnCiphersProcess ;
OpenvpnCiphersProcess = 0L ;
OpenvpnCiphersProcess = 0L ;
kdError ( ) < < " Unable to fetch openvpn ciphers! " < < endl ;
kdError ( ) < < " Unable to fetch openvpn ciphers! " < < endl ;
@ -533,8 +533,8 @@ TQStringList Utils::getOpenvpnCiphers()
config - > appPointer - > processEvents ( ) ;
config - > appPointer - > processEvents ( ) ;
sleep ( 1 ) ;
sleep ( 1 ) ;
}
}
disconnect ( OpenvpnCiphersProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutRetriveOpenvpnCiphers ( ) ) ) ;
disconnect ( OpenvpnCiphersProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutRetriveOpenvpnCiphers ( ) ) ) ;
disconnect ( OpenvpnCiphersProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrRetriveOpenvpnCiphers ( ) ) ) ;
disconnect ( OpenvpnCiphersProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrRetriveOpenvpnCiphers ( ) ) ) ;
delete OpenvpnCiphersProcess ;
delete OpenvpnCiphersProcess ;
OpenvpnCiphersProcess = 0L ;
OpenvpnCiphersProcess = 0L ;
}
}
@ -565,12 +565,12 @@ Utils::IpsecAlgos Utils::getIpsecAlgos()
IpsecAlgosProcess - > addArgument ( " auto " ) ;
IpsecAlgosProcess - > addArgument ( " auto " ) ;
IpsecAlgosProcess - > addArgument ( " --status " ) ;
IpsecAlgosProcess - > addArgument ( " --status " ) ;
connect ( IpsecAlgosProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutRetriveIpsecAlgos ( ) ) ) ;
connect ( IpsecAlgosProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutRetriveIpsecAlgos ( ) ) ) ;
connect ( IpsecAlgosProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrRetriveIpsecAlgos ( ) ) ) ;
connect ( IpsecAlgosProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrRetriveIpsecAlgos ( ) ) ) ;
if ( ! IpsecAlgosProcess - > start ( env ) ) {
if ( ! IpsecAlgosProcess - > start ( env ) ) {
disconnect ( IpsecAlgosProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutRetriveIpsecAlgos ( ) ) ) ;
disconnect ( IpsecAlgosProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutRetriveIpsecAlgos ( ) ) ) ;
disconnect ( IpsecAlgosProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrRetriveIpsecAlgos ( ) ) ) ;
disconnect ( IpsecAlgosProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrRetriveIpsecAlgos ( ) ) ) ;
delete IpsecAlgosProcess ;
delete IpsecAlgosProcess ;
IpsecAlgosProcess = 0L ;
IpsecAlgosProcess = 0L ;
kdError ( ) < < " Unable to fetch ipsec algos! " < < endl ;
kdError ( ) < < " Unable to fetch ipsec algos! " < < endl ;
@ -583,8 +583,8 @@ Utils::IpsecAlgos Utils::getIpsecAlgos()
config - > appPointer - > processEvents ( ) ;
config - > appPointer - > processEvents ( ) ;
sleep ( 1 ) ;
sleep ( 1 ) ;
}
}
disconnect ( IpsecAlgosProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutRetriveIpsecAlgos ( ) ) ) ;
disconnect ( IpsecAlgosProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutRetriveIpsecAlgos ( ) ) ) ;
disconnect ( IpsecAlgosProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrRetriveIpsecAlgos ( ) ) ) ;
disconnect ( IpsecAlgosProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrRetriveIpsecAlgos ( ) ) ) ;
delete IpsecAlgosProcess ;
delete IpsecAlgosProcess ;
IpsecAlgosProcess = 0L ;
IpsecAlgosProcess = 0L ;
}
}
@ -743,8 +743,8 @@ Utils::PppdCapabilities Utils::checkPppdCapabilities()
TestPppdProcess - > setCommunication ( TQProcess : : Stdin | TQProcess : : Stdout | TQProcess : : Stderr | TQProcess : : DupStderr ) ;
TestPppdProcess - > setCommunication ( TQProcess : : Stdin | TQProcess : : Stdout | TQProcess : : Stderr | TQProcess : : DupStderr ) ;
TestPppdProcess - > closeStdin ( ) ;
TestPppdProcess - > closeStdin ( ) ;
connect ( TestPppdProcess , TQ T _SIGNAL ( readyReadStdout ( ) ) , this , TQ T _SLOT ( readPppdtestProcessOutput ( ) ) ) ;
connect ( TestPppdProcess , TQ _SIGNAL ( readyReadStdout ( ) ) , this , TQ _SLOT ( readPppdtestProcessOutput ( ) ) ) ;
// connect ( TestPppdProcess, TQ T _SIGNAL ( readyReadStderr() ), this, TQT _SLOT ( readPppdtestProcessOutput() ) );
// connect ( TestPppdProcess, TQ _SIGNAL ( readyReadStderr() ), this, TQ_SLOT ( readPppdtestProcessOutput() ) );
if ( ! TestPppdProcess - > start ( env ) )
if ( ! TestPppdProcess - > start ( env ) )
{
{
@ -772,8 +772,8 @@ Utils::PppdCapabilities Utils::checkPppdCapabilities()
config - > appendLogEntry ( " pppdHasRequireMppeSupport: false " , config - > debug ) ;
config - > appendLogEntry ( " pppdHasRequireMppeSupport: false " , config - > debug ) ;
}
}
disconnect ( TestPppdProcess , TQ T _SIGNAL ( readyReadStdout ( ) ) , this , TQ T _SLOT ( readPppdtestProcessOutput ( ) ) ) ;
disconnect ( TestPppdProcess , TQ _SIGNAL ( readyReadStdout ( ) ) , this , TQ _SLOT ( readPppdtestProcessOutput ( ) ) ) ;
// disconnect ( TestPppdProcess, TQ T _SIGNAL ( readyReadStderr() ), this, TQT _SLOT ( readPppdtestProcessOutput() ) );
// disconnect ( TestPppdProcess, TQ _SIGNAL ( readyReadStderr() ), this, TQ_SLOT ( readPppdtestProcessOutput() ) );
delete TestPppdProcess ;
delete TestPppdProcess ;
TestPppdProcess = 0L ;
TestPppdProcess = 0L ;
@ -790,8 +790,8 @@ Utils::PppdCapabilities Utils::checkPppdCapabilities()
TestPppdProcess - > setCommunication ( TQProcess : : Stdin | TQProcess : : Stdout | TQProcess : : Stderr | TQProcess : : DupStderr ) ;
TestPppdProcess - > setCommunication ( TQProcess : : Stdin | TQProcess : : Stdout | TQProcess : : Stderr | TQProcess : : DupStderr ) ;
TestPppdProcess - > closeStdin ( ) ;
TestPppdProcess - > closeStdin ( ) ;
connect ( TestPppdProcess , TQ T _SIGNAL ( readyReadStdout ( ) ) , this , TQ T _SLOT ( readPppdtestProcessOutput ( ) ) ) ;
connect ( TestPppdProcess , TQ _SIGNAL ( readyReadStdout ( ) ) , this , TQ _SLOT ( readPppdtestProcessOutput ( ) ) ) ;
// connect ( TestPppdProcess, TQ T _SIGNAL ( readyReadStderr() ), this, TQT _SLOT ( readPppdtestProcessOutput() ) );
// connect ( TestPppdProcess, TQ _SIGNAL ( readyReadStderr() ), this, TQ_SLOT ( readPppdtestProcessOutput() ) );
if ( ! TestPppdProcess - > start ( env ) )
if ( ! TestPppdProcess - > start ( env ) )
{
{
@ -826,8 +826,8 @@ Utils::PppdCapabilities Utils::checkPppdCapabilities()
config - > appendLogEntry ( " PppdMppeRequired: false " , config - > debug ) ;
config - > appendLogEntry ( " PppdMppeRequired: false " , config - > debug ) ;
}
}
disconnect ( TestPppdProcess , TQ T _SIGNAL ( readyReadStdout ( ) ) , this , TQ T _SLOT ( readPppdtestProcessOutput ( ) ) ) ;
disconnect ( TestPppdProcess , TQ _SIGNAL ( readyReadStdout ( ) ) , this , TQ _SLOT ( readPppdtestProcessOutput ( ) ) ) ;
// disconnect ( TestPppdProcess, TQ T _SIGNAL ( readyReadStderr() ), this, TQT _SLOT ( readPppdtestProcessOutput() ) );
// disconnect ( TestPppdProcess, TQ _SIGNAL ( readyReadStderr() ), this, TQ_SLOT ( readPppdtestProcessOutput() ) );
delete TestPppdProcess ;
delete TestPppdProcess ;
testPppdMppeRequired = false ;
testPppdMppeRequired = false ;
@ -858,8 +858,8 @@ Utils::PppdCapabilities Utils::checkPppdCapabilities()
TestPppdProcess - > setCommunication ( TQProcess : : Stdin | TQProcess : : Stdout | TQProcess : : Stderr | TQProcess : : DupStderr ) ;
TestPppdProcess - > setCommunication ( TQProcess : : Stdin | TQProcess : : Stdout | TQProcess : : Stderr | TQProcess : : DupStderr ) ;
TestPppdProcess - > closeStdin ( ) ;
TestPppdProcess - > closeStdin ( ) ;
connect ( TestPppdProcess , TQ T _SIGNAL ( readyReadStdout ( ) ) , this , TQ T _SLOT ( readPppdtestProcessOutput ( ) ) ) ;
connect ( TestPppdProcess , TQ _SIGNAL ( readyReadStdout ( ) ) , this , TQ _SLOT ( readPppdtestProcessOutput ( ) ) ) ;
connect ( TestPppdProcess , TQ T _SIGNAL ( readyReadStderr ( ) ) , this , TQ T _SLOT ( readPppdtestProcessOutput ( ) ) ) ;
connect ( TestPppdProcess , TQ _SIGNAL ( readyReadStderr ( ) ) , this , TQ _SLOT ( readPppdtestProcessOutput ( ) ) ) ;
if ( ! TestPppdProcess - > start ( env ) )
if ( ! TestPppdProcess - > start ( env ) )
@ -887,8 +887,8 @@ Utils::PppdCapabilities Utils::checkPppdCapabilities()
config - > appendLogEntry ( i18n ( " Test support of replacedefaultroute pppd: %1 " ) . arg ( i18n ( " failed " ) ) , config - > debug ) ;
config - > appendLogEntry ( i18n ( " Test support of replacedefaultroute pppd: %1 " ) . arg ( i18n ( " failed " ) ) , config - > debug ) ;
}
}
}
}
disconnect ( TestPppdProcess , TQ T _SIGNAL ( readyReadStdout ( ) ) , this , TQ T _SLOT ( readPppdtestProcessOutput ( ) ) ) ;
disconnect ( TestPppdProcess , TQ _SIGNAL ( readyReadStdout ( ) ) , this , TQ _SLOT ( readPppdtestProcessOutput ( ) ) ) ;
disconnect ( TestPppdProcess , TQ T _SIGNAL ( readyReadStderr ( ) ) , this , TQ T _SLOT ( readPppdtestProcessOutput ( ) ) ) ;
disconnect ( TestPppdProcess , TQ _SIGNAL ( readyReadStderr ( ) ) , this , TQ _SLOT ( readPppdtestProcessOutput ( ) ) ) ;
delete TestPppdProcess ;
delete TestPppdProcess ;
TestPppdProcess = 0L ;
TestPppdProcess = 0L ;
@ -912,12 +912,12 @@ TQStringList Utils::getOpenvpnDigests()
OpenvpnDigestProcess - > addArgument ( pathToOpenvpn ) ;
OpenvpnDigestProcess - > addArgument ( pathToOpenvpn ) ;
OpenvpnDigestProcess - > addArgument ( " --show-digests " ) ;
OpenvpnDigestProcess - > addArgument ( " --show-digests " ) ;
connect ( OpenvpnDigestProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutRetriveOpenvpnDigests ( ) ) ) ;
connect ( OpenvpnDigestProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutRetriveOpenvpnDigests ( ) ) ) ;
connect ( OpenvpnDigestProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrRetriveOpenvpnDigests ( ) ) ) ;
connect ( OpenvpnDigestProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrRetriveOpenvpnDigests ( ) ) ) ;
if ( ! OpenvpnDigestProcess - > start ( env ) ) {
if ( ! OpenvpnDigestProcess - > start ( env ) ) {
disconnect ( OpenvpnDigestProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutRetriveOpenvpnDigests ( ) ) ) ;
disconnect ( OpenvpnDigestProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutRetriveOpenvpnDigests ( ) ) ) ;
disconnect ( OpenvpnDigestProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrRetriveOpenvpnDigests ( ) ) ) ;
disconnect ( OpenvpnDigestProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrRetriveOpenvpnDigests ( ) ) ) ;
delete OpenvpnDigestProcess ;
delete OpenvpnDigestProcess ;
OpenvpnDigestProcess = 0L ;
OpenvpnDigestProcess = 0L ;
kdError ( ) < < " Unable to fetch openvpn digests! " < < endl ;
kdError ( ) < < " Unable to fetch openvpn digests! " < < endl ;
@ -938,8 +938,8 @@ TQStringList Utils::getOpenvpnDigests()
* it = TQString ( * it ) . section ( ' ' , 0 , 0 ) ;
* it = TQString ( * it ) . section ( ' ' , 0 , 0 ) ;
}
}
disconnect ( OpenvpnDigestProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutRetriveOpenvpnDigests ( ) ) ) ;
disconnect ( OpenvpnDigestProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutRetriveOpenvpnDigests ( ) ) ) ;
disconnect ( OpenvpnDigestProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrRetriveOpenvpnDigests ( ) ) ) ;
disconnect ( OpenvpnDigestProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrRetriveOpenvpnDigests ( ) ) ) ;
delete OpenvpnDigestProcess ;
delete OpenvpnDigestProcess ;
OpenvpnDigestProcess = 0L ;
OpenvpnDigestProcess = 0L ;
return OpenvpnDigests ;
return OpenvpnDigests ;
@ -1027,12 +1027,12 @@ TQString Utils::getNameAndPidOfProgramListen( int port )
NameAndPidOfProgramListenProcess - > addArgument ( config - > pathToNetstat ) ;
NameAndPidOfProgramListenProcess - > addArgument ( config - > pathToNetstat ) ;
NameAndPidOfProgramListenProcess - > addArgument ( " -ntupl " ) ;
NameAndPidOfProgramListenProcess - > addArgument ( " -ntupl " ) ;
connect ( NameAndPidOfProgramListenProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutGetNameAndPidOfProgramListen ( ) ) ) ;
connect ( NameAndPidOfProgramListenProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutGetNameAndPidOfProgramListen ( ) ) ) ;
connect ( NameAndPidOfProgramListenProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrGetNameAndPidOfProgramListen ( ) ) ) ;
connect ( NameAndPidOfProgramListenProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrGetNameAndPidOfProgramListen ( ) ) ) ;
if ( ! NameAndPidOfProgramListenProcess - > start ( env ) ) {
if ( ! NameAndPidOfProgramListenProcess - > start ( env ) ) {
disconnect ( NameAndPidOfProgramListenProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutGetNameAndPidOfProgramListen ( ) ) ) ;
disconnect ( NameAndPidOfProgramListenProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutGetNameAndPidOfProgramListen ( ) ) ) ;
disconnect ( NameAndPidOfProgramListenProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrGetNameAndPidOfProgramListen ( ) ) ) ;
disconnect ( NameAndPidOfProgramListenProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrGetNameAndPidOfProgramListen ( ) ) ) ;
delete NameAndPidOfProgramListenProcess ;
delete NameAndPidOfProgramListenProcess ;
NameAndPidOfProgramListenProcess = 0L ;
NameAndPidOfProgramListenProcess = 0L ;
kdError ( ) < < " netstat fails! " < < endl ;
kdError ( ) < < " netstat fails! " < < endl ;
@ -1047,8 +1047,8 @@ TQString Utils::getNameAndPidOfProgramListen( int port )
}
}
disconnect ( NameAndPidOfProgramListenProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutGetNameAndPidOfProgramListen ( ) ) ) ;
disconnect ( NameAndPidOfProgramListenProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutGetNameAndPidOfProgramListen ( ) ) ) ;
disconnect ( NameAndPidOfProgramListenProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrGetNameAndPidOfProgramListen ( ) ) ) ;
disconnect ( NameAndPidOfProgramListenProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrGetNameAndPidOfProgramListen ( ) ) ) ;
delete NameAndPidOfProgramListenProcess ;
delete NameAndPidOfProgramListenProcess ;
NameAndPidOfProgramListenProcess = 0L ;
NameAndPidOfProgramListenProcess = 0L ;
}
}
@ -1069,10 +1069,10 @@ TQString Utils::getEmailAddressOfCert(TQString cert)
GetEmailAddressOfCertProcess - > addArgument ( cert ) ;
GetEmailAddressOfCertProcess - > addArgument ( cert ) ;
GetEmailAddressOfCertProcess - > addArgument ( " -subject " ) ;
GetEmailAddressOfCertProcess - > addArgument ( " -subject " ) ;
connect ( GetEmailAddressOfCertProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readOutGetEmailAddressOfCert ( ) ) ) ;
connect ( GetEmailAddressOfCertProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readOutGetEmailAddressOfCert ( ) ) ) ;
if ( ! GetEmailAddressOfCertProcess - > start ( env ) ) {
if ( ! GetEmailAddressOfCertProcess - > start ( env ) ) {
disconnect ( GetEmailAddressOfCertProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readOutGetEmailAddressOfCert ( ) ) ) ;
disconnect ( GetEmailAddressOfCertProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readOutGetEmailAddressOfCert ( ) ) ) ;
delete GetEmailAddressOfCertProcess ;
delete GetEmailAddressOfCertProcess ;
GetEmailAddressOfCertProcess = 0L ;
GetEmailAddressOfCertProcess = 0L ;
kdError ( ) < < " GetEmailAddressOfCertProcess " < < endl ;
kdError ( ) < < " GetEmailAddressOfCertProcess " < < endl ;
@ -1085,7 +1085,7 @@ TQString Utils::getEmailAddressOfCert(TQString cert)
config - > appPointer - > processEvents ( ) ;
config - > appPointer - > processEvents ( ) ;
sleep ( 1 ) ;
sleep ( 1 ) ;
}
}
disconnect ( GetEmailAddressOfCertProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readOutGetEmailAddressOfCert ( ) ) ) ;
disconnect ( GetEmailAddressOfCertProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readOutGetEmailAddressOfCert ( ) ) ) ;
delete GetEmailAddressOfCertProcess ;
delete GetEmailAddressOfCertProcess ;
GetEmailAddressOfCertProcess = 0L ;
GetEmailAddressOfCertProcess = 0L ;
}
}
@ -1117,11 +1117,11 @@ TQStringList Utils::getSmartcardSlots(TQString ProviderLib)
}
}
* GetSmartcardSlotsProcess < < " -L " ;
* GetSmartcardSlotsProcess < < " -L " ;
connect ( GetSmartcardSlotsProcess , TQ T _SIGNAL( receivedStdout ( TDEProcess * , char * , int ) ) , this , TQ T _SLOT( readOutGetSmartcardSlots ( ) ) ) ;
connect ( GetSmartcardSlotsProcess , TQ _SIGNAL( receivedStdout ( TDEProcess * , char * , int ) ) , this , TQ _SLOT( readOutGetSmartcardSlots ( ) ) ) ;
if ( ! GetSmartcardSlotsProcess - > start ( TDEProcess : : NotifyOnExit , TDEProcess : : All ) )
if ( ! GetSmartcardSlotsProcess - > start ( TDEProcess : : NotifyOnExit , TDEProcess : : All ) )
{
{
disconnect ( GetSmartcardSlotsProcess , TQ T _SIGNAL( receivedStdout ( TDEProcess * , char * , int ) ) , this , TQ T _SLOT( readOutGetSmartcardSlots ( ) ) ) ;
disconnect ( GetSmartcardSlotsProcess , TQ _SIGNAL( receivedStdout ( TDEProcess * , char * , int ) ) , this , TQ _SLOT( readOutGetSmartcardSlots ( ) ) ) ;
delete GetSmartcardSlotsProcess ;
delete GetSmartcardSlotsProcess ;
GetSmartcardCertsFromSlotProcess = 0L ;
GetSmartcardCertsFromSlotProcess = 0L ;
config - > appendLogEntry ( i18n ( " Unable to fetch smartcard slots via pkcs11-tool! " ) , config - > error ) ;
config - > appendLogEntry ( i18n ( " Unable to fetch smartcard slots via pkcs11-tool! " ) , config - > error ) ;
@ -1137,7 +1137,7 @@ TQStringList Utils::getSmartcardSlots(TQString ProviderLib)
usleep ( 500 ) ;
usleep ( 500 ) ;
config - > appPointer - > processEvents ( ) ;
config - > appPointer - > processEvents ( ) ;
}
}
disconnect ( GetSmartcardSlotsProcess , TQ T _SIGNAL( receivedStdout ( TDEProcess * , char * , int ) ) , this , TQ T _SLOT( readOutGetSmartcardSlots ( ) ) ) ;
disconnect ( GetSmartcardSlotsProcess , TQ _SIGNAL( receivedStdout ( TDEProcess * , char * , int ) ) , this , TQ _SLOT( readOutGetSmartcardSlots ( ) ) ) ;
delete GetSmartcardSlotsProcess ;
delete GetSmartcardSlotsProcess ;
GetSmartcardCertsFromSlotProcess = 0L ;
GetSmartcardCertsFromSlotProcess = 0L ;
if ( config - > KvpncDebugLevel > 5 )
if ( config - > KvpncDebugLevel > 5 )
@ -1184,10 +1184,10 @@ TQStringList Utils::getSmartcardCertsFromSlot(TQString slot,TQString IdType,TQSt
else
else
GetSmartcardCertsFromSlotProcess - > addArgument ( " 0 " ) ;
GetSmartcardCertsFromSlotProcess - > addArgument ( " 0 " ) ;
connect ( GetSmartcardCertsFromSlotProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readOutGetSmartcardCertsFromSlot ( ) ) ) ;
connect ( GetSmartcardCertsFromSlotProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readOutGetSmartcardCertsFromSlot ( ) ) ) ;
if ( ! GetSmartcardCertsFromSlotProcess - > start ( env ) ) {
if ( ! GetSmartcardCertsFromSlotProcess - > start ( env ) ) {
disconnect ( GetSmartcardCertsFromSlotProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readOutGetSmartcardCertsFromSlot ( ) ) ) ;
disconnect ( GetSmartcardCertsFromSlotProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readOutGetSmartcardCertsFromSlot ( ) ) ) ;
delete GetSmartcardCertsFromSlotProcess ;
delete GetSmartcardCertsFromSlotProcess ;
GetSmartcardCertsFromSlotProcess = 0L ;
GetSmartcardCertsFromSlotProcess = 0L ;
kdError ( ) < < " Unable to fetch smartcard slots via pkcs11-tool! " < < endl ;
kdError ( ) < < " Unable to fetch smartcard slots via pkcs11-tool! " < < endl ;
@ -1201,7 +1201,7 @@ TQStringList Utils::getSmartcardCertsFromSlot(TQString slot,TQString IdType,TQSt
usleep ( 500 ) ;
usleep ( 500 ) ;
config - > appPointer - > processEvents ( ) ;
config - > appPointer - > processEvents ( ) ;
}
}
disconnect ( GetSmartcardCertsFromSlotProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readOutGetSmartcardCertsFromSlot ( ) ) ) ;
disconnect ( GetSmartcardCertsFromSlotProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readOutGetSmartcardCertsFromSlot ( ) ) ) ;
delete GetSmartcardCertsFromSlotProcess ;
delete GetSmartcardCertsFromSlotProcess ;
GetSmartcardCertsFromSlotProcess = 0L ;
GetSmartcardCertsFromSlotProcess = 0L ;
}
}
@ -1240,11 +1240,11 @@ TQStringList Utils::getCertsFromCiscoCertStore(TQString type)
GetCertsFromCiscoCertStoreProcess - > addArgument ( " list " ) ;
GetCertsFromCiscoCertStoreProcess - > addArgument ( " list " ) ;
connect ( GetCertsFromCiscoCertStoreProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readOutGetCertsFromCiscoCertStoreSlot ( ) ) ) ;
connect ( GetCertsFromCiscoCertStoreProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readOutGetCertsFromCiscoCertStoreSlot ( ) ) ) ;
if ( ! GetCertsFromCiscoCertStoreProcess - > start ( env ) )
if ( ! GetCertsFromCiscoCertStoreProcess - > start ( env ) )
{
{
disconnect ( GetCertsFromCiscoCertStoreProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readOutGetCertsFromCiscoCertStoreSlot ( ) ) ) ;
disconnect ( GetCertsFromCiscoCertStoreProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readOutGetCertsFromCiscoCertStoreSlot ( ) ) ) ;
delete GetCertsFromCiscoCertStoreProcess ;
delete GetCertsFromCiscoCertStoreProcess ;
GetCertsFromCiscoCertStoreProcess = 0L ;
GetCertsFromCiscoCertStoreProcess = 0L ;
kdError ( ) < < " Unable to fetch certificates via cisco_cert_mgr! " < < endl ;
kdError ( ) < < " Unable to fetch certificates via cisco_cert_mgr! " < < endl ;
@ -1259,7 +1259,7 @@ TQStringList Utils::getCertsFromCiscoCertStore(TQString type)
if ( config - > appPointer - > hasPendingEvents ( ) )
if ( config - > appPointer - > hasPendingEvents ( ) )
config - > appPointer - > processEvents ( ) ;
config - > appPointer - > processEvents ( ) ;
}
}
disconnect ( GetCertsFromCiscoCertStoreProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readOutGetCertsFromCiscoCertStoreSlot ( ) ) ) ;
disconnect ( GetCertsFromCiscoCertStoreProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readOutGetCertsFromCiscoCertStoreSlot ( ) ) ) ;
delete GetCertsFromCiscoCertStoreProcess ;
delete GetCertsFromCiscoCertStoreProcess ;
GetCertsFromCiscoCertStoreProcess = 0L ;
GetCertsFromCiscoCertStoreProcess = 0L ;
}
}
@ -1280,10 +1280,10 @@ TQStringList Utils::getOpenvpnPkcs11Ids(TQString ProviderLib)
OpenvpnPkcs11IdsProcess - > addArgument ( ProviderLib ) ;
OpenvpnPkcs11IdsProcess - > addArgument ( ProviderLib ) ;
connect ( OpenvpnPkcs11IdsProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readOutGetOpenvpnPkcs11Ids ( ) ) ) ;
connect ( OpenvpnPkcs11IdsProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readOutGetOpenvpnPkcs11Ids ( ) ) ) ;
if ( ! OpenvpnPkcs11IdsProcess - > start ( env ) ) {
if ( ! OpenvpnPkcs11IdsProcess - > start ( env ) ) {
disconnect ( OpenvpnPkcs11IdsProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readOutGetOpenvpnPkcs11Ids ( ) ) ) ;
disconnect ( OpenvpnPkcs11IdsProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readOutGetOpenvpnPkcs11Ids ( ) ) ) ;
delete OpenvpnPkcs11IdsProcess ;
delete OpenvpnPkcs11IdsProcess ;
OpenvpnPkcs11IdsProcess = 0L ;
OpenvpnPkcs11IdsProcess = 0L ;
kdError ( ) < < " Unable to fetch pkcs11 ids via openvpn! " < < endl ;
kdError ( ) < < " Unable to fetch pkcs11 ids via openvpn! " < < endl ;
@ -1297,7 +1297,7 @@ TQStringList Utils::getOpenvpnPkcs11Ids(TQString ProviderLib)
usleep ( 500 ) ;
usleep ( 500 ) ;
config - > appPointer - > processEvents ( ) ;
config - > appPointer - > processEvents ( ) ;
}
}
disconnect ( OpenvpnPkcs11IdsProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readOutGetOpenvpnPkcs11Ids ( ) ) ) ;
disconnect ( OpenvpnPkcs11IdsProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readOutGetOpenvpnPkcs11Ids ( ) ) ) ;
delete OpenvpnPkcs11IdsProcess ;
delete OpenvpnPkcs11IdsProcess ;
OpenvpnPkcs11IdsProcess = 0L ;
OpenvpnPkcs11IdsProcess = 0L ;
}
}
@ -1334,10 +1334,10 @@ bool Utils::getNeedsPassphrase(TQString key)
NeedsPassphraseProcess - > addArgument ( " pass:aaa " ) ;
NeedsPassphraseProcess - > addArgument ( " pass:aaa " ) ;
connect ( NeedsPassphraseProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readOutNeedsPassphrase ( ) ) ) ;
connect ( NeedsPassphraseProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readOutNeedsPassphrase ( ) ) ) ;
if ( ! NeedsPassphraseProcess - > start ( env ) ) {
if ( ! NeedsPassphraseProcess - > start ( env ) ) {
disconnect ( NeedsPassphraseProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readOutNeedsPassphrase ( ) ) ) ;
disconnect ( NeedsPassphraseProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readOutNeedsPassphrase ( ) ) ) ;
delete NetworkDeviceTestProcess ;
delete NetworkDeviceTestProcess ;
NeedsPassphraseProcess = 0L ;
NeedsPassphraseProcess = 0L ;
kdError ( ) < < " Unable to start openssl! " < < endl ;
kdError ( ) < < " Unable to start openssl! " < < endl ;
@ -1350,7 +1350,7 @@ bool Utils::getNeedsPassphrase(TQString key)
usleep ( 500 ) ;
usleep ( 500 ) ;
config - > appPointer - > processEvents ( ) ;
config - > appPointer - > processEvents ( ) ;
}
}
disconnect ( NeedsPassphraseProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readOutNeedsPassphrase ( ) ) ) ;
disconnect ( NeedsPassphraseProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readOutNeedsPassphrase ( ) ) ) ;
delete NetworkDeviceTestProcess ;
delete NetworkDeviceTestProcess ;
NeedsPassphraseProcess = 0L ;
NeedsPassphraseProcess = 0L ;
}
}
@ -1365,11 +1365,11 @@ TQString Utils::getHostname()
GetHostnameProcess = new TQProcess ( this ) ;
GetHostnameProcess = new TQProcess ( this ) ;
GetHostnameProcess - > addArgument ( " hostname " ) ;
GetHostnameProcess - > addArgument ( " hostname " ) ;
connect ( GetHostnameProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutGetHostname ( ) ) ) ;
connect ( GetHostnameProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutGetHostname ( ) ) ) ;
connect ( GetHostnameProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrGetHostname ( ) ) ) ;
connect ( GetHostnameProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrGetHostname ( ) ) ) ;
if ( ! GetHostnameProcess - > start ( env ) ) {
if ( ! GetHostnameProcess - > start ( env ) ) {
disconnect ( GetHostnameProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutGetHostname ( ) ) ) ;
disconnect ( GetHostnameProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutGetHostname ( ) ) ) ;
disconnect ( GetHostnameProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrGetHostname ( ) ) ) ;
disconnect ( GetHostnameProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrGetHostname ( ) ) ) ;
delete GetHostnameProcess ;
delete GetHostnameProcess ;
GetHostnameProcess = 0L ;
GetHostnameProcess = 0L ;
kdError ( ) < < " Unable to start getHostname process! " < < endl ;
kdError ( ) < < " Unable to start getHostname process! " < < endl ;
@ -1381,8 +1381,8 @@ TQString Utils::getHostname()
{
{
usleep ( 200 ) ;
usleep ( 200 ) ;
}
}
disconnect ( GetHostnameProcess , TQ T _SIGNAL( readyReadStdout ( ) ) , this , TQ T _SLOT( readStdOutGetHostname ( ) ) ) ;
disconnect ( GetHostnameProcess , TQ _SIGNAL( readyReadStdout ( ) ) , this , TQ _SLOT( readStdOutGetHostname ( ) ) ) ;
disconnect ( GetHostnameProcess , TQ T _SIGNAL( readyReadStderr ( ) ) , this , TQ T _SLOT( readStdErrGetHostname ( ) ) ) ;
disconnect ( GetHostnameProcess , TQ _SIGNAL( readyReadStderr ( ) ) , this , TQ _SLOT( readStdErrGetHostname ( ) ) ) ;
delete GetHostnameProcess ;
delete GetHostnameProcess ;
GetHostnameProcess = 0L ;
GetHostnameProcess = 0L ;
return Hostname ;
return Hostname ;