diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-01-20 17:31:48 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-01-20 17:31:48 +0900 |
| commit | 1517a05d2ffe7a33e1fe18a2dae540ae1c3d6694 (patch) | |
| tree | e6967aa8aacf5e5fca64c6b69f3a0ddc528a5640 /kppp/connect.cpp | |
| parent | 50da92376284f30d95e18960d2b24c49901fb10d (diff) | |
| download | tdenetwork-1517a05d2ffe7a33e1fe18a2dae540ae1c3d6694.tar.gz tdenetwork-1517a05d2ffe7a33e1fe18a2dae540ae1c3d6694.zip | |
Use tdeApp
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kppp/connect.cpp')
| -rw-r--r-- | kppp/connect.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kppp/connect.cpp b/kppp/connect.cpp index abcc277c..3296326f 100644 --- a/kppp/connect.cpp +++ b/kppp/connect.cpp @@ -145,7 +145,7 @@ ConnectWidget::ConnectWidget(TQWidget *parent, const char *name, PPPStats *st) pausetimer = new TQTimer(this); connect(pausetimer, TQ_SIGNAL(timeout()), TQ_SLOT(pause())); - kapp->processEvents(); + tdeApp->processEvents(); timeout_timer = new TQTimer(this); connect(timeout_timer, TQ_SIGNAL(timeout()), TQ_SLOT(script_timed_out())); @@ -213,23 +213,23 @@ void ConnectWidget::init() { TQString tit = i18n("Connecting to: %1").arg(gpppdata.accname()); setCaption(tit); - kapp->processEvents(); + tdeApp->processEvents(); // signal other applications that we are about to get connected - kapp->dcopClient()->emitDCOPSignal("KpppIface", "aboutToConnect()", TQByteArray()); + tdeApp->dcopClient()->emitDCOPSignal("KpppIface", "aboutToConnect()", TQByteArray()); // run the "before-connect" command if (!gpppdata.command_before_connect().isEmpty()) { messg->setText(i18n("Running pre-startup command...")); emit debugMessage(i18n("Running pre-startup command...")); - kapp->processEvents(); + tdeApp->processEvents(); TQApplication::flushX(); pid_t id = execute_command(gpppdata.command_before_connect()); int i, status; do { - kapp->processEvents(); + tdeApp->processEvents(); i = waitpid(id, &status, WNOHANG); usleep(100000); } while (i == 0 && errno == 0); @@ -251,10 +251,10 @@ void ConnectWidget::init() { if(Modem::modem->opentty()) { messg->setText(Modem::modem->modemMessage()); - kapp->processEvents(); + tdeApp->processEvents(); if(Modem::modem->hangup()) { - kapp->processEvents(); + tdeApp->processEvents(); semaphore = false; @@ -915,7 +915,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { // find out PPP interface and notify the stats module stats->setUnit(pppInterfaceNumber()); - kapp->flushX(); + tdeApp->flushX(); semaphore = true; result = execppp(); @@ -940,7 +940,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { messg->setText(""); p_kppp->quit_b->setFocus(); p_kppp->show(); - kapp->processEvents(); + tdeApp->processEvents(); Modem::modem->hangup(); emit stopAccounting(); p_kppp->con_win->stopClock(); @@ -1065,7 +1065,7 @@ void ConnectWidget::cancelbutton() { Requester::rq->removeSecret(AUTH_CHAP); removedns(); - kapp->processEvents(); + tdeApp->processEvents(); Requester::rq->killPPPDaemon(); Modem::modem->hangup(); @@ -1086,7 +1086,7 @@ void ConnectWidget::cancelbutton() { prompt->setConsumed(); if(p_kppp->quitOnDisconnect()) - kapp->exit(0); + tdeApp->exit(0); } @@ -1192,13 +1192,13 @@ void ConnectWidget::if_waiting_slot() { auto_hostname(); // signal other applications that we are connected now - kapp->dcopClient()->emitDCOPSignal("KpppIface", "connected()", TQByteArray()); + tdeApp->dcopClient()->emitDCOPSignal("KpppIface", "connected()", TQByteArray()); if(!gpppdata.command_on_connect().isEmpty()) { messg->setText(i18n("Running startup command...")); // make sure that we don't get any async errors - kapp->flushX(); + tdeApp->flushX(); execute_command(gpppdata.command_on_connect()); messg->setText(i18n("Done")); } @@ -1344,7 +1344,7 @@ bool ConnectWidget::execppp() { return false; // nonsensically long command which would bust my buffer buf. } - kapp->flushX(); + tdeApp->flushX(); return Requester::rq->execPPPDaemon(command); } |
