summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bluebase.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp30
1 files changed, 24 insertions, 6 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index 924d191..13954c5 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -24,2 +24,3 @@
#include "forwarder.h"
+#include "servicesdialog.h"
#include <termios.h>
@@ -98,2 +99,3 @@ BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl )
connect(encCheckBox, SIGNAL(toggled(bool)), this, SLOT(doEncrypt(bool)));
+ connect(servicesEditButton, SIGNAL(clicked()), this, SLOT(editServices()));
@@ -129,8 +131,2 @@ BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl )
forwarder = NULL;
- serDevName->setText(tr("/dev/ircomm0"));
- for (unsigned int i = 0; i < (sizeof(speeds) / sizeof(speeds[0])); i++) {
- serSpeed->insertItem(speeds[i].str);
- }
- serSpeed->setCurrentItem((sizeof(speeds) / sizeof(speeds[0])) - 1);
- encCheckBox->setChecked(true);
}
@@ -255,2 +251,8 @@ void BlueBase::initGui()
setInfo();
+ serDevName->setText(tr("/dev/ircomm0"));
+ for (unsigned int i = 0; i < (sizeof(speeds) / sizeof(speeds[0])); i++) {
+ serSpeed->insertItem(speeds[i].str);
+ }
+ serSpeed->setCurrentItem((sizeof(speeds) / sizeof(speeds[0])) - 1);
+ encCheckBox->setChecked(true);
}
@@ -762,2 +764,18 @@ void BlueBase::doEncrypt(bool doit)
+/**
+ * Start services edit dialog
+ */
+void BlueBase::editServices()
+{
+ QString conf = "/etc/default/bluetooth";
+//// Use for debugging purposes
+//// QString conf = "/mnt/net/opie/bin/bluetooth";
+ ServicesDialog svcEdit(conf, this, "ServicesDialog", true,
+ WStyle_ContextHelp);
+
+ if (QPEApplication::execDialog(&svcEdit) == QDialog::Accepted)
+ {
+ }
+}
+
//eof