summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/dialer.cpp
authorzecke <zecke>2004-10-16 21:06:28 (UTC)
committer zecke <zecke>2004-10-16 21:06:28 (UTC)
commit999a0f2d22f132005bde62558ace48a0ce8b1dcc (patch) (side-by-side diff)
tree75f528b52a8a89289925e62bbd4c48d316c8ddcf /noncore/apps/opie-console/dialer.cpp
parente70f226f5c4c2f488f6c4406034a04e128c0ca93 (diff)
downloadopie-999a0f2d22f132005bde62558ace48a0ce8b1dcc.zip
opie-999a0f2d22f132005bde62558ace48a0ce8b1dcc.tar.gz
opie-999a0f2d22f132005bde62558ace48a0ce8b1dcc.tar.bz2
-Remove never finished classes by ibotty for the console widget
-Put setCurrent into ComboboxHelper and remove duplication from the dialogs -Remove old and unneeded debug output -IOBt, IOIrda can share the implementation for sening,recieving and supports with IOSerial
Diffstat (limited to 'noncore/apps/opie-console/dialer.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/dialer.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/noncore/apps/opie-console/dialer.cpp b/noncore/apps/opie-console/dialer.cpp
index 7010594..8883b83 100644
--- a/noncore/apps/opie-console/dialer.cpp
+++ b/noncore/apps/opie-console/dialer.cpp
@@ -2,8 +2,4 @@
#include "io_modem.h"
-/* OPIE */
-#include <opie2/odebug.h>
-using namespace Opie::Core;
-
/* QT */
#include <qlayout.h>
@@ -110,5 +106,4 @@ void Dialer::slotCancel()
void Dialer::reset()
{
- owarn << "reset" << oendl;
switchState(state_cancel);
}
@@ -142,9 +137,7 @@ void Dialer::dial(const QString& number)
void Dialer::trydial(const QString& number)
{
- owarn << "TryDial:" << number.latin1() << "" << oendl;
if(state != state_cancel) switchState(state_preinit);
if(cleanshutdown)
{
- owarn << "HangupString " << m_profile.readEntry("HangupString") << oendl;
send(m_profile.readEntry("HangupString", MODEM_DEFAULT_HANGUP_STRING ) + "\r");
}
@@ -153,5 +146,4 @@ void Dialer::trydial(const QString& number)
{
switchState(state_init);
-// owarn << "Init String " + m_profile.readEntry("InitString") << oendl;
send(m_profile.readEntry("InitString",MODEM_DEFAULT_INIT_STRING ) + "\r");
QString response2 = receive();
@@ -184,5 +176,4 @@ void Dialer::trydial(const QString& number)
if(state != state_cancel)
{
- owarn << "progress" << oendl;
switchState(state_dialing);
@@ -200,5 +191,5 @@ void Dialer::trydial(const QString& number)
QMessageBox::warning(this,
QObject::tr("Failure"),
- QObject::tr("Dialing the number failed."));
+ QObject::tr("<qt>Dialing the number failed.</qt>"));
slotCancel();
}
@@ -220,5 +211,4 @@ void Dialer::send(const QString& msg)
QString termination;
- owarn << "Sending: " << m.latin1() << "" << oendl;
/* termination = "\r";
@@ -253,9 +243,7 @@ QString Dialer::receive()
buffer[i] = buffer[i] & 0x7F;
buffer[ret] = 0;
- owarn << "Got: " << buffer << "" << oendl;
buf.append(QString(buffer));
if(buf.contains("OK") || buf.contains("ERROR") || buf.contains("CONNECT") || (buf.contains("BUSY")))
{
- //owarn << "Receiving: '" << buf.latin1() << "'" << oendl;
cleanshutdown = 1;
return buf;