Add freebsd support in kopete connectionstatus plugin

[taken from FreeBSD kopete patches]

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit e39c1618bb)
pull/38/head
Slávek Banko 10 years ago
parent bbf336489c
commit 7f6f068c2d

@ -67,7 +67,11 @@ void ConnectionStatusPlugin::slotCheckStatus()
// netstat -rn in slotProcessStdout() to see if it mentions the // netstat -rn in slotProcessStdout() to see if it mentions the
// default gateway. If so, we're connected, if not, we're offline // default gateway. If so, we're connected, if not, we're offline
m_process = new TDEProcess; m_process = new TDEProcess;
#if defined(__FreeBSD__)
*m_process << "netstat" << "-rfinet";
#else
*m_process << "netstat" << "-r"; *m_process << "netstat" << "-r";
#endif
connect( m_process, TQT_SIGNAL( receivedStdout( TDEProcess *, char *, int ) ), this, TQT_SLOT( slotProcessStdout( TDEProcess *, char *, int ) ) ); 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 * ) ) ); connect( m_process, TQT_SIGNAL( processExited( TDEProcess * ) ), this, TQT_SLOT( slotProcessExited( TDEProcess * ) ) );

Loading…
Cancel
Save