author | harlekin <harlekin> | 2002-07-13 14:02:59 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-07-13 14:02:59 (UTC) |
commit | 9a97566ac38b51e27707342556171af63f6a75b4 (patch) (side-by-side diff) | |
tree | af9b6a746090f6ca243af5c250e688f07c7ea708 /noncore/net/opietooth/manager/pppdialog.cpp | |
parent | c86efeae9e7f7f63dca633f630b571019a5c71b6 (diff) | |
download | opie-9a97566ac38b51e27707342556171af63f6a75b4.zip opie-9a97566ac38b51e27707342556171af63f6a75b4.tar.gz opie-9a97566ac38b51e27707342556171af63f6a75b4.tar.bz2 |
obex dialog added and fixes to ppp dialog
Diffstat (limited to 'noncore/net/opietooth/manager/pppdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/pppdialog.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/noncore/net/opietooth/manager/pppdialog.cpp b/noncore/net/opietooth/manager/pppdialog.cpp index 472da73..4d926a5 100644 --- a/noncore/net/opietooth/manager/pppdialog.cpp +++ b/noncore/net/opietooth/manager/pppdialog.cpp @@ -7,17 +7,19 @@ #include <qlabel.h> #include <opie/oprocess.h> -PPPDialog::PPPDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) +PPPDialog::PPPDialog( QWidget* parent, const char* name, bool modal, WFlags fl, const QString& device ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "PPPDialog" ); setCaption( tr( "ppp connection " ) ) ; + m_device = device; + layout = new QVBoxLayout( this ); QLabel* info = new QLabel( this ); - info->setText( "Enter an ppp script name:" ); + info->setText( tr("Enter an ppp script name:") ); cmdLine = new QLineEdit( this ); @@ -45,10 +47,9 @@ PPPDialog::~PPPDialog() { void PPPDialog::connectToDevice() { outPut->clear(); // vom popupmenu beziehen - QString devName = "/dev/ttyU0"; QString connectScript = "/etc/ppp/peers/" + cmdLine->text(); OProcess* pppDial = new OProcess(); - *pppDial << "pppd" << devName << "call" << connectScript; + *pppDial << "pppd" << m_device << "call" << connectScript; connect( pppDial, SIGNAL(receivedStdout(OProcess*, char*, int ) ), this, SLOT(fillOutPut(OProcess*, char*, int ) ) ); if (!pppDial->start(OProcess::DontCare, OProcess::AllOutput) ) { |