summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-06-23 20:07:29 (UTC)
committer harlekin <harlekin>2002-06-23 20:07:29 (UTC)
commit7b861d2f14bdb50558863354522dee7c7a9ef34d (patch) (side-by-side diff)
treebb7633ab55e6564f47e9fd16321fa5841c055671
parented7e4fe3f0f838957c0830b8357d2252327dc938 (diff)
downloadopie-7b861d2f14bdb50558863354522dee7c7a9ef34d.zip
opie-7b861d2f14bdb50558863354522dee7c7a9ef34d.tar.gz
opie-7b861d2f14bdb50558863354522dee7c7a9ef34d.tar.bz2
update
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp8
-rw-r--r--noncore/net/opietooth/manager/bluebase.h2
-rw-r--r--noncore/net/opietooth/manager/btlistitem.cpp11
-rw-r--r--noncore/net/opietooth/manager/btlistitem.h6
-rw-r--r--noncore/net/opietooth/manager/manager.pro4
5 files changed, 17 insertions, 14 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index 772dbd1..77eb62b 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -56,18 +56,19 @@ namespace OpieTooth {
// not good since lib is async
// connect( ListView2, SIGNAL( expanded ( QListViewItem* ) ),
// this, SLOT( addServicesToDevice( QListViewItem * ) ) );
connect( ListView2, SIGNAL( clicked( QListViewItem* )),
this, SLOT( startServiceActionClicked( QListViewItem* ) ) );
connect( ListView2, SIGNAL( rightButtonClicked( QListViewItem *, const QPoint &, int ) ),
this, SLOT(startServiceActionHold( QListViewItem *, const QPoint &, int) ) );
connect( localDevice , SIGNAL( foundServices( const QString& , Services::ValueList ) ),
- this, SLOT( addServicesToDevice( const QString& , Services::ValueList ) ) );
-
+ this, SLOT( addServicesToDevice( const QString& , Services::ValueList ) ) );
+ // connect( localDevice, SIGNAL( available( const QString& device, bool connected ) ),
+ // this, SLOT() );
//Load all icons needed
offPix = Resource::loadPixmap( "editdelete" );
onPix = Resource::loadPixmap( "installed" );
QPalette pal = this->palette();
QColor col = pal.color( QPalette::Active, QColorGroup::Background );
@@ -395,16 +396,19 @@ namespace OpieTooth {
// search by mac
localDevice->isAvailable( device->mac() );
return true;
}
+
+
+
/**
* Open the "scan for devices" dialog
*/
void BlueBase::startScan() {
ScanDialog *scan = new ScanDialog( this, "", true);
QObject::connect( scan, SIGNAL( selectedDevices( QList<RemoteDevice>& ) ),
this, SLOT( addSearchedDevices( QList<RemoteDevice>& ) ) );
diff --git a/noncore/net/opietooth/manager/bluebase.h b/noncore/net/opietooth/manager/bluebase.h
index bc48bb3..dee721d 100644
--- a/noncore/net/opietooth/manager/bluebase.h
+++ b/noncore/net/opietooth/manager/bluebase.h
@@ -22,18 +22,16 @@ class QFrame;
class QLabel;
class QPushButton;
class QTabWidget;
class QCheckBox;
namespace OpieTooth {
-
-
class BlueBase : public BluetoothBase {
Q_OBJECT
public:
BlueBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~BlueBase();
protected:
diff --git a/noncore/net/opietooth/manager/btlistitem.cpp b/noncore/net/opietooth/manager/btlistitem.cpp
index 4901710..19d1057 100644
--- a/noncore/net/opietooth/manager/btlistitem.cpp
+++ b/noncore/net/opietooth/manager/btlistitem.cpp
@@ -10,21 +10,24 @@ namespace OpieTooth {
BTListItem::BTListItem( QListViewItem * parent ) : QListViewItem( parent ) {
}
// name, and then mac and then servicetype
BTListItem::BTListItem( QListView * parent, QString name , QString mac, QString type )
- : QListViewItem( parent, name, mac, type ){
+ : QListViewItem( parent, name ){
+ setText(4, mac);
+ setText(5, type);
}
BTListItem::BTListItem( QListViewItem * parent , QString name, QString mac, QString type )
- : QListViewItem( parent, name, mac, type ){
-
+ : QListViewItem( parent, name ){
+ setText(4, mac);
+ setText(5, type);
}
BTListItem::~BTListItem() {
}
-}
+};
diff --git a/noncore/net/opietooth/manager/btlistitem.h b/noncore/net/opietooth/manager/btlistitem.h
index 28612b0..92b3803 100644
--- a/noncore/net/opietooth/manager/btlistitem.h
+++ b/noncore/net/opietooth/manager/btlistitem.h
@@ -1,24 +1,22 @@
#ifndef BTLISTITEM_H
#define BTLISTITEM_H
#include <qlistview.h>
namespace OpieTooth {
class BTListItem : public QListViewItem {
- Q_OBJECT
public:
-
BTListItem( QListView * parent );
BTListItem( QListViewItem * parent );
// name, and then mac and then servicetype
BTListItem( QListView * , QString, QString, QString );
BTListItem( QListViewItem * parent , QString, QString , QString );
~BTListItem();
- }
-}
+ };
+};
#endif
diff --git a/noncore/net/opietooth/manager/manager.pro b/noncore/net/opietooth/manager/manager.pro
index 1d86684..3754869 100644
--- a/noncore/net/opietooth/manager/manager.pro
+++ b/noncore/net/opietooth/manager/manager.pro
@@ -1,12 +1,12 @@
TEMPLATE = app
CONFIG = qt warn_on debug
#CONFIG = qt warn_on release
-HEADERS = bluebase.h scandialog.h
-SOURCES = main.cpp bluebase.cpp scandialog.cpp
+HEADERS = bluebase.h scandialog.h btlistitem.h
+SOURCES = main.cpp bluebase.cpp scandialog.cpp btlistitem.cpp
INCLUDEPATH += $(OPIEDIR)/include
INCLUDEPATH += $(OPIEDIR)/noncore/net/opietooth/lib
DEPENDPATH += $(OPIEDIR)/include
LIBS += -lqpe -lopietooth -lopie
INTERFACES = bluetoothbase.ui devicedialog.ui
TARGET = $(OPIEDIR)/bin/bluetooth-manager