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 @@ -8,5 +8,5 @@ #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 ) { @@ -15,8 +15,10 @@ PPPDialog::PPPDialog( QWidget* parent, const char* name, bool modal, WFlags fl 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 ); @@ -46,8 +48,7 @@ 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 ) ) ); |