summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/bluetooth
Side-by-side diff
Diffstat (limited to 'noncore/settings/networksettings2/bluetooth') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetooth.pro21
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetoothBNEPGUI.ui131
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetoothBNEP_NNI.cpp29
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetoothBNEP_NNI.h43
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetoothBNEPdata.h8
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetoothBNEPedit.cpp18
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetoothBNEPedit.h13
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetoothBNEPrun.h32
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMGUI.ui131
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetoothRFCOMM_NNI.cpp30
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetoothRFCOMM_NNI.h42
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMdata.h18
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMedit.cpp18
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMedit.h13
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMrun.h22
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp120
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetooth_NN.h75
-rw-r--r--noncore/settings/networksettings2/bluetooth/config.in4
18 files changed, 768 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/bluetooth/bluetooth.pro b/noncore/settings/networksettings2/bluetooth/bluetooth.pro
new file mode 100644
index 0000000..180bda9
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetooth.pro
@@ -0,0 +1,21 @@
+TEMPLATE = lib
+CONFIG += qt warn_on release
+DESTDIR = $(OPIEDIR)/plugins/networksettings2
+HEADERS = bluetooth_NN.h \
+ bluetoothBNEP_NNI.h \
+ bluetoothRFCOMM_NNI.h \
+ bluetoothBNEPedit.h \
+ bluetoothRFCOMMedit.h
+SOURCES = bluetooth_NN.cpp \
+ bluetoothBNEP_NNI.cpp \
+ bluetoothRFCOMM_NNI.cpp \
+ bluetoothBNEPedit.cpp \
+ bluetoothRFCOMMedit.cpp
+INCLUDEPATH += $(OPIEDIR)/include ../ ../networksettings2
+DEPENDPATH += $(OPIEDIR)/include ../ ../networksettings2
+LIBS += -lqpe
+INTERFACES = bluetoothBNEPGUI.ui bluetoothRFCOMMGUI.ui
+TARGET = bluetooth
+VERSION = 1.0.0
+
+include ( $(OPIEDIR)/include.pro )
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothBNEPGUI.ui b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPGUI.ui
new file mode 100644
index 0000000..ddb5ddd
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPGUI.ui
@@ -0,0 +1,131 @@
+<!DOCTYPE UI><UI>
+<class>BluetoothBNEPGUI</class>
+<widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>BluetoothBNEP_FRM</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>283</width>
+ <height>199</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>caption</name>
+ <string>Bluetooth-bnep</string>
+ </property>
+ <property>
+ <name>layoutMargin</name>
+ </property>
+ <property>
+ <name>layoutSpacing</name>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>2</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>2</number>
+ </property>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout4</cstring>
+ </property>
+ <hbox>
+ <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>TextLabel4</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Name</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Name_LE</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel3</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Description</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QMultiLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Description_LE</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout5</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Automatic_CB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Start automatically</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Confirm_CB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Confirm before start</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+</widget>
+</UI>
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothBNEP_NNI.cpp b/noncore/settings/networksettings2/bluetooth/bluetoothBNEP_NNI.cpp
new file mode 100644
index 0000000..1743c1d
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetoothBNEP_NNI.cpp
@@ -0,0 +1,29 @@
+#include "bluetoothBNEPedit.h"
+#include "bluetoothBNEP_NNI.h"
+#include "bluetooth_NN.h"
+
+ABluetoothBNEP::ABluetoothBNEP( BluetoothBNEPNetNode * PNN ) : ANetNodeInstance( PNN ) {
+ GUI = 0;
+ RT = 0;
+}
+
+void ABluetoothBNEP::setSpecificAttribute( QString & , QString & ) {
+}
+
+void ABluetoothBNEP::saveSpecificAttribute( QTextStream & ) {
+}
+
+QWidget * ABluetoothBNEP::edit( QWidget * parent ) {
+ GUI = new BluetoothBNEPEdit( parent );
+ GUI->showData( Data );
+ return GUI;
+}
+
+QString ABluetoothBNEP::acceptable( void ) {
+ return ( GUI ) ? GUI->acceptable( ) : QString();
+}
+
+void ABluetoothBNEP::commit( void ) {
+ if( GUI && GUI->commit( Data ) )
+ setModified( 1 );
+}
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothBNEP_NNI.h b/noncore/settings/networksettings2/bluetooth/bluetoothBNEP_NNI.h
new file mode 100644
index 0000000..a21f574
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetoothBNEP_NNI.h
@@ -0,0 +1,43 @@
+#ifndef BLUETOOTHBNEP_H
+#define BLUETOOTHBNEP_H
+
+#include <netnode.h>
+#include "bluetoothBNEPdata.h"
+#include "bluetoothBNEPrun.h"
+
+class BluetoothBNEPNetNode;
+class BluetoothBNEPEdit;
+
+class ABluetoothBNEP : public ANetNodeInstance {
+
+public :
+
+ ABluetoothBNEP( BluetoothBNEPNetNode * PNN );
+
+ QWidget * edit( QWidget * parent );
+ QString acceptable( void );
+ void commit( void );
+
+ RuntimeInfo * runtime( void )
+ { if( RT == 0 )
+ RT = new BluetoothBNEPRun( this, Data );
+ return RT;
+ }
+
+ virtual void * data( void )
+ { return (void *)&Data; }
+
+protected :
+
+ virtual void setSpecificAttribute( QString & Attr, QString & Value );
+ virtual void saveSpecificAttribute( QTextStream & TS );
+
+private :
+
+ BluetoothBNEPEdit * GUI;
+ BluetoothBNEPData Data;
+ BluetoothBNEPRun * RT;
+
+};
+
+#endif
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothBNEPdata.h b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPdata.h
new file mode 100644
index 0000000..037b7b1
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPdata.h
@@ -0,0 +1,8 @@
+#ifndef BLUETOOTHBNEP_DATA_H
+#define BLUETOOTHBNEP_DATA_H
+
+typedef struct BluetoothBNEPData {
+ long x;
+} BluetoothBNEPData_t;
+
+#endif
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothBNEPedit.cpp b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPedit.cpp
new file mode 100644
index 0000000..a27f1a7
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPedit.cpp
@@ -0,0 +1,18 @@
+#include <GUIUtils.h>
+#include "bluetoothBNEPedit.h"
+
+
+BluetoothBNEPEdit::BluetoothBNEPEdit( QWidget * Parent ) : BluetoothBNEPGUI( Parent ){
+
+}
+
+QString BluetoothBNEPEdit::acceptable( void ) {
+ return QString();
+}
+
+bool BluetoothBNEPEdit::commit( BluetoothBNEPData & Data ) {
+ return 0;
+}
+
+void BluetoothBNEPEdit::showData( BluetoothBNEPData & Data ) {
+}
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothBNEPedit.h b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPedit.h
new file mode 100644
index 0000000..d546f1e
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPedit.h
@@ -0,0 +1,13 @@
+#include "bluetoothBNEPdata.h"
+#include "bluetoothBNEPGUI.h"
+
+class BluetoothBNEPEdit : public BluetoothBNEPGUI {
+
+public :
+
+ BluetoothBNEPEdit( QWidget * parent );
+
+ QString acceptable( void );
+ bool commit( BluetoothBNEPData & Data );
+ void showData( BluetoothBNEPData & Data );
+};
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothBNEPrun.h b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPrun.h
new file mode 100644
index 0000000..e65b378
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPrun.h
@@ -0,0 +1,32 @@
+#include <asdevice.h>
+#include "bluetoothBNEPdata.h"
+
+class BluetoothBNEPRun : public AsDevice {
+
+public :
+
+ BluetoothBNEPRun( ANetNodeInstance * NNI,
+ BluetoothBNEPData & Data ) : AsDevice( NNI )
+ { }
+
+ virtual long count( void )
+ { return 3; }
+ virtual QString genNic( long nr )
+ { QString S; return S.sprintf( "bnep%ld", nr ); }
+ virtual AsDevice * device( void )
+ { return asDevice(); }
+
+protected :
+
+ void detectState( NodeCollection * )
+ { }
+
+ bool setState( NodeCollection * , Action_t )
+ { return 0; }
+
+ bool canSetState( State_t , Action_t )
+ { return 0; }
+
+ bool handlesInterface( const QString & )
+ { return 0; }
+};
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMGUI.ui b/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMGUI.ui
new file mode 100644
index 0000000..2754a70
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMGUI.ui
@@ -0,0 +1,131 @@
+<!DOCTYPE UI><UI>
+<class>BluetoothRFCOMMGUI</class>
+<widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>BluetoothRFCOMM_FRM</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>283</width>
+ <height>199</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>caption</name>
+ <string>Bluetooth-rfcomm</string>
+ </property>
+ <property>
+ <name>layoutMargin</name>
+ </property>
+ <property>
+ <name>layoutSpacing</name>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>2</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>2</number>
+ </property>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout4</cstring>
+ </property>
+ <hbox>
+ <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>TextLabel4</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Name</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Name_LE</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel3</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Description</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QMultiLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Description_LE</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout5</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Automatic_CB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Start automatically</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Confirm_CB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Confirm before start</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+</widget>
+</UI>
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMM_NNI.cpp b/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMM_NNI.cpp
new file mode 100644
index 0000000..7ec8288
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMM_NNI.cpp
@@ -0,0 +1,30 @@
+#include "bluetoothRFCOMMedit.h"
+#include "bluetoothRFCOMM_NNI.h"
+#include "bluetooth_NN.h"
+
+ABluetoothRFCOMM::ABluetoothRFCOMM( BluetoothRFCOMMNetNode * PNN ) : ANetNodeInstance( PNN ) {
+ GUI = 0;
+ RT = 0;
+}
+
+void ABluetoothRFCOMM::setSpecificAttribute( QString & , QString & ) {
+}
+
+void ABluetoothRFCOMM::saveSpecificAttribute( QTextStream & ) {
+}
+
+
+QWidget * ABluetoothRFCOMM::edit( QWidget * parent ) {
+ GUI = new BluetoothRFCOMMEdit( parent );
+ GUI->showData( Data );
+ return GUI;
+}
+
+QString ABluetoothRFCOMM::acceptable( void ) {
+ return ( GUI ) ? GUI->acceptable( ) : QString();
+}
+
+void ABluetoothRFCOMM::commit( void ) {
+ if( GUI->commit( Data ) )
+ setModified( 1 );
+}
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMM_NNI.h b/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMM_NNI.h
new file mode 100644
index 0000000..4dd508d
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMM_NNI.h
@@ -0,0 +1,42 @@
+#ifndef BLUETOOTHRFCOMM_H
+#define BLUETOOTHRFCOMM_H
+
+#include <netnode.h>
+#include "bluetoothRFCOMMdata.h"
+#include "bluetoothRFCOMMrun.h"
+
+class BluetoothRFCOMMNetNode;
+class BluetoothRFCOMMEdit;
+
+class ABluetoothRFCOMM : public ANetNodeInstance {
+
+public :
+
+ ABluetoothRFCOMM( BluetoothRFCOMMNetNode * PNN );
+
+ QWidget * edit( QWidget * parent );
+ QString acceptable( void );
+ void commit( void );
+
+ RuntimeInfo * runtime( void )
+ { if( RT )
+ RT = new BluetoothRFCOMMRun( this, Data );
+ return RT;
+ }
+
+ virtual void * data( void )
+ { return (void *)&Data; }
+
+protected :
+
+ virtual void setSpecificAttribute( QString & Attr, QString & Value );
+ virtual void saveSpecificAttribute( QTextStream & TS );
+
+private :
+
+ BluetoothRFCOMMEdit * GUI;
+ BluetoothRFCOMMData Data;
+ BluetoothRFCOMMRun * RT;
+};
+
+#endif
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMdata.h b/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMdata.h
new file mode 100644
index 0000000..18f0d38
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMdata.h
@@ -0,0 +1,18 @@
+#ifndef BLUETOOTHRFCOMM_DATA_H
+#define BLUETOOTHRFCOMM_DATA_H
+
+#include <qstring.h>
+
+typedef struct BluetoothRFCOMMData {
+ QString Device;
+ QString LockFile;
+ long Speed;
+ short Parity;
+ short DataBits;
+ short StopBits;
+ bool HardwareControl;
+ bool SoftwareControl;
+
+} BluetoothRFCOMMData_t;
+
+#endif
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMedit.cpp b/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMedit.cpp
new file mode 100644
index 0000000..d3ddab4
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMedit.cpp
@@ -0,0 +1,18 @@
+#include <GUIUtils.h>
+#include "bluetoothRFCOMMedit.h"
+
+BluetoothRFCOMMEdit::BluetoothRFCOMMEdit( QWidget * Parent ) :
+ BluetoothRFCOMMGUI( Parent ){
+
+}
+
+QString BluetoothRFCOMMEdit::acceptable( void ) {
+ return QString();
+}
+
+void BluetoothRFCOMMEdit::showData( BluetoothRFCOMMData & Data ) {
+}
+
+bool BluetoothRFCOMMEdit::commit( BluetoothRFCOMMData & Data ) {
+ return 0;
+}
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMedit.h b/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMedit.h
new file mode 100644
index 0000000..14a6d64
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMedit.h
@@ -0,0 +1,13 @@
+#include "bluetoothRFCOMMdata.h"
+#include "bluetoothRFCOMMGUI.h"
+
+class BluetoothRFCOMMEdit : public BluetoothRFCOMMGUI {
+
+public :
+
+ BluetoothRFCOMMEdit( QWidget * parent );
+
+ QString acceptable( void );
+ void showData( BluetoothRFCOMMData & Data );
+ bool commit( BluetoothRFCOMMData & Data );
+};
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMrun.h b/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMrun.h
new file mode 100644
index 0000000..87116e2
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMrun.h
@@ -0,0 +1,22 @@
+#include <asline.h>
+#include "bluetoothRFCOMMdata.h"
+
+class BluetoothRFCOMMRun : public AsLine {
+
+public :
+
+ BluetoothRFCOMMRun( ANetNodeInstance * NNI,
+ BluetoothRFCOMMData & Data ) : AsLine( NNI )
+ { }
+
+protected :
+
+ void detectState( NodeCollection * )
+ { }
+
+ bool setState( NodeCollection * , Action_t )
+ { return 0; }
+
+ bool canSetState( State_t , Action_t )
+ { return 0; }
+};
diff --git a/noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp b/noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp
new file mode 100644
index 0000000..91be153
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp
@@ -0,0 +1,120 @@
+#include "bluetooth_NN.h"
+#include "bluetoothBNEP_NNI.h"
+#include "bluetoothRFCOMM_NNI.h"
+
+//
+//
+// BLUETOOTH PAN/NAP node
+//
+//
+
+static const char * BluetoothBNEPNeeds[] =
+ { 0
+ };
+
+/**
+ * Constructor, find all of the possible interfaces
+ */
+BluetoothBNEPNetNode::BluetoothBNEPNetNode() : ANetNode() {
+}
+
+/**
+ * Delete any interfaces that we own.
+ */
+BluetoothBNEPNetNode::~BluetoothBNEPNetNode(){
+}
+
+const QString BluetoothBNEPNetNode::nodeDescription(){
+ return tr("\
+<p>Sets up a bluetooth link using the bluetooth Network profile.</p>\
+<p>Use this to connect two computing devices.</p>\
+"
+);
+}
+
+ANetNodeInstance * BluetoothBNEPNetNode::createInstance( void ) {
+ return new ABluetoothBNEP( this );
+}
+
+const char ** BluetoothBNEPNetNode::needs( void ) {
+ return BluetoothBNEPNeeds;
+}
+
+const char * BluetoothBNEPNetNode::provides( void ) {
+ return "device";
+}
+
+bool BluetoothBNEPNetNode::generateProperFilesFor(
+ ANetNodeInstance * ) {
+ return 1;
+}
+
+bool BluetoothBNEPNetNode::hasDataFor( const QString & ) {
+ return 0;
+}
+
+bool BluetoothBNEPNetNode::generateDataForCommonFile(
+ SystemFile & ,
+ long ,
+ ANetNodeInstance * ) {
+ return 1;
+}
+
+//
+//
+// BLUETOOTH PAN/NAP node
+//
+//
+
+static const char * BluetoothRFCOMMNeeds[] =
+ { 0
+ };
+
+BluetoothRFCOMMNetNode::BluetoothRFCOMMNetNode() : ANetNode() {
+}
+
+BluetoothRFCOMMNetNode::~BluetoothRFCOMMNetNode(){
+}
+
+const QString BluetoothRFCOMMNetNode::nodeDescription(){
+ return tr("\
+<p>Sets up a bluetooth link using the bluetooth serial profile.</p>\
+<p>Use this to connect to a GSM.</p>\
+"
+);
+}
+
+ANetNodeInstance * BluetoothRFCOMMNetNode::createInstance( void ) {
+ return new ABluetoothRFCOMM( this );
+}
+
+const char ** BluetoothRFCOMMNetNode::needs( void ) {
+ return BluetoothRFCOMMNeeds;
+}
+
+const char * BluetoothRFCOMMNetNode::provides( void ) {
+ return "line";
+}
+
+bool BluetoothRFCOMMNetNode::generateProperFilesFor(
+ ANetNodeInstance * ) {
+ return 0;
+}
+
+bool BluetoothRFCOMMNetNode::hasDataFor( const QString & ) {
+ return 0;
+}
+
+bool BluetoothRFCOMMNetNode::generateDataForCommonFile(
+ SystemFile & ,
+ long,
+ ANetNodeInstance * ) {
+ return 0;
+}
+
+extern "C" {
+void create_plugin( QList<ANetNode> & PNN ) {
+ PNN.append( new BluetoothBNEPNetNode() );
+ PNN.append( new BluetoothRFCOMMNetNode() );
+}
+}
diff --git a/noncore/settings/networksettings2/bluetooth/bluetooth_NN.h b/noncore/settings/networksettings2/bluetooth/bluetooth_NN.h
new file mode 100644
index 0000000..ee346f0
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/bluetooth_NN.h
@@ -0,0 +1,75 @@
+#ifndef BLUETOOTH_NETNODE_H
+#define BLUETOOTH_NETNODE_H
+
+#include "netnode.h"
+
+class ABluetoothBNEP;
+
+class BluetoothBNEPNetNode : public ANetNode {
+
+ Q_OBJECT
+
+public:
+
+ BluetoothBNEPNetNode();
+ virtual ~BluetoothBNEPNetNode();
+
+ virtual const QString pixmapName()
+ { return "bluetooth"; }
+
+ virtual const QString nodeName()
+ { return tr("Bluetooth PAN/NAP"); }
+
+ virtual const QString nodeDescription() ;
+
+ virtual ANetNodeInstance * createInstance( void );
+
+ virtual const char ** needs( void );
+ virtual const char * provides( void );
+
+ virtual bool generateProperFilesFor( ANetNodeInstance * NNI );
+ virtual bool hasDataFor( const QString & S );
+ virtual bool generateDataForCommonFile(
+ SystemFile & SF, long DevNr, ANetNodeInstance * NNI );
+
+private:
+
+};
+
+class BluetoothRFCOMMNetNode : public ANetNode {
+
+ Q_OBJECT
+
+public:
+
+ BluetoothRFCOMMNetNode();
+ virtual ~BluetoothRFCOMMNetNode();
+
+ virtual const QString pixmapName()
+ { return "bluetooth"; }
+
+ virtual const QString nodeName()
+ { return tr("Bluetooth serial link"); }
+
+ virtual const QString nodeDescription() ;
+
+ virtual ANetNodeInstance * createInstance( void );
+
+ virtual const char ** needs( void );
+ virtual const char * provides( void );
+
+ virtual bool generateProperFilesFor( ANetNodeInstance * NNI );
+ virtual bool hasDataFor( const QString & S );
+ virtual bool generateDataForCommonFile(
+ SystemFile & SF, long, ANetNodeInstance * NNI );
+
+private:
+
+};
+
+extern "C"
+{
+ void create_plugin( QList<ANetNode> & PNN );
+};
+
+#endif
diff --git a/noncore/settings/networksettings2/bluetooth/config.in b/noncore/settings/networksettings2/bluetooth/config.in
new file mode 100644
index 0000000..2b527cc
--- a/dev/null
+++ b/noncore/settings/networksettings2/bluetooth/config.in
@@ -0,0 +1,4 @@
+ config NS2BT
+ boolean "opie-networksettings2plugin-bluetooth (set up BLUETOOTH)"
+ default "n" if NS2
+ depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE && NS2 && NS2CORE