|
|
|
@ -67,16 +67,16 @@ void NetToolsBackend::update()
|
|
|
|
|
if ( !mIfconfigProcess ) |
|
|
|
|
{ |
|
|
|
|
mIfconfigStdout = TQString(); |
|
|
|
|
mIfconfigProcess = new KProcess(); |
|
|
|
|
mIfconfigProcess = new TDEProcess(); |
|
|
|
|
mIfconfigProcess->setEnvironment( "LANG", "C" ); |
|
|
|
|
mIfconfigProcess->setEnvironment( "LC_ALL", "C" ); |
|
|
|
|
*mIfconfigProcess << PATH_IFCONFIG << "-a"; |
|
|
|
|
connect( mIfconfigProcess, TQT_SIGNAL( receivedStdout( KProcess*, char*, int ) ), |
|
|
|
|
this, TQT_SLOT( ifconfigProcessStdout( KProcess*, char*, int ) ) ); |
|
|
|
|
connect( mIfconfigProcess, TQT_SIGNAL( processExited( KProcess* ) ), |
|
|
|
|
this, TQT_SLOT( ifconfigProcessExited( KProcess* ) ) ); |
|
|
|
|
connect( mIfconfigProcess, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), |
|
|
|
|
this, TQT_SLOT( ifconfigProcessStdout( TDEProcess*, char*, int ) ) ); |
|
|
|
|
connect( mIfconfigProcess, TQT_SIGNAL( processExited( TDEProcess* ) ), |
|
|
|
|
this, TQT_SLOT( ifconfigProcessExited( TDEProcess* ) ) ); |
|
|
|
|
|
|
|
|
|
if ( !mIfconfigProcess->start( KProcess::NotifyOnExit, KProcess::Stdout ) ) |
|
|
|
|
if ( !mIfconfigProcess->start( TDEProcess::NotifyOnExit, TDEProcess::Stdout ) ) |
|
|
|
|
{ |
|
|
|
|
delete mIfconfigProcess; |
|
|
|
|
mIfconfigProcess = 0L; |
|
|
|
@ -87,18 +87,18 @@ void NetToolsBackend::update()
|
|
|
|
|
if ( !mIwconfigProcess ) |
|
|
|
|
{ |
|
|
|
|
mIwconfigStdout = TQString(); |
|
|
|
|
mIwconfigProcess = new KProcess(); |
|
|
|
|
mIwconfigProcess = new TDEProcess(); |
|
|
|
|
mIwconfigProcess->setEnvironment( "LANG", "C" ); |
|
|
|
|
mIwconfigProcess->setEnvironment( "LC_ALL", "C" ); |
|
|
|
|
*mIwconfigProcess << PATH_IWCONFIG; |
|
|
|
|
connect( mIwconfigProcess, TQT_SIGNAL( receivedStdout( KProcess*, char*, int ) ), |
|
|
|
|
this, TQT_SLOT( iwconfigProcessStdout( KProcess*, char*, int ) ) ); |
|
|
|
|
connect( mIwconfigProcess, TQT_SIGNAL( receivedStderr( KProcess*, char*, int ) ), |
|
|
|
|
this, TQT_SLOT( iwconfigProcessStdout( KProcess*, char*, int ) ) ); |
|
|
|
|
connect( mIwconfigProcess, TQT_SIGNAL( processExited( KProcess* ) ), |
|
|
|
|
this, TQT_SLOT( iwconfigProcessExited( KProcess* ) ) ); |
|
|
|
|
|
|
|
|
|
if ( !mIwconfigProcess->start( KProcess::NotifyOnExit, KProcess::AllOutput ) ) |
|
|
|
|
connect( mIwconfigProcess, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), |
|
|
|
|
this, TQT_SLOT( iwconfigProcessStdout( TDEProcess*, char*, int ) ) ); |
|
|
|
|
connect( mIwconfigProcess, TQT_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ), |
|
|
|
|
this, TQT_SLOT( iwconfigProcessStdout( TDEProcess*, char*, int ) ) ); |
|
|
|
|
connect( mIwconfigProcess, TQT_SIGNAL( processExited( TDEProcess* ) ), |
|
|
|
|
this, TQT_SLOT( iwconfigProcessExited( TDEProcess* ) ) ); |
|
|
|
|
|
|
|
|
|
if ( !mIwconfigProcess->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) ) |
|
|
|
|
{ |
|
|
|
|
delete mIwconfigProcess; |
|
|
|
|
mIwconfigProcess = 0L; |
|
|
|
@ -110,18 +110,18 @@ void NetToolsBackend::update()
|
|
|
|
|
if ( !mRouteProcess ) |
|
|
|
|
{ |
|
|
|
|
mRouteStdout = TQString(); |
|
|
|
|
mRouteProcess = new KProcess(); |
|
|
|
|
mRouteProcess = new TDEProcess(); |
|
|
|
|
mRouteProcess->setEnvironment( "LANG", "C" ); |
|
|
|
|
mRouteProcess->setEnvironment( "LC_ALL", "C" ); |
|
|
|
|
*mRouteProcess << PATH_ROUTE << "-n"; |
|
|
|
|
connect( mRouteProcess, TQT_SIGNAL( receivedStdout( KProcess*, char*, int ) ), |
|
|
|
|
this, TQT_SLOT( routeProcessStdout( KProcess*, char*, int ) ) ); |
|
|
|
|
connect( mRouteProcess, TQT_SIGNAL( receivedStderr( KProcess*, char*, int ) ), |
|
|
|
|
this, TQT_SLOT( routeProcessStdout( KProcess*, char*, int ) ) ); |
|
|
|
|
connect( mRouteProcess, TQT_SIGNAL( processExited( KProcess* ) ), |
|
|
|
|
this, TQT_SLOT( routeProcessExited( KProcess* ) ) ); |
|
|
|
|
|
|
|
|
|
if ( !mRouteProcess->start( KProcess::NotifyOnExit, KProcess::AllOutput ) ) |
|
|
|
|
connect( mRouteProcess, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), |
|
|
|
|
this, TQT_SLOT( routeProcessStdout( TDEProcess*, char*, int ) ) ); |
|
|
|
|
connect( mRouteProcess, TQT_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ), |
|
|
|
|
this, TQT_SLOT( routeProcessStdout( TDEProcess*, char*, int ) ) ); |
|
|
|
|
connect( mRouteProcess, TQT_SIGNAL( processExited( TDEProcess* ) ), |
|
|
|
|
this, TQT_SLOT( routeProcessExited( TDEProcess* ) ) ); |
|
|
|
|
|
|
|
|
|
if ( !mRouteProcess->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) ) |
|
|
|
|
{ |
|
|
|
|
delete mRouteProcess; |
|
|
|
|
mRouteProcess = 0L; |
|
|
|
@ -130,7 +130,7 @@ void NetToolsBackend::update()
|
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void NetToolsBackend::routeProcessExited( KProcess* process ) |
|
|
|
|
void NetToolsBackend::routeProcessExited( TDEProcess* process ) |
|
|
|
|
{ |
|
|
|
|
if ( process == mRouteProcess ) |
|
|
|
|
{ |
|
|
|
@ -140,12 +140,12 @@ void NetToolsBackend::routeProcessExited( KProcess* process )
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void NetToolsBackend::routeProcessStdout( KProcess*, char* buffer, int buflen ) |
|
|
|
|
void NetToolsBackend::routeProcessStdout( TDEProcess*, char* buffer, int buflen ) |
|
|
|
|
{ |
|
|
|
|
mRouteStdout += TQString::fromLatin1( buffer, buflen ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void NetToolsBackend::ifconfigProcessExited( KProcess* process ) |
|
|
|
|
void NetToolsBackend::ifconfigProcessExited( TDEProcess* process ) |
|
|
|
|
{ |
|
|
|
|
if ( process == mIfconfigProcess ) |
|
|
|
|
{ |
|
|
|
@ -155,12 +155,12 @@ void NetToolsBackend::ifconfigProcessExited( KProcess* process )
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void NetToolsBackend::ifconfigProcessStdout( KProcess*, char* buffer, int buflen ) |
|
|
|
|
void NetToolsBackend::ifconfigProcessStdout( TDEProcess*, char* buffer, int buflen ) |
|
|
|
|
{ |
|
|
|
|
mIfconfigStdout += TQString::fromLatin1( buffer, buflen ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void NetToolsBackend::iwconfigProcessExited( KProcess* process ) |
|
|
|
|
void NetToolsBackend::iwconfigProcessExited( TDEProcess* process ) |
|
|
|
|
{ |
|
|
|
|
if ( process == mIwconfigProcess ) |
|
|
|
|
{ |
|
|
|
@ -170,7 +170,7 @@ void NetToolsBackend::iwconfigProcessExited( KProcess* process )
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void NetToolsBackend::iwconfigProcessStdout( KProcess*, char* buffer, int buflen ) |
|
|
|
|
void NetToolsBackend::iwconfigProcessStdout( TDEProcess*, char* buffer, int buflen ) |
|
|
|
|
{ |
|
|
|
|
mIwconfigStdout += TQString::fromLatin1( buffer, buflen ); |
|
|
|
|
} |
|
|
|
|