diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-24 13:48:31 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-24 13:48:31 -0600 |
commit | c48e769eb275917717e2b55eb869f7e559293ac8 (patch) | |
tree | 8f650b907e21c918b826f854dbe1c8174cc2c0c6 /kopete/plugins/connectionstatus | |
parent | 8011d84f483f3628f3f04ea5cb2c1c3c86b2dba7 (diff) | |
download | tdenetwork-c48e769eb275917717e2b55eb869f7e559293ac8.tar.gz tdenetwork-c48e769eb275917717e2b55eb869f7e559293ac8.zip |
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kopete/plugins/connectionstatus')
-rw-r--r-- | kopete/plugins/connectionstatus/connectionstatusplugin.cpp | 14 | ||||
-rw-r--r-- | kopete/plugins/connectionstatus/connectionstatusplugin.h | 8 |
2 files changed, 11 insertions, 11 deletions
diff --git a/kopete/plugins/connectionstatus/connectionstatusplugin.cpp b/kopete/plugins/connectionstatus/connectionstatusplugin.cpp index d6365c0a..fbbe7c8b 100644 --- a/kopete/plugins/connectionstatus/connectionstatusplugin.cpp +++ b/kopete/plugins/connectionstatus/connectionstatusplugin.cpp @@ -63,16 +63,16 @@ void ConnectionStatusPlugin::slotCheckStatus() m_buffer = TQString(); - // Use KProcess to run netstat -rn. We'll then parse the output of + // Use TDEProcess to run netstat -rn. We'll then parse the output of // netstat -rn in slotProcessStdout() to see if it mentions the // default gateway. If so, we're connected, if not, we're offline - m_process = new KProcess; + m_process = new TDEProcess; *m_process << "netstat" << "-r"; - connect( m_process, TQT_SIGNAL( receivedStdout( KProcess *, char *, int ) ), this, TQT_SLOT( slotProcessStdout( KProcess *, char *, int ) ) ); - connect( m_process, TQT_SIGNAL( processExited( KProcess * ) ), this, TQT_SLOT( slotProcessExited( KProcess * ) ) ); + connect( m_process, TQT_SIGNAL( receivedStdout( TDEProcess *, char *, int ) ), this, TQT_SLOT( slotProcessStdout( TDEProcess *, char *, int ) ) ); + connect( m_process, TQT_SIGNAL( processExited( TDEProcess * ) ), this, TQT_SLOT( slotProcessExited( TDEProcess * ) ) ); - if ( !m_process->start( KProcess::NotifyOnExit, KProcess::Stdout ) ) + if ( !m_process->start( TDEProcess::NotifyOnExit, TDEProcess::Stdout ) ) { kdWarning( 14301 ) << k_funcinfo << "Unable to start netstat process!" << endl; @@ -81,7 +81,7 @@ void ConnectionStatusPlugin::slotCheckStatus() } } -void ConnectionStatusPlugin::slotProcessExited( KProcess *process ) +void ConnectionStatusPlugin::slotProcessExited( TDEProcess *process ) { kdDebug( 14301 ) << m_buffer << endl; @@ -94,7 +94,7 @@ void ConnectionStatusPlugin::slotProcessExited( KProcess *process ) } } -void ConnectionStatusPlugin::slotProcessStdout( KProcess *, char *buffer, int buflen ) +void ConnectionStatusPlugin::slotProcessStdout( TDEProcess *, char *buffer, int buflen ) { // Look for a default gateway //kdDebug( 14301 ) << k_funcinfo << endl; diff --git a/kopete/plugins/connectionstatus/connectionstatusplugin.h b/kopete/plugins/connectionstatus/connectionstatusplugin.h index 6240e11e..9920bec2 100644 --- a/kopete/plugins/connectionstatus/connectionstatusplugin.h +++ b/kopete/plugins/connectionstatus/connectionstatusplugin.h @@ -21,7 +21,7 @@ #include "kopeteplugin.h" class TQTimer; -class KProcess; +class TDEProcess; /** * @author Chris Howells <howells@kde.org> @@ -37,18 +37,18 @@ public: private slots: void slotCheckStatus(); - void slotProcessStdout( KProcess *process, char *buffer, int len ); + void slotProcessStdout( TDEProcess *process, char *buffer, int len ); /** * Notify when the netstat process has exited */ - void slotProcessExited( KProcess *process ); + void slotProcessExited( TDEProcess *process ); private: void setConnectedStatus( bool newStatus ); bool m_pluginConnected; - KProcess *m_process; + TDEProcess *m_process; TQTimer *m_timer; TQString m_buffer; }; |