author | harlekin <harlekin> | 2002-10-12 15:44:01 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-12 15:44:01 (UTC) |
commit | e6b92ad451dba66f4eb5000a41b96eb2ee203dce (patch) (unidiff) | |
tree | 07caa3f11d59c96858dd374d6b7cff90dbe3915e /noncore/apps/opie-console/btconfigwidget.cpp | |
parent | 83aed438ec060307bf5562d91bd8b61fe60f860b (diff) | |
download | opie-e6b92ad451dba66f4eb5000a41b96eb2ee203dce.zip opie-e6b92ad451dba66f4eb5000a41b96eb2ee203dce.tar.gz opie-e6b92ad451dba66f4eb5000a41b96eb2ee203dce.tar.bz2 |
some more stuff - modem config, bluetooth.. -, not finished
Diffstat (limited to 'noncore/apps/opie-console/btconfigwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/btconfigwidget.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/btconfigwidget.cpp b/noncore/apps/opie-console/btconfigwidget.cpp index acc4811..eac6a79 100644 --- a/noncore/apps/opie-console/btconfigwidget.cpp +++ b/noncore/apps/opie-console/btconfigwidget.cpp | |||
@@ -1,5 +1,6 @@ | |||
1 | #include <qlabel.h> | 1 | #include <qlabel.h> |
2 | #include <qlayout.h> | 2 | #include <qlayout.h> |
3 | #include <qlineedit.h> | ||
3 | #include <qcombobox.h> | 4 | #include <qcombobox.h> |
4 | 5 | ||
5 | #include "iolayerbase.h" | 6 | #include "iolayerbase.h" |
@@ -29,10 +30,16 @@ BTConfigWidget::BTConfigWidget( const QString& name, | |||
29 | m_deviceCmb = new QComboBox(this ); | 30 | m_deviceCmb = new QComboBox(this ); |
30 | m_deviceCmb->setEditable( TRUE ); | 31 | m_deviceCmb->setEditable( TRUE ); |
31 | 32 | ||
33 | QLabel *macLabel = new QLabel( this ); | ||
34 | macLabel->setText( tr("Enter peer mac address here:") ); | ||
35 | m_mac = new QLineEdit( this ); | ||
36 | |||
32 | m_base = new IOLayerBase(this, "base"); | 37 | m_base = new IOLayerBase(this, "base"); |
33 | 38 | ||
34 | m_lay->addWidget( m_device ); | 39 | m_lay->addWidget( m_device ); |
35 | m_lay->addWidget( m_deviceCmb ); | 40 | m_lay->addWidget( m_deviceCmb ); |
41 | m_lay->addWidget( macLabel ); | ||
42 | m_lay->addWidget( m_mac ); | ||
36 | m_lay->addWidget( m_base ); | 43 | m_lay->addWidget( m_base ); |
37 | 44 | ||
38 | m_deviceCmb->insertItem( "/dev/ttyU0" ); | 45 | m_deviceCmb->insertItem( "/dev/ttyU0" ); |
@@ -46,7 +53,11 @@ void BTConfigWidget::load( const Profile& prof ) { | |||
46 | int rad_flow = prof.readNumEntry("Flow"); | 53 | int rad_flow = prof.readNumEntry("Flow"); |
47 | int rad_parity = prof.readNumEntry("Parity"); | 54 | int rad_parity = prof.readNumEntry("Parity"); |
48 | int speed = prof.readNumEntry("Speed"); | 55 | int speed = prof.readNumEntry("Speed"); |
56 | QString mac = prof.readEntry("Mac"); | ||
49 | 57 | ||
58 | if (!mac.isEmpty() ) { | ||
59 | m_mac->setText( mac ); | ||
60 | } | ||
50 | 61 | ||
51 | if (rad_flow == 1) { | 62 | if (rad_flow == 1) { |
52 | m_base->setFlow( IOLayerBase::Hardware ); | 63 | m_base->setFlow( IOLayerBase::Hardware ); |
@@ -137,4 +148,5 @@ void BTConfigWidget::save( Profile& prof ) { | |||
137 | prof.writeEntry("Flow", flow); | 148 | prof.writeEntry("Flow", flow); |
138 | prof.writeEntry("Parity", parity); | 149 | prof.writeEntry("Parity", parity); |
139 | prof.writeEntry("Speed", speed); | 150 | prof.writeEntry("Speed", speed); |
151 | prof.writeEntry("Mac", m_mac->text() ); | ||
140 | } | 152 | } |