summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth
Side-by-side diff
Diffstat (limited to 'noncore/net/opietooth') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opietooth/blue-pin/pindlg.cc1
-rw-r--r--noncore/net/opietooth/blue-pin/pindlg.h9
-rw-r--r--noncore/net/opietooth/blue-pin/pindlgbase.ui184
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp2
4 files changed, 138 insertions, 58 deletions
diff --git a/noncore/net/opietooth/blue-pin/pindlg.cc b/noncore/net/opietooth/blue-pin/pindlg.cc
index 54f096e..7d60d6c 100644
--- a/noncore/net/opietooth/blue-pin/pindlg.cc
+++ b/noncore/net/opietooth/blue-pin/pindlg.cc
@@ -21,4 +21,5 @@ PinDlg::PinDlg( const QString& status,
test( mac );
txtStatus->setText(status);
+ showMaximized();
}
PinDlg::~PinDlg() {
diff --git a/noncore/net/opietooth/blue-pin/pindlg.h b/noncore/net/opietooth/blue-pin/pindlg.h
index b4f5ff8..5e5a763 100644
--- a/noncore/net/opietooth/blue-pin/pindlg.h
+++ b/noncore/net/opietooth/blue-pin/pindlg.h
@@ -2,10 +2,12 @@
#include <qdialog.h>
-
#include "pindlgbase.h"
namespace OpieTooth {
+
class PinDlg : public PinDlgBase {
+
Q_OBJECT
+
public:
PinDlg(const QString& text,
@@ -16,11 +18,12 @@ namespace OpieTooth {
void setMac( const QString& );
QString pin() const;
+
private:
void test( const QString& mac );
QString m_mac;
+
protected slots:
void accept();
- };
-
};
+};
diff --git a/noncore/net/opietooth/blue-pin/pindlgbase.ui b/noncore/net/opietooth/blue-pin/pindlgbase.ui
index 6966a03..889a25e 100644
--- a/noncore/net/opietooth/blue-pin/pindlgbase.ui
+++ b/noncore/net/opietooth/blue-pin/pindlgbase.ui
@@ -13,6 +13,6 @@
<x>0</x>
<y>0</y>
- <width>248</width>
- <height>167</height>
+ <width>258</width>
+ <height>245</height>
</rect>
</property>
@@ -21,5 +21,5 @@
<string>Please enter pin</string>
</property>
- <grid>
+ <vbox>
<property stdset="1">
<name>margin</name>
@@ -30,5 +30,41 @@
<number>6</number>
</property>
- <widget row="0" column="0" >
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>txtStatus</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>textFormat</name>
+ <enum>RichText</enum>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer4_2</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
<class>QLayoutWidget</class>
<property stdset="1">
@@ -36,5 +72,31 @@
<cstring>Layout6</cstring>
</property>
- <grid>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel3</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Please enter PIN:</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout5</cstring>
+ </property>
+ <hbox>
<property stdset="1">
<name>margin</name>
@@ -45,5 +107,5 @@
<number>6</number>
</property>
- <widget row="3" column="0" rowspan="1" colspan="3" >
+ <widget>
<class>QLineEdit</class>
<property stdset="1">
@@ -56,8 +118,8 @@
</property>
</widget>
- <spacer row="5" column="4" >
+ <spacer>
<property>
<name>name</name>
- <cstring>Spacer2</cstring>
+ <cstring>Spacer4</cstring>
</property>
<property stdset="1">
@@ -72,34 +134,64 @@
<name>sizeHint</name>
<size>
- <width>16</width>
+ <width>21</width>
<height>20</height>
</size>
</property>
</spacer>
- <spacer row="5" column="0" >
+ </hbox>
+ </widget>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>ckbPin</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Save pin</string>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ <spacer>
<property>
<name>name</name>
- <cstring>Spacer1</cstring>
+ <cstring>Spacer5</cstring>
</property>
<property stdset="1">
<name>orientation</name>
- <enum>Horizontal</enum>
+ <enum>Vertical</enum>
</property>
<property stdset="1">
<name>sizeType</name>
- <enum>Fixed</enum>
+ <enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
- <width>30</width>
+ <width>20</width>
<height>20</height>
</size>
</property>
</spacer>
- <spacer row="3" column="3" >
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout7</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
<property>
<name>name</name>
- <cstring>Spacer4</cstring>
+ <cstring>Spacer1</cstring>
</property>
<property stdset="1">
@@ -114,36 +206,10 @@
<name>sizeHint</name>
<size>
- <width>21</width>
+ <width>30</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget row="0" column="0" rowspan="1" colspan="5" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>txtStatus</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>textFormat</name>
- <enum>RichText</enum>
- </property>
- </widget>
- <widget row="2" column="0" rowspan="1" colspan="5" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>TextLabel3</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Please enter PIN:</string>
- </property>
- </widget>
- <widget row="5" column="1" >
+ <widget>
<class>QPushButton</class>
<property stdset="1">
@@ -156,5 +222,5 @@
</property>
</widget>
- <widget row="5" column="2" rowspan="1" colspan="2" >
+ <widget>
<class>QPushButton</class>
<property stdset="1">
@@ -167,18 +233,28 @@
</property>
</widget>
- <widget row="4" column="0" rowspan="1" colspan="5" >
- <class>QCheckBox</class>
- <property stdset="1">
+ <spacer>
+ <property>
<name>name</name>
- <cstring>ckbPin</cstring>
+ <cstring>Spacer2</cstring>
</property>
<property stdset="1">
- <name>text</name>
- <string>Save pin</string>
+ <name>orientation</name>
+ <enum>Horizontal</enum>
</property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Fixed</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>16</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
</widget>
- </grid>
- </widget>
- </grid>
+ </vbox>
</widget>
<connections>
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index 935c11a..54808fa 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -151,5 +151,5 @@ void BlueBase::writeToHciConfig() {
HciConfWrapper hciconf ( "/etc/bluetooth/hcid.conf" );
hciconf.load();
- hciconf.setPinHelper( "/bin/QtPalmtop/bin/blue-pin" );
+ hciconf.setPinHelper( "/opt/QtPalmtop/bin/bluepin" );
hciconf.setName( m_deviceName );
hciconf.setEncrypt( m_useEncryption );