author | harlekin <harlekin> | 2003-03-26 22:21:28 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-03-26 22:21:28 (UTC) |
commit | c6e22820a2c28eb8a8f6bab690a36c3fa2605387 (patch) (unidiff) | |
tree | c459c32801c65bb635a4dd331d43cf9a1c9b232c | |
parent | 0e3f3b3edcbfb26239230e00fa5dc9244bdbbf02 (diff) | |
download | opie-c6e22820a2c28eb8a8f6bab690a36c3fa2605387.zip opie-c6e22820a2c28eb8a8f6bab690a36c3fa2605387.tar.gz opie-c6e22820a2c28eb8a8f6bab690a36c3fa2605387.tar.bz2 |
added stuff for dun connections
-rw-r--r-- | noncore/net/opietooth/lib/lib.pro | 4 | ||||
-rw-r--r-- | noncore/net/opietooth/lib/libopietooth1.control | 2 | ||||
-rw-r--r-- | noncore/net/opietooth/lib/startpanconnection.cpp | 1 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/manager.pro | 4 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/panpopup.cpp | 2 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/popuphelper.cpp | 1 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/stdpopups.cpp | 5 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/stdpopups.h | 1 |
8 files changed, 14 insertions, 6 deletions
diff --git a/noncore/net/opietooth/lib/lib.pro b/noncore/net/opietooth/lib/lib.pro index d081b5c..25b3c2d 100644 --- a/noncore/net/opietooth/lib/lib.pro +++ b/noncore/net/opietooth/lib/lib.pro | |||
@@ -1,30 +1,30 @@ | |||
1 | TEMPLATE = lib | 1 | TEMPLATE = lib |
2 | CONFIG += qte warn_on release | 2 | CONFIG += qte warn_on release |
3 | HEADERS = connection.h parser.h device.h manager.h remotedevice.h services.h startpanconnection.h | 3 | HEADERS = connection.h parser.h device.h manager.h remotedevice.h services.h startpanconnection.h startdunconnection.h |
4 | SOURCES = connection.cpp parser.cc device.cc manager.cc remotedevice.cc services.cc startpanconnection.cpp | 4 | SOURCES = connection.cpp parser.cc device.cc manager.cc remotedevice.cc services.cc startpanconnection.cpp startdunconnection.cpp |
5 | TARGET = opietooth | 5 | TARGET = opietooth |
6 | INCLUDEPATH += $(OPIEDIR)/include . | 6 | INCLUDEPATH += $(OPIEDIR)/include . |
7 | DESTDIR = $(OPIEDIR)/lib$(PROJMAK) | 7 | DESTDIR = $(OPIEDIR)/lib$(PROJMAK) |
8 | LIBS += -lopie | 8 | LIBS += -lopie |
9 | #VERSION = 0.0.0 | 9 | #VERSION = 0.0.0 |
10 | 10 | ||
11 | TRANSLATIONS = ../../../../i18n/de/libopietooth.ts \ | 11 | TRANSLATIONS = ../../../../i18n/de/libopietooth.ts \ |
12 | ../../../../i18n/da/libopietooth.ts \ | 12 | ../../../../i18n/da/libopietooth.ts \ |
13 | ../../../../i18n/xx/libopietooth.ts \ | 13 | ../../../../i18n/xx/libopietooth.ts \ |
14 | ../../../../i18n/en/libopietooth.ts \ | 14 | ../../../../i18n/en/libopietooth.ts \ |
15 | ../../../../i18n/es/libopietooth.ts \ | 15 | ../../../../i18n/es/libopietooth.ts \ |
16 | ../../../../i18n/fr/libopietooth.ts \ | 16 | ../../../../i18n/fr/libopietooth.ts \ |
17 | ../../../../i18n/hu/libopietooth.ts \ | 17 | ../../../../i18n/hu/libopietooth.ts \ |
18 | ../../../../i18n/ja/libopietooth.ts \ | 18 | ../../../../i18n/ja/libopietooth.ts \ |
19 | ../../../../i18n/ko/libopietooth.ts \ | 19 | ../../../../i18n/ko/libopietooth.ts \ |
20 | ../../../../i18n/no/libopietooth.ts \ | 20 | ../../../../i18n/no/libopietooth.ts \ |
21 | ../../../../i18n/pl/libopietooth.ts \ | 21 | ../../../../i18n/pl/libopietooth.ts \ |
22 | ../../../../i18n/pt/libopietooth.ts \ | 22 | ../../../../i18n/pt/libopietooth.ts \ |
23 | ../../../../i18n/pt_BR/libopietooth.ts \ | 23 | ../../../../i18n/pt_BR/libopietooth.ts \ |
24 | ../../../../i18n/sl/libopietooth.ts \ | 24 | ../../../../i18n/sl/libopietooth.ts \ |
25 | ../../../../i18n/zh_CN/libopietooth.ts \ | 25 | ../../../../i18n/zh_CN/libopietooth.ts \ |
26 | ../../../../i18n/zh_TW/libopietooth.ts | 26 | ../../../../i18n/zh_TW/libopietooth.ts |
27 | 27 | ||
28 | 28 | ||
29 | 29 | ||
30 | include ( $(OPIEDIR)/include.pro ) | 30 | include ( $(OPIEDIR)/include.pro ) |
diff --git a/noncore/net/opietooth/lib/libopietooth1.control b/noncore/net/opietooth/lib/libopietooth1.control index 4534f02..22af489 100644 --- a/noncore/net/opietooth/lib/libopietooth1.control +++ b/noncore/net/opietooth/lib/libopietooth1.control | |||
@@ -1,9 +1,9 @@ | |||
1 | Files: $OPIEDIR/lib/libopietooth.so.1.0.0 $OPIEDIR/lib/libopietooth.so.1.0 $OPIEDIR/lib/libopietooth.so.1 | 1 | Files: $OPIEDIR/lib/libopietooth.so.1.0.0 $OPIEDIR/lib/libopietooth.so.1.0 $OPIEDIR/lib/libopietooth.so.1 |
2 | Priority: optional | 2 | Priority: optional |
3 | Section: opie/system | 3 | Section: opie/system |
4 | Maintainer: Maximilian Reiß <max.reiss@gmx.de> | 4 | Maintainer: Maximilian Reiß <max.reiss@gmx.de> |
5 | Architecture: arm | 5 | Architecture: arm |
6 | Version: $QPE_VERSION-$SUB_VERSION | 6 | Version: $QPE_VERSION-$SUB_VERSION |
7 | Replaces: libopietooth | 7 | Replaces: libopietooth |
8 | Depends: libqt2-emb (>=2.3.4), libopie, task-bluez | 8 | Depends: libqt2-emb (>=2.3.4), libopie, task-bluez, bluez-rfcomm |
9 | Description: Opie bluetooth library | 9 | Description: Opie bluetooth library |
diff --git a/noncore/net/opietooth/lib/startpanconnection.cpp b/noncore/net/opietooth/lib/startpanconnection.cpp index b68f02d..e7deede 100644 --- a/noncore/net/opietooth/lib/startpanconnection.cpp +++ b/noncore/net/opietooth/lib/startpanconnection.cpp | |||
@@ -1,67 +1,68 @@ | |||
1 | 1 | ||
2 | #include "startpanconnection.h" | 2 | #include "startpanconnection.h" |
3 | 3 | ||
4 | using namespace OpieTooth; | 4 | using namespace OpieTooth; |
5 | 5 | ||
6 | 6 | ||
7 | StartPanConnection::StartPanConnection() { | 7 | StartPanConnection::StartPanConnection() { |
8 | m_panConnect = 0l; | 8 | m_panConnect = 0l; |
9 | setConnectionType(); | 9 | setConnectionType(); |
10 | } | 10 | } |
11 | 11 | ||
12 | StartPanConnection::~StartPanConnection() { | 12 | StartPanConnection::~StartPanConnection() { |
13 | delete m_panConnect; | 13 | delete m_panConnect; |
14 | } | 14 | } |
15 | 15 | ||
16 | StartPanConnection::StartPanConnection( QString mac ) { | 16 | StartPanConnection::StartPanConnection( QString mac ) { |
17 | m_panConnect = 0l; | 17 | m_panConnect = 0l; |
18 | m_mac = mac; | 18 | m_mac = mac; |
19 | setConnectionType(); | 19 | setConnectionType(); |
20 | } | 20 | } |
21 | 21 | ||
22 | void StartPanConnection::setName( QString name ) { | 22 | void StartPanConnection::setName( QString name ) { |
23 | m_name = name; | 23 | m_name = name; |
24 | } | 24 | } |
25 | 25 | ||
26 | QString StartPanConnection::name() { | 26 | QString StartPanConnection::name() { |
27 | return m_name; | 27 | return m_name; |
28 | } | 28 | } |
29 | 29 | ||
30 | void StartPanConnection::setConnectionType() { | 30 | void StartPanConnection::setConnectionType() { |
31 | m_connectionType = Pan; | 31 | m_connectionType = Pan; |
32 | } | 32 | } |
33 | 33 | ||
34 | StartConnection::ConnectionType StartPanConnection::type() { | 34 | StartConnection::ConnectionType StartPanConnection::type() { |
35 | return m_connectionType; | 35 | return m_connectionType; |
36 | } | 36 | } |
37 | 37 | ||
38 | void StartPanConnection::start() { | 38 | void StartPanConnection::start() { |
39 | m_panConnect = new OProcess(); | 39 | m_panConnect = new OProcess(); |
40 | qDebug( "IM START " + m_mac ); | ||
40 | *m_panConnect << "pand" << "--connect" << m_mac; | 41 | *m_panConnect << "pand" << "--connect" << m_mac; |
41 | 42 | ||
42 | connect( m_panConnect, SIGNAL( processExited( OProcess* ) ) , | 43 | connect( m_panConnect, SIGNAL( processExited( OProcess* ) ) , |
43 | this, SLOT( slotExited( OProcess* ) ) ); | 44 | this, SLOT( slotExited( OProcess* ) ) ); |
44 | connect( m_panConnect, SIGNAL( receivedStdout( OProcess*, char*, int ) ), | 45 | connect( m_panConnect, SIGNAL( receivedStdout( OProcess*, char*, int ) ), |
45 | this, SLOT( slotStdOut( OProcess*, char*, int ) ) ); | 46 | this, SLOT( slotStdOut( OProcess*, char*, int ) ) ); |
46 | if (!m_panConnect->start( OProcess::NotifyOnExit, OProcess::AllOutput) ) { | 47 | if (!m_panConnect->start( OProcess::NotifyOnExit, OProcess::AllOutput) ) { |
47 | qWarning( "could not start" ); | 48 | qWarning( "could not start" ); |
48 | delete m_panConnect; | 49 | delete m_panConnect; |
49 | } | 50 | } |
50 | } | 51 | } |
51 | 52 | ||
52 | 53 | ||
53 | void StartPanConnection::slotExited( OProcess* proc ) { | 54 | void StartPanConnection::slotExited( OProcess* proc ) { |
54 | delete m_panConnect; | 55 | delete m_panConnect; |
55 | } | 56 | } |
56 | 57 | ||
57 | void StartPanConnection::slotStdOut(OProcess* proc, char* chars, int len) | 58 | void StartPanConnection::slotStdOut(OProcess* proc, char* chars, int len) |
58 | {} | 59 | {} |
59 | 60 | ||
60 | 61 | ||
61 | void StartPanConnection::stop() { | 62 | void StartPanConnection::stop() { |
62 | if ( m_panConnect ) { | 63 | if ( m_panConnect ) { |
63 | delete m_panConnect; | 64 | delete m_panConnect; |
64 | m_panConnect = 0l; | 65 | m_panConnect = 0l; |
65 | } | 66 | } |
66 | } | 67 | } |
67 | 68 | ||
diff --git a/noncore/net/opietooth/manager/manager.pro b/noncore/net/opietooth/manager/manager.pro index f813e65..6fad6ae 100644 --- a/noncore/net/opietooth/manager/manager.pro +++ b/noncore/net/opietooth/manager/manager.pro | |||
@@ -1,49 +1,49 @@ | |||
1 | TEMPLATE = app | 1 | TEMPLATE = app |
2 | CONFIG = qt warn_on debug | 2 | CONFIG = qt warn_on debug |
3 | #CONFIG = qt warn_on release | 3 | #CONFIG = qt warn_on release |
4 | HEADERS = btconnectionitem.h btdeviceitem.h \ | 4 | HEADERS = btconnectionitem.h btdeviceitem.h \ |
5 | btserviceitem.h stdpopups.h \ | 5 | btserviceitem.h stdpopups.h \ |
6 | popuphelper.h bluebase.h \ | 6 | popuphelper.h bluebase.h \ |
7 | scandialog.h btlistitem.h \ | 7 | scandialog.h btlistitem.h \ |
8 | hciconfwrapper.h bticonloader.h \ | 8 | hciconfwrapper.h bticonloader.h \ |
9 | pppdialog.h obexdialog.h \ | 9 | pppdialog.h obexdialog.h \ |
10 | devicehandler.h rfcpopup.h obexpopup.h \ | 10 | devicehandler.h rfcpopup.h obexpopup.h \ |
11 | rfcommhelper.h panpopup.h | 11 | rfcommhelper.h panpopup.h dunpopup.h |
12 | 12 | ||
13 | SOURCES = btconnectionitem.cpp btdeviceitem.cpp \ | 13 | SOURCES = btconnectionitem.cpp btdeviceitem.cpp \ |
14 | btserviceitem.cpp stdpopups.cpp \ | 14 | btserviceitem.cpp stdpopups.cpp \ |
15 | popuphelper.cpp main.cpp \ | 15 | popuphelper.cpp main.cpp \ |
16 | bluebase.cpp scandialog.cpp \ | 16 | bluebase.cpp scandialog.cpp \ |
17 | btlistitem.cpp hciconfwrapper.cpp \ | 17 | btlistitem.cpp hciconfwrapper.cpp \ |
18 | bticonloader.cpp pppdialog.cpp \ | 18 | bticonloader.cpp pppdialog.cpp \ |
19 | obexdialog.cpp devicehandler.cpp \ | 19 | obexdialog.cpp devicehandler.cpp \ |
20 | rfcpopup.cpp obexpopup.cpp \ | 20 | rfcpopup.cpp obexpopup.cpp \ |
21 | rfcommhelper.cpp panpopup.cpp | 21 | rfcommhelper.cpp panpopup.cpp dunpopup.cpp |
22 | INCLUDEPATH += $(OPIEDIR)/include | 22 | INCLUDEPATH += $(OPIEDIR)/include |
23 | INCLUDEPATH += $(OPIEDIR)/noncore/net/opietooth/lib | 23 | INCLUDEPATH += $(OPIEDIR)/noncore/net/opietooth/lib |
24 | DEPENDPATH += $(OPIEDIR)/include | 24 | DEPENDPATH += $(OPIEDIR)/include |
25 | LIBS += -lqpe -lopietooth -lopie | 25 | LIBS += -lqpe -lopietooth -lopie |
26 | INTERFACES = bluetoothbase.ui devicedialog.ui | 26 | INTERFACES = bluetoothbase.ui devicedialog.ui |
27 | DESTDIR = $(OPIEDIR)/bin | 27 | DESTDIR = $(OPIEDIR)/bin |
28 | TARGET = bluetooth-manager | 28 | TARGET = bluetooth-manager |
29 | 29 | ||
30 | TRANSLATIONS = ../../../../i18n/de/bluetooth-manager.ts \ | 30 | TRANSLATIONS = ../../../../i18n/de/bluetooth-manager.ts \ |
31 | ../../../../i18n/da/bluetooth-manager.ts \ | 31 | ../../../../i18n/da/bluetooth-manager.ts \ |
32 | ../../../../i18n/xx/bluetooth-manager.ts \ | 32 | ../../../../i18n/xx/bluetooth-manager.ts \ |
33 | ../../../../i18n/en/bluetooth-manager.ts \ | 33 | ../../../../i18n/en/bluetooth-manager.ts \ |
34 | ../../../../i18n/es/bluetooth-manager.ts \ | 34 | ../../../../i18n/es/bluetooth-manager.ts \ |
35 | ../../../../i18n/fr/bluetooth-manager.ts \ | 35 | ../../../../i18n/fr/bluetooth-manager.ts \ |
36 | ../../../../i18n/hu/bluetooth-manager.ts \ | 36 | ../../../../i18n/hu/bluetooth-manager.ts \ |
37 | ../../../../i18n/ja/bluetooth-manager.ts \ | 37 | ../../../../i18n/ja/bluetooth-manager.ts \ |
38 | ../../../../i18n/ko/bluetooth-manager.ts \ | 38 | ../../../../i18n/ko/bluetooth-manager.ts \ |
39 | ../../../../i18n/no/bluetooth-manager.ts \ | 39 | ../../../../i18n/no/bluetooth-manager.ts \ |
40 | ../../../../i18n/pl/bluetooth-manager.ts \ | 40 | ../../../../i18n/pl/bluetooth-manager.ts \ |
41 | ../../../../i18n/pt/bluetooth-manager.ts \ | 41 | ../../../../i18n/pt/bluetooth-manager.ts \ |
42 | ../../../../i18n/pt_BR/bluetooth-manager.ts \ | 42 | ../../../../i18n/pt_BR/bluetooth-manager.ts \ |
43 | ../../../../i18n/sl/bluetooth-manager.ts \ | 43 | ../../../../i18n/sl/bluetooth-manager.ts \ |
44 | ../../../../i18n/zh_CN/bluetooth-manager.ts \ | 44 | ../../../../i18n/zh_CN/bluetooth-manager.ts \ |
45 | ../../../../i18n/zh_TW/bluetooth-manager.ts | 45 | ../../../../i18n/zh_TW/bluetooth-manager.ts |
46 | 46 | ||
47 | 47 | ||
48 | 48 | ||
49 | include ( $(OPIEDIR)/include.pro ) | 49 | include ( $(OPIEDIR)/include.pro ) |
diff --git a/noncore/net/opietooth/manager/panpopup.cpp b/noncore/net/opietooth/manager/panpopup.cpp index 7a0ee55..695f349 100644 --- a/noncore/net/opietooth/manager/panpopup.cpp +++ b/noncore/net/opietooth/manager/panpopup.cpp | |||
@@ -1,63 +1,63 @@ | |||
1 | #include <qpe/qcopenvelope_qws.h> | 1 | #include <qpe/qcopenvelope_qws.h> |
2 | 2 | ||
3 | #include <qtimer.h> | 3 | #include <qtimer.h> |
4 | 4 | ||
5 | #include "panpopup.h" | 5 | #include "panpopup.h" |
6 | 6 | ||
7 | using namespace OpieTooth; | 7 | using namespace OpieTooth; |
8 | 8 | ||
9 | /* | 9 | /* |
10 | * c'tor init the QAction | 10 | * c'tor init the QAction |
11 | */ | 11 | */ |
12 | PanPopup::PanPopup( OpieTooth::BTDeviceItem* item ) : QPopupMenu() { | 12 | PanPopup::PanPopup( OpieTooth::BTDeviceItem* item ) : QPopupMenu() { |
13 | 13 | ||
14 | qWarning("PanPopup c'tor"); | 14 | qWarning("PanPopup c'tor"); |
15 | 15 | ||
16 | m_item = item; | 16 | m_item = item; |
17 | QAction *a, *b, *c; | 17 | QAction *a, *b, *c; |
18 | 18 | ||
19 | m_panconnection = 0l; | 19 | m_panconnection = 0l; |
20 | /* connect action */ | 20 | /* connect action */ |
21 | 21 | ||
22 | 22 | ||
23 | a = new QAction(); // so it's get deleted | 23 | a = new QAction(); // so it's get deleted |
24 | a->setText( tr("connect") ); | 24 | a->setText( tr("connect") ); |
25 | a->addTo( this ); | 25 | a->addTo( this ); |
26 | connect( a, SIGNAL( activated() ), this, SLOT( slotConnect() ) ); | 26 | connect( a, SIGNAL( activated() ), this, SLOT( slotConnect() ) ); |
27 | 27 | ||
28 | 28 | ||
29 | b = new QAction(); | 29 | b = new QAction(); |
30 | b->setText( tr( "connect+conf" ) ); | 30 | b->setText( tr( "connect+conf" ) ); |
31 | b->addTo( this ); | 31 | b->addTo( this ); |
32 | connect( b, SIGNAL( activated() ), this, SLOT( slotConnectAndConfig() ) ); | 32 | connect( b, SIGNAL( activated() ), this, SLOT( slotConnectAndConfig() ) ); |
33 | 33 | ||
34 | c = new QAction(); | 34 | c = new QAction(); |
35 | c->setText( tr( "disconnect" ) ); | 35 | c->setText( tr( "disconnect" ) ); |
36 | c->addTo( this ); | 36 | c->addTo( this ); |
37 | connect( c, SIGNAL( activated() ), this, SLOT( slotDisconnect() ) ); | 37 | connect( c, SIGNAL( activated() ), this, SLOT( slotDisconnect() ) ); |
38 | 38 | ||
39 | }; | 39 | }; |
40 | 40 | ||
41 | PanPopup::~PanPopup() { | 41 | PanPopup::~PanPopup() { |
42 | 42 | ||
43 | } | 43 | } |
44 | 44 | ||
45 | void PanPopup::slotConnect() { | 45 | void PanPopup::slotConnect() { |
46 | 46 | ||
47 | m_panconnection = new StartPanConnection( m_item->mac() ); | 47 | m_panconnection = new StartPanConnection( m_item->mac() ); |
48 | m_panconnection->start(); | 48 | m_panconnection->start(); |
49 | } | 49 | } |
50 | 50 | ||
51 | void PanPopup::slotDisconnect() { | 51 | void PanPopup::slotDisconnect() { |
52 | m_panconnection->stop(); | 52 | m_panconnection->stop(); |
53 | } | 53 | } |
54 | 54 | ||
55 | 55 | ||
56 | void PanPopup::slotConnectAndConfig() { | 56 | void PanPopup::slotConnectAndConfig() { |
57 | slotConnect(); | 57 | slotConnect(); |
58 | 58 | ||
59 | // more intelligence here later like passing the device ( bnepX ) | 59 | // more intelligence here later like passing the device ( bnepX ) |
60 | QCopEnvelope e( "QPE/System", "execute(QString)" ); | 60 | QCopEnvelope e( "QPE/System", "execute(QString)" ); |
61 | e << QString( "networksetup" ); | 61 | e << QString( "networksettings" ); |
62 | 62 | ||
63 | } | 63 | } |
diff --git a/noncore/net/opietooth/manager/popuphelper.cpp b/noncore/net/opietooth/manager/popuphelper.cpp index 7da7002..ab22fea 100644 --- a/noncore/net/opietooth/manager/popuphelper.cpp +++ b/noncore/net/opietooth/manager/popuphelper.cpp | |||
@@ -1,35 +1,36 @@ | |||
1 | 1 | ||
2 | #include "stdpopups.h" | 2 | #include "stdpopups.h" |
3 | #include "popuphelper.h" | 3 | #include "popuphelper.h" |
4 | 4 | ||
5 | using namespace OpieTooth; | 5 | using namespace OpieTooth; |
6 | 6 | ||
7 | PopupHelper::PopupHelper() { | 7 | PopupHelper::PopupHelper() { |
8 | init(); | 8 | init(); |
9 | } | 9 | } |
10 | 10 | ||
11 | PopupHelper::~PopupHelper() { | 11 | PopupHelper::~PopupHelper() { |
12 | } | 12 | } |
13 | 13 | ||
14 | void PopupHelper::insert( int id, popupFactory fact ) { | 14 | void PopupHelper::insert( int id, popupFactory fact ) { |
15 | m_map.insert(id, fact ); | 15 | m_map.insert(id, fact ); |
16 | } | 16 | } |
17 | 17 | ||
18 | QPopupMenu* PopupHelper::find( int id, const Services& ser, BTDeviceItem* item ) { | 18 | QPopupMenu* PopupHelper::find( int id, const Services& ser, BTDeviceItem* item ) { |
19 | //qWarning("find"); | 19 | //qWarning("find"); |
20 | FactoryMap::Iterator it = m_map.find(id ); | 20 | FactoryMap::Iterator it = m_map.find(id ); |
21 | if ( it != m_map.end() ) { | 21 | if ( it != m_map.end() ) { |
22 | //qWarning("found"); | 22 | //qWarning("found"); |
23 | popupFactory fact = it.data(); | 23 | popupFactory fact = it.data(); |
24 | return (*fact)(ser, item); | 24 | return (*fact)(ser, item); |
25 | } | 25 | } |
26 | return 0l; | 26 | return 0l; |
27 | } | 27 | } |
28 | 28 | ||
29 | void PopupHelper::init() { | 29 | void PopupHelper::init() { |
30 | insert( 4355, newRfcComPopup ); | 30 | insert( 4355, newRfcComPopup ); |
31 | insert( 4354, newDunPopup ); | ||
31 | insert( 4353, newRfcComPopup ); | 32 | insert( 4353, newRfcComPopup ); |
32 | insert( 4357, newObexPushPopup ); | 33 | insert( 4357, newObexPushPopup ); |
33 | insert( 4358, newObexPushPopup ); | 34 | insert( 4358, newObexPushPopup ); |
34 | insert( 4374, newPanPopup ); | 35 | insert( 4374, newPanPopup ); |
35 | } | 36 | } |
diff --git a/noncore/net/opietooth/manager/stdpopups.cpp b/noncore/net/opietooth/manager/stdpopups.cpp index 934e58b..38b8ee7 100644 --- a/noncore/net/opietooth/manager/stdpopups.cpp +++ b/noncore/net/opietooth/manager/stdpopups.cpp | |||
@@ -1,21 +1,26 @@ | |||
1 | 1 | ||
2 | #include "rfcpopup.h" | 2 | #include "rfcpopup.h" |
3 | #include "obexpopup.h" | 3 | #include "obexpopup.h" |
4 | #include "panpopup.h" | 4 | #include "panpopup.h" |
5 | #include "dunpopup.h" | ||
5 | 6 | ||
6 | #include "stdpopups.h" | 7 | #include "stdpopups.h" |
7 | 8 | ||
8 | extern "C" { | 9 | extern "C" { |
9 | 10 | ||
10 | QPopupMenu* newRfcComPopup( const OpieTooth::Services& service, OpieTooth::BTDeviceItem* item ) { | 11 | QPopupMenu* newRfcComPopup( const OpieTooth::Services& service, OpieTooth::BTDeviceItem* item ) { |
11 | return new OpieTooth::RfcCommPopup(/* servive, item*/ ); // fix spellin RfComm vs. RfcComm and paramaters | 12 | return new OpieTooth::RfcCommPopup(/* servive, item*/ ); // fix spellin RfComm vs. RfcComm and paramaters |
12 | //return 0l; | 13 | //return 0l; |
13 | } | 14 | } |
14 | QPopupMenu* newObexPushPopup( const OpieTooth::Services&, OpieTooth::BTDeviceItem* ) { | 15 | QPopupMenu* newObexPushPopup( const OpieTooth::Services&, OpieTooth::BTDeviceItem* ) { |
15 | return new OpieTooth::ObexPopup(); | 16 | return new OpieTooth::ObexPopup(); |
16 | } | 17 | } |
17 | QPopupMenu* newPanPopup( const OpieTooth::Services& service, OpieTooth::BTDeviceItem* item ) { | 18 | QPopupMenu* newPanPopup( const OpieTooth::Services& service, OpieTooth::BTDeviceItem* item ) { |
18 | return new OpieTooth::PanPopup( item ); | 19 | return new OpieTooth::PanPopup( item ); |
19 | } | 20 | } |
21 | |||
22 | QPopupMenu* newDunPopup( const OpieTooth::Services& service, OpieTooth::BTDeviceItem* item ) { | ||
23 | return new OpieTooth::DunPopup( item ); | ||
24 | } | ||
20 | } | 25 | } |
21 | 26 | ||
diff --git a/noncore/net/opietooth/manager/stdpopups.h b/noncore/net/opietooth/manager/stdpopups.h index 7f2f6b3..f52dc3a 100644 --- a/noncore/net/opietooth/manager/stdpopups.h +++ b/noncore/net/opietooth/manager/stdpopups.h | |||
@@ -1,19 +1,20 @@ | |||
1 | 1 | ||
2 | #ifndef OPIE_TOOTH_STD_POPUPS | 2 | #ifndef OPIE_TOOTH_STD_POPUPS |
3 | #define OPIE_TOOTH_STD_POPUPS | 3 | #define OPIE_TOOTH_STD_POPUPS |
4 | 4 | ||
5 | #include <qlistview.h> | 5 | #include <qlistview.h> |
6 | #include <qpopupmenu.h> | 6 | #include <qpopupmenu.h> |
7 | 7 | ||
8 | #include <services.h> | 8 | #include <services.h> |
9 | 9 | ||
10 | #include "btdeviceitem.h" | 10 | #include "btdeviceitem.h" |
11 | 11 | ||
12 | extern "C" { | 12 | extern "C" { |
13 | 13 | ||
14 | QPopupMenu* newRfcComPopup( const OpieTooth::Services&, OpieTooth::BTDeviceItem* ); | 14 | QPopupMenu* newRfcComPopup( const OpieTooth::Services&, OpieTooth::BTDeviceItem* ); |
15 | QPopupMenu* newObexPushPopup( const OpieTooth::Services&, OpieTooth::BTDeviceItem* ); | 15 | QPopupMenu* newObexPushPopup( const OpieTooth::Services&, OpieTooth::BTDeviceItem* ); |
16 | QPopupMenu* newPanPopup( const OpieTooth::Services&, OpieTooth::BTDeviceItem* ); | 16 | QPopupMenu* newPanPopup( const OpieTooth::Services&, OpieTooth::BTDeviceItem* ); |
17 | QPopupMenu* newDunPopup( const OpieTooth::Services&, OpieTooth::BTDeviceItem* ); | ||
17 | } | 18 | } |
18 | 19 | ||
19 | #endif | 20 | #endif |