author | korovkin <korovkin> | 2006-04-04 18:53:07 (UTC) |
---|---|---|
committer | korovkin <korovkin> | 2006-04-04 18:53:07 (UTC) |
commit | 31ea6e9f697d72a31ce319f7f42254fe90e48a36 (patch) (unidiff) | |
tree | 694ad373b6ac80ebdf93137029b0b6c5d335d3f6 /noncore/net/opietooth/manager/dunpopup.cpp | |
parent | 76276b77e99897ae264aa5b171191521edada420 (diff) | |
download | opie-31ea6e9f697d72a31ce319f7f42254fe90e48a36.zip opie-31ea6e9f697d72a31ce319f7f42254fe90e48a36.tar.gz opie-31ea6e9f697d72a31ce319f7f42254fe90e48a36.tar.bz2 |
Added persist mode for dund.
Diffstat (limited to 'noncore/net/opietooth/manager/dunpopup.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/dunpopup.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/dunpopup.cpp b/noncore/net/opietooth/manager/dunpopup.cpp index c304b2d..6844988 100644 --- a/noncore/net/opietooth/manager/dunpopup.cpp +++ b/noncore/net/opietooth/manager/dunpopup.cpp | |||
@@ -53,26 +53,29 @@ DunPopup::~DunPopup() { | |||
53 | } | 53 | } |
54 | 54 | ||
55 | void DunPopup::slotConnect() { | 55 | void DunPopup::slotConnect() { |
56 | odebug << "connect" << oendl; | 56 | odebug << "connect" << oendl; |
57 | DunDialog dundlg(m_item->mac(), | 57 | DunDialog dundlg(m_item->mac(), |
58 | m_service.protocolDescriptorList().last().port()); | 58 | m_service.protocolDescriptorList().last().port()); |
59 | QPEApplication::execDialog( &dundlg ); | 59 | QPEApplication::execDialog( &dundlg ); |
60 | } | 60 | } |
61 | 61 | ||
62 | void DunPopup::slotDisconnect() { | 62 | void DunPopup::slotDisconnect() { |
63 | OProcess dunDis; | 63 | OProcess dunDis; |
64 | OProcess pppDis; | 64 | OProcess pppDis; |
65 | OProcess dunKill; | ||
65 | dunDis << tr("dund") << tr("--kill") << m_item->mac(); | 66 | dunDis << tr("dund") << tr("--kill") << m_item->mac(); |
66 | dunDis.start(OProcess::DontCare, OProcess::NoCommunication); | 67 | dunDis.start(OProcess::DontCare, OProcess::NoCommunication); |
68 | dunKill << tr("killall") << tr("-q") << tr("dund"); | ||
69 | dunKill.start(OProcess::DontCare, OProcess::NoCommunication); | ||
67 | pppDis << tr("killall") << tr("-q") << tr("pppd"); | 70 | pppDis << tr("killall") << tr("-q") << tr("pppd"); |
68 | pppDis.start(OProcess::DontCare, OProcess::NoCommunication); | 71 | pppDis.start(OProcess::DontCare, OProcess::NoCommunication); |
69 | sleep(1); | 72 | sleep(1); |
70 | QMessageBox::information(this, tr("DUN Disconnect"), tr("DUN Disconnected")); | 73 | QMessageBox::information(this, tr("DUN Disconnect"), tr("DUN Disconnected")); |
71 | } | 74 | } |
72 | 75 | ||
73 | 76 | ||
74 | void DunPopup::slotConnectAndConfig() { | 77 | void DunPopup::slotConnectAndConfig() { |
75 | slotConnect(); | 78 | slotConnect(); |
76 | 79 | ||
77 | // more intelligence here later like passing the device ( bnepX ) | 80 | // more intelligence here later like passing the device ( bnepX ) |
78 | QCopEnvelope e( "QPE/System", "execute(QString)" ); | 81 | QCopEnvelope e( "QPE/System", "execute(QString)" ); |