summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp15
-rw-r--r--noncore/net/opietooth/manager/btdeviceitem.h4
-rw-r--r--noncore/net/opietooth/manager/manager.pro5
-rw-r--r--noncore/net/opietooth/manager/obexdialog.cpp2
-rw-r--r--noncore/net/opietooth/manager/obexdialog.h39
-rw-r--r--noncore/net/opietooth/manager/popuphelper.cpp2
-rw-r--r--noncore/net/opietooth/manager/popuphelper.h4
-rw-r--r--noncore/net/opietooth/manager/pppdialog.cpp2
-rw-r--r--noncore/net/opietooth/manager/pppdialog.h35
-rw-r--r--noncore/net/opietooth/manager/stdpopups.cpp11
-rw-r--r--noncore/net/opietooth/manager/stdpopups.h7
11 files changed, 71 insertions, 55 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index c81d4d1..ec05a95 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -272,32 +272,34 @@ void BlueBase::addSearchedDevices( const QValueList<RemoteDevice> &newDevices )
272 addServicesToDevice( deviceItem ); 272 addServicesToDevice( deviceItem );
273 } 273 }
274} 274}
275 275
276 276
277/** 277/**
278 * Action that is toggled on entrys on click 278 * Action that is toggled on entrys on click
279 */ 279 */
280void BlueBase::startServiceActionClicked( QListViewItem */*item*/ ) { 280void BlueBase::startServiceActionClicked( QListViewItem */*item*/ ) {
281} 281}
282 282
283 283
284/** 284/**
285 * Action that are toggled on hold (mostly QPopups i guess) 285 * Action that are toggled on hold (mostly QPopups i guess)
286 */ 286 */
287void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & point, int /*column*/ ) { 287void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & point, int /*column*/ ) {
288 if (!item )
289 return;
288 290
289 QPopupMenu *menu = new QPopupMenu(); 291 QPopupMenu *menu = new QPopupMenu();
290 int ret=0; 292 int ret=0;
291 293
292 if ( ((BTListItem*)item)->type() == "device") { 294 if ( ((BTListItem*)item)->type() == "device") {
293 295
294 QPopupMenu *groups = new QPopupMenu(); 296 QPopupMenu *groups = new QPopupMenu();
295 297
296 menu->insertItem( tr("rescan sevices:"), 0); 298 menu->insertItem( tr("rescan sevices:"), 0);
297 menu->insertItem( tr("to group"), groups , 1); 299 menu->insertItem( tr("to group"), groups , 1);
298 // menu->insertItem( tr("bound device"), 2); 300 // menu->insertItem( tr("bound device"), 2);
299 menu->insertItem( tr("delete"), 3); 301 menu->insertItem( tr("delete"), 3);
300 302
301 ret = menu->exec( point , 0); 303 ret = menu->exec( point , 0);
302 304
303 switch(ret) { 305 switch(ret) {
@@ -329,60 +331,61 @@ void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & poin
329 * We will create one through the factory and will insert 331 * We will create one through the factory and will insert
330 * our Separator + ShowInfo into the menu or create a new 332 * our Separator + ShowInfo into the menu or create a new
331 * one if the factory returns 0 333 * one if the factory returns 0
332 * PopupMenu deletion is kind of weird. 334 * PopupMenu deletion is kind of weird.
333 * If escaped( -1 ) or any of our items were chosen we'll 335 * If escaped( -1 ) or any of our items were chosen we'll
334 * delete the PopupMenu otherwise it's the responsibility of 336 * delete the PopupMenu otherwise it's the responsibility of
335 * the PopupMenu to delete itself 337 * the PopupMenu to delete itself
336 * 338 *
337 */ 339 */
338 else if ( ((BTListItem*)item)->type() == "service") { 340 else if ( ((BTListItem*)item)->type() == "service") {
339 BTServiceItem* service = (BTServiceItem*)item; 341 BTServiceItem* service = (BTServiceItem*)item;
340 QMap<int, QString> list = service->services().classIdList(); 342 QMap<int, QString> list = service->services().classIdList();
341 QMap<int, QString>::Iterator it = list.begin(); 343 QMap<int, QString>::Iterator it = list.begin();
342 QPopupMenu *popup =0l; 344 QPopupMenu *popup =0l;
343 if ( it != list.end() ) { 345 if ( it != list.end() ) {
344 qWarning("Searching id %d %s", it.key(), it.data().latin1() ); 346 qWarning("Searching id %d %s", it.key(), it.data().latin1() );
345 popup = m_popHelper.find( it.key(), 347 popup = m_popHelper.find( it.key() /*1*/,
346 service->services(), 348 service->services(),
347 service->parent() ); 349 (BTDeviceItem*)service->parent() );
348 }else { 350 }else {
349 qWarning("Empty"); 351 qWarning("Empty");
350 } 352 }
351 353
352 if ( popup == 0l ) { 354 if ( popup == 0l ) {
353 qWarning("factory returned 0l"); 355 qWarning("factory returned 0l");
354 popup = new QPopupMenu(); 356 popup = new QPopupMenu();
355 } 357 }
356 358
357 int test1 = popup->insertItem( tr("Test1:"), 0); 359 int test1 = popup->insertItem( tr("Test1:"), 0);
358 int con = popup->insertItem( tr("connect"), 1); 360 int con = popup->insertItem( tr("connect"), 1);
359 int del = popup->insertItem( tr("delete"), 2); 361 int del = popup->insertItem( tr("delete"), 2);
360 362
361 ret = popup->exec( point ); 363 ret = popup->exec( point );
362 364 qWarning("returned from exec() ");
363 if ( ret == -1 ) 365 if ( ret == -1 )
364 delete popup; 366 ;
365 else if ( ret == test1 ) 367 else if ( ret == test1 )
366 delete popup; 368 ;
367 else if ( ret == con ) 369 else if ( ret == con )
368 delete popup; 370 ;
369 else if ( ret == del ) { 371 else if ( ret == del ) {
370 // take item first? -zecke 372 // take item first? -zecke
371 delete item; 373 delete item;
372 } 374 }
375 delete popup;
373 } 376 }
374 delete menu; 377 delete menu;
375} 378}
376 379
377 380
378/** 381/**
379 * Search and display avail. services for a device (on expand from device listing) 382 * Search and display avail. services for a device (on expand from device listing)
380 * @param item the service item returned 383 * @param item the service item returned
381 */ 384 */
382void BlueBase::addServicesToDevice( BTDeviceItem * item ) { 385void BlueBase::addServicesToDevice( BTDeviceItem * item ) {
383 qDebug("addServicesToDevice"); 386 qDebug("addServicesToDevice");
384 // row of mac adress text(3) 387 // row of mac adress text(3)
385 RemoteDevice device = item->remoteDevice(); 388 RemoteDevice device = item->remoteDevice();
386 m_deviceList.insert( item->mac() , item ); 389 m_deviceList.insert( item->mac() , item );
387 // and some time later I get a signal foundServices( const QString& device, Services::ValueList ); back 390 // and some time later I get a signal foundServices( const QString& device, Services::ValueList ); back
388 m_localDevice->searchServices( device ); 391 m_localDevice->searchServices( device );
diff --git a/noncore/net/opietooth/manager/btdeviceitem.h b/noncore/net/opietooth/manager/btdeviceitem.h
index ae51483..e4c6ce7 100644
--- a/noncore/net/opietooth/manager/btdeviceitem.h
+++ b/noncore/net/opietooth/manager/btdeviceitem.h
@@ -1,19 +1,19 @@
1 1
2#ifndef OPIE_TOOTH_BT_DEVIVE_ITEM 2#ifndef OPIE_TOOTH_BT_DEVICE_ITEM
3#define OPIE_TOOTH_BT_DEVIVE_ITEM 3#define OPIE_TOOTH_BT_DEVICE_ITEM
4 4
5 5
6#include <remotedevice.h> 6#include <remotedevice.h>
7#include "btlistitem.h" 7#include "btlistitem.h"
8 8
9namespace OpieTooth { 9namespace OpieTooth {
10 class BTDeviceItem : public BTListItem { 10 class BTDeviceItem : public BTListItem {
11 public: 11 public:
12 BTDeviceItem( QListView* parent, const RemoteDevice& dev ); 12 BTDeviceItem( QListView* parent, const RemoteDevice& dev );
13 ~BTDeviceItem(); 13 ~BTDeviceItem();
14 RemoteDevice remoteDevice() const; 14 RemoteDevice remoteDevice() const;
15 QString type()const; 15 QString type()const;
16 int typeId()const; 16 int typeId()const;
17 QString mac()const; 17 QString mac()const;
18 QString name() const; 18 QString name() const;
19 private: 19 private:
diff --git a/noncore/net/opietooth/manager/manager.pro b/noncore/net/opietooth/manager/manager.pro
index 762b028..121c069 100644
--- a/noncore/net/opietooth/manager/manager.pro
+++ b/noncore/net/opietooth/manager/manager.pro
@@ -1,34 +1,35 @@
1TEMPLATE = app 1TEMPLATE = app
2CONFIG = qt warn_on debug 2CONFIG = qt warn_on debug
3#CONFIG = qt warn_on release 3#CONFIG = qt warn_on release
4HEADERS = btconnectionitem.h btdeviceitem.h \ 4HEADERS = 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 10 devicehandler.h rfcpopup.h
11 11
12SOURCES = btconnectionitem.cpp btdeviceitem.cpp \ 12SOURCES = btconnectionitem.cpp btdeviceitem.cpp \
13 btserviceitem.cpp stdpopups.cpp \ 13 btserviceitem.cpp stdpopups.cpp \
14 popuphelper.cpp main.cpp \ 14 popuphelper.cpp main.cpp \
15 bluebase.cpp scandialog.cpp \ 15 bluebase.cpp scandialog.cpp \
16 btlistitem.cpp hciconfwrapper.cpp \ 16 btlistitem.cpp hciconfwrapper.cpp \
17 bticonloader.cpp pppdialog.cpp \ 17 bticonloader.cpp pppdialog.cpp \
18 obexdialog.cpp devicehandler.cpp 18 obexdialog.cpp devicehandler.cpp \
19 rfcpopup.cpp
19INCLUDEPATH += $(OPIEDIR)/include 20INCLUDEPATH += $(OPIEDIR)/include
20INCLUDEPATH += $(OPIEDIR)/noncore/net/opietooth/lib 21INCLUDEPATH += $(OPIEDIR)/noncore/net/opietooth/lib
21DEPENDPATH += $(OPIEDIR)/include 22DEPENDPATH += $(OPIEDIR)/include
22LIBS += -lqpe -lopietooth -lopie 23LIBS += -lqpe -lopietooth -lopie
23INTERFACES = bluetoothbase.ui devicedialog.ui 24INTERFACES = bluetoothbase.ui devicedialog.ui
24DESTDIR = $(OPIEDIR)/bin 25DESTDIR = $(OPIEDIR)/bin
25TARGET = bluetooth-manager 26TARGET = bluetooth-manager
26 27
27TRANSLATIONS = ../../../../i18n/de/bluetooth-manager.ts \ 28TRANSLATIONS = ../../../../i18n/de/bluetooth-manager.ts \
28 ../../../../i18n/en/bluetooth-manager.ts \ 29 ../../../../i18n/en/bluetooth-manager.ts \
29 ../../../../i18n/es/bluetooth-manager.ts \ 30 ../../../../i18n/es/bluetooth-manager.ts \
30 ../../../../i18n/fr/bluetooth-manager.ts \ 31 ../../../../i18n/fr/bluetooth-manager.ts \
31 ../../../../i18n/hu/bluetooth-manager.ts \ 32 ../../../../i18n/hu/bluetooth-manager.ts \
32 ../../../../i18n/ja/bluetooth-manager.ts \ 33 ../../../../i18n/ja/bluetooth-manager.ts \
33 ../../../../i18n/ko/bluetooth-manager.ts \ 34 ../../../../i18n/ko/bluetooth-manager.ts \
34 ../../../../i18n/no/bluetooth-manager.ts \ 35 ../../../../i18n/no/bluetooth-manager.ts \
diff --git a/noncore/net/opietooth/manager/obexdialog.cpp b/noncore/net/opietooth/manager/obexdialog.cpp
index cb142eb..15973d4 100644
--- a/noncore/net/opietooth/manager/obexdialog.cpp
+++ b/noncore/net/opietooth/manager/obexdialog.cpp
@@ -1,30 +1,32 @@
1 1
2#include "obexdialog.h" 2#include "obexdialog.h"
3#include <qpushbutton.h> 3#include <qpushbutton.h>
4#include <qmultilineedit.h> 4#include <qmultilineedit.h>
5#include <qlineedit.h> 5#include <qlineedit.h>
6#include <qlayout.h> 6#include <qlayout.h>
7#include <qlabel.h> 7#include <qlabel.h>
8#include <qfileinfo.h> 8#include <qfileinfo.h>
9 9
10#include <qpe/resource.h> 10#include <qpe/resource.h>
11 11
12#include <opie/oprocess.h> 12#include <opie/oprocess.h>
13#include <opie/ofiledialog.h> 13#include <opie/ofiledialog.h>
14 14
15using namespace OpieTooth;
16
15ObexDialog::ObexDialog( QWidget* parent, const char* name, bool modal, WFlags fl, const QString& device ) 17ObexDialog::ObexDialog( QWidget* parent, const char* name, bool modal, WFlags fl, const QString& device )
16 : QDialog( parent, name, modal, fl ) { 18 : QDialog( parent, name, modal, fl ) {
17 19
18 if ( !name ) 20 if ( !name )
19 setName( "ObexDialog" ); 21 setName( "ObexDialog" );
20 setCaption( tr( "beam files " ) ) ; 22 setCaption( tr( "beam files " ) ) ;
21 23
22 m_device = device; 24 m_device = device;
23 25
24 layout = new QVBoxLayout( this ); 26 layout = new QVBoxLayout( this );
25 27
26 QLabel* info = new QLabel( this ); 28 QLabel* info = new QLabel( this );
27 info->setText( tr("Which file should be beamed?") ); 29 info->setText( tr("Which file should be beamed?") );
28 30
29 cmdLine = new QLineEdit( this ); 31 cmdLine = new QLineEdit( this );
30 32
diff --git a/noncore/net/opietooth/manager/obexdialog.h b/noncore/net/opietooth/manager/obexdialog.h
index 1a73b57..28d2be2 100644
--- a/noncore/net/opietooth/manager/obexdialog.h
+++ b/noncore/net/opietooth/manager/obexdialog.h
@@ -1,36 +1,39 @@
1#ifndef OBEXDIALOG_H 1#ifndef OBEXDIALOG_H
2#define OBEXDIALOG_H 2#define OBEXDIALOG_H
3 3
4 4
5#include <qdialog.h> 5#include <qdialog.h>
6#include <opie/oprocess.h> 6#include <opie/oprocess.h>
7 7
8class QVBoxLayout; 8class QVBoxLayout;
9class QPushButton; 9class QPushButton;
10class QMultiLineEdit; 10class QMultiLineEdit;
11class QLineEdit; 11class QLineEdit;
12 12
13class ObexDialog : public QDialog {
14 13
15 Q_OBJECT 14namespace OpieTooth {
16 15
17public: 16 class ObexDialog : public QDialog {
18 ObexDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0, const QString& device = 0);
19 ~ObexDialog();
20 17
18 Q_OBJECT
19
20 public:
21 ObexDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0, const QString& device = 0);
22 ~ObexDialog();
21 23
22private slots:
23 void browse();
24 void sendData();
25
26protected:
27 QVBoxLayout* layout;
28 QLineEdit* cmdLine;
29 QLineEdit* chNameLine;
30 QPushButton* sendButton;
31private:
32 // Device that is used
33 QString m_device;
34};
35 24
25private slots:
26 void browse();
27 void sendData();
28
29 protected:
30 QVBoxLayout* layout;
31 QLineEdit* cmdLine;
32 QLineEdit* chNameLine;
33 QPushButton* sendButton;
34 private:
35 // Device that is used
36 QString m_device;
37 };
38}
36#endif 39#endif
diff --git a/noncore/net/opietooth/manager/popuphelper.cpp b/noncore/net/opietooth/manager/popuphelper.cpp
index ba91e04..4a4daf2 100644
--- a/noncore/net/opietooth/manager/popuphelper.cpp
+++ b/noncore/net/opietooth/manager/popuphelper.cpp
@@ -4,32 +4,32 @@
4#include "popuphelper.h" 4#include "popuphelper.h"
5 5
6using namespace OpieTooth; 6using namespace OpieTooth;
7 7
8PopupHelper::PopupHelper() { 8PopupHelper::PopupHelper() {
9 init(); 9 init();
10} 10}
11 11
12PopupHelper::~PopupHelper() { 12PopupHelper::~PopupHelper() {
13 13
14} 14}
15 15
16void PopupHelper::insert( int id, popupFactory fact ) { 16void PopupHelper::insert( int id, popupFactory fact ) {
17 m_map.insert(id, fact ); 17 m_map.insert(id, fact );
18} 18}
19 19
20QPopupMenu* PopupHelper::find( int id, const Services& ser, QListViewItem* item ) { 20QPopupMenu* PopupHelper::find( int id, const Services& ser, BTDeviceItem* item ) {
21 //qWarning("find"); 21 //qWarning("find");
22 FactoryMap::Iterator it = m_map.find(id ); 22 FactoryMap::Iterator it = m_map.find(id );
23 if ( it != m_map.end() ) { 23 if ( it != m_map.end() ) {
24 //qWarning("found"); 24 //qWarning("found");
25 popupFactory fact = it.data(); 25 popupFactory fact = it.data();
26 return (*fact)(ser, item); 26 return (*fact)(ser, item);
27 } 27 }
28 return 0l; 28 return 0l;
29} 29}
30 30
31void PopupHelper::init() { 31void PopupHelper::init() {
32 insert( 4355, newRfcComPopup ); 32 insert( 4355, newRfcComPopup );
33 insert( 4353, newRfcComPopup ); 33 insert( 4353, newRfcComPopup );
34 insert( 3, newObexPushPopup ); 34 insert( 3, newObexPushPopup );
35} 35}
diff --git a/noncore/net/opietooth/manager/popuphelper.h b/noncore/net/opietooth/manager/popuphelper.h
index 7541ac5..6d4d413 100644
--- a/noncore/net/opietooth/manager/popuphelper.h
+++ b/noncore/net/opietooth/manager/popuphelper.h
@@ -1,27 +1,27 @@
1 1
2#ifndef OPIE_TOOTH_POPUP_HELPER 2#ifndef OPIE_TOOTH_POPUP_HELPER
3#define OPIE_TOOTH_POPUP_HELPER 3#define OPIE_TOOTH_POPUP_HELPER
4 4
5#include <qlistview.h> 5#include <qlistview.h>
6#include <qpopupmenu.h> 6#include <qpopupmenu.h>
7#include <qmap.h> 7#include <qmap.h>
8 8
9#include <services.h> 9#include <services.h>
10 10
11namespace OpieTooth { 11namespace OpieTooth {
12 typedef QPopupMenu* (*popupFactory)(const Services&, QListViewItem*); 12 typedef QPopupMenu* (*popupFactory)(const Services&, BTDeviceItem*);
13 typedef QMap<int, popupFactory> FactoryMap; 13 typedef QMap<int, popupFactory> FactoryMap;
14 class PopupHelper { 14 class PopupHelper {
15 public: 15 public:
16 PopupHelper(); 16 PopupHelper();
17 ~PopupHelper(); 17 ~PopupHelper();
18 void insert( int id, popupFactory fact ); 18 void insert( int id, popupFactory fact );
19 QPopupMenu* find( int id, const Services&, QListViewItem* ); 19 QPopupMenu* find( int id, const Services&, BTDeviceItem* );
20 private: 20 private:
21 void init(); 21 void init();
22 FactoryMap m_map; 22 FactoryMap m_map;
23 23
24 }; 24 };
25}; 25};
26 26
27#endif 27#endif
diff --git a/noncore/net/opietooth/manager/pppdialog.cpp b/noncore/net/opietooth/manager/pppdialog.cpp
index 4d926a5..1f347ce 100644
--- a/noncore/net/opietooth/manager/pppdialog.cpp
+++ b/noncore/net/opietooth/manager/pppdialog.cpp
@@ -1,25 +1,27 @@
1 1
2#include "pppdialog.h" 2#include "pppdialog.h"
3#include <qpushbutton.h> 3#include <qpushbutton.h>
4#include <qmultilineedit.h> 4#include <qmultilineedit.h>
5#include <qlineedit.h> 5#include <qlineedit.h>
6#include <qlayout.h> 6#include <qlayout.h>
7#include <qlabel.h> 7#include <qlabel.h>
8#include <opie/oprocess.h> 8#include <opie/oprocess.h>
9 9
10using namespace OpieTooth;
11
10PPPDialog::PPPDialog( QWidget* parent, const char* name, bool modal, WFlags fl, const QString& device ) 12PPPDialog::PPPDialog( QWidget* parent, const char* name, bool modal, WFlags fl, const QString& device )
11 : QDialog( parent, name, modal, fl ) { 13 : QDialog( parent, name, modal, fl ) {
12 14
13 if ( !name ) 15 if ( !name )
14 setName( "PPPDialog" ); 16 setName( "PPPDialog" );
15 setCaption( tr( "ppp connection " ) ) ; 17 setCaption( tr( "ppp connection " ) ) ;
16 18
17 m_device = device; 19 m_device = device;
18 20
19 layout = new QVBoxLayout( this ); 21 layout = new QVBoxLayout( this );
20 22
21 QLabel* info = new QLabel( this ); 23 QLabel* info = new QLabel( this );
22 info->setText( tr("Enter an ppp script name:") ); 24 info->setText( tr("Enter an ppp script name:") );
23 25
24 cmdLine = new QLineEdit( this ); 26 cmdLine = new QLineEdit( this );
25 27
diff --git a/noncore/net/opietooth/manager/pppdialog.h b/noncore/net/opietooth/manager/pppdialog.h
index b80b73d..6fdc90a 100644
--- a/noncore/net/opietooth/manager/pppdialog.h
+++ b/noncore/net/opietooth/manager/pppdialog.h
@@ -1,34 +1,37 @@
1#ifndef PPPDIALOG_H 1#ifndef PPPDIALOG_H
2#define PPPDIALOG_H 2#define PPPDIALOG_H
3 3
4 4
5#include <qdialog.h> 5#include <qdialog.h>
6#include <opie/oprocess.h> 6#include <opie/oprocess.h>
7 7
8class QVBoxLayout; 8class QVBoxLayout;
9class QPushButton; 9class QPushButton;
10class QMultiLineEdit; 10class QMultiLineEdit;
11class QLineEdit; 11class QLineEdit;
12 12
13class PPPDialog : public QDialog {
14 13
15 Q_OBJECT 14namespace OpieTooth {
16 15
17public: 16 class PPPDialog : public QDialog {
18 PPPDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0, const QString& device = 0);
19 ~PPPDialog();
20 17
18 Q_OBJECT
21 19
22private slots: 20 public:
23 void connectToDevice(); 21 PPPDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0, const QString& device = 0);
24 void fillOutPut( OProcess* pppDial, char* cha, int len ); 22 ~PPPDialog();
25protected:
26 QVBoxLayout* layout;
27 QLineEdit* cmdLine;
28 QPushButton* connectButton;
29 QMultiLineEdit* outPut;
30 23
31private: 24 private slots:
32 QString m_device; 25 void connectToDevice();
33}; 26 void fillOutPut( OProcess* pppDial, char* cha, int len );
27 protected:
28 QVBoxLayout* layout;
29 QLineEdit* cmdLine;
30 QPushButton* connectButton;
31 QMultiLineEdit* outPut;
32
33 private:
34 QString m_device;
35 };
36}
34#endif 37#endif
diff --git a/noncore/net/opietooth/manager/stdpopups.cpp b/noncore/net/opietooth/manager/stdpopups.cpp
index 2290b9a..750365e 100644
--- a/noncore/net/opietooth/manager/stdpopups.cpp
+++ b/noncore/net/opietooth/manager/stdpopups.cpp
@@ -1,16 +1,15 @@
1 1
2//#include "rfccompopup.h" 2#include "rfcpopup.h"
3 3
4#include "stdpopups.h" 4#include "stdpopups.h"
5 5
6extern "C" { 6extern "C" {
7 7
8 QPopupMenu* newRfcComPopup( const OpieTooth::Services& servive, QListViewItem* item ) { 8 QPopupMenu* newRfcComPopup( const OpieTooth::Services& servive, OpieTooth::BTDeviceItem* item ) {
9 // return OpieTooth::RfcComPopup( servive, item ); 9 return new OpieTooth::RfcCommPopup(/* servive, item*/ ); // fix spellin RfComm vs. RfcComm and paramaters
10 return 0l; 10 //return 0l;
11 } 11 }
12 QPopupMenu* newObexPushPopup( const OpieTooth::Services&, QListViewItem* ) { 12 QPopupMenu* newObexPushPopup( const OpieTooth::Services&, OpieTooth::BTDeviceItem* ) {
13 return 0l; 13 return 0l;
14 } 14 }
15
16} 15}
diff --git a/noncore/net/opietooth/manager/stdpopups.h b/noncore/net/opietooth/manager/stdpopups.h
index 185d68d..b57d4de 100644
--- a/noncore/net/opietooth/manager/stdpopups.h
+++ b/noncore/net/opietooth/manager/stdpopups.h
@@ -1,15 +1,18 @@
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"
11
10extern "C" { 12extern "C" {
11QPopupMenu* newRfcComPopup( const OpieTooth::Services&, QListViewItem* ); 13
12QPopupMenu* newObexPushPopup( const OpieTooth::Services&, QListViewItem* ); 14 QPopupMenu* newRfcComPopup( const OpieTooth::Services&, OpieTooth::BTDeviceItem* );
15 QPopupMenu* newObexPushPopup( const OpieTooth::Services&, OpieTooth::BTDeviceItem* );
13} 16}
14 17
15#endif 18#endif