summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp10
-rw-r--r--noncore/net/opietooth/manager/bticonloader.cpp61
-rw-r--r--noncore/net/opietooth/manager/bticonloader.h8
-rw-r--r--noncore/net/opietooth/manager/btserviceitem.cpp3
-rw-r--r--noncore/net/opietooth/manager/btserviceitem.h1
-rw-r--r--noncore/net/opietooth/manager/stdpopups.cpp5
6 files changed, 52 insertions, 36 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index 9cfeaa2..189001d 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -316,2 +316,3 @@ void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & poin
316 } else if ( ((BTListItem*)item)->type() == "service") { 316 } else if ( ((BTListItem*)item)->type() == "service") {
317
317 menu->insertItem( tr("Test1:"), 0); 318 menu->insertItem( tr("Test1:"), 0);
@@ -372,5 +373,12 @@ void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & poin
372 // add services 373 // add services
374 QMap<int, QString> list;
375 QMap<int, QString>::Iterator classIt;
373 for( it2 = servicesList.begin(); it2 != servicesList.end(); ++it2 ) { 376 for( it2 = servicesList.begin(); it2 != servicesList.end(); ++it2 ) {
374 serviceItem = new BTServiceItem( deviceItem , (*it2) ); 377 serviceItem = new BTServiceItem( deviceItem , (*it2) );
375 serviceItem->setPixmap( 0, m_iconLoader->serviceIcon( (*it2).classIdList() ) ); 378 list = (*it2).classIdList();
379 classIt = list.begin();
380 int classId;
381 if ( classIt != list.end() )
382 classId = classIt.key();
383 serviceItem->setPixmap( 0, m_iconLoader->serviceIcon( classId ) );
376 } 384 }
diff --git a/noncore/net/opietooth/manager/bticonloader.cpp b/noncore/net/opietooth/manager/bticonloader.cpp
index 3fb0edd..f299117 100644
--- a/noncore/net/opietooth/manager/bticonloader.cpp
+++ b/noncore/net/opietooth/manager/bticonloader.cpp
@@ -12,28 +12,29 @@ namespace OpieTooth {
12 // still need to find out real ids 12 // still need to find out real ids
13 deviceIcons.insert( "100" , "computer_16" ); 13 deviceIcons.insert( 100 , "computer_16" );
14 deviceIcons.insert( "101" , "phone_16" ); 14 deviceIcons.insert( 101 , "phone_16" );
15 deviceIcons.insert( "102" , "brain_16" ); 15 deviceIcons.insert( 102 , "brain_16" );
16 deviceIcons.insert( "103" , "conduit_16" ); 16 deviceIcons.insert( 103 , "conduit_16" );
17 17
18 18
19 serviceIcons.insert( "0x1105" , "obex_16" ); //OBEXObjectPush 19 serviceIcons.insert( 4357 , "obex_16" ); //OBEXObjectPush
20 serviceIcons.insert( "0x1106" , "obex_16" ); //OBEXFileTransfer 20 serviceIcons.insert( 4358 , "obex_16" ); //OBEXFileTransfer
21 serviceIcons.insert( "0x1111" , "print_16" ); //Fax 21 serviceIcons.insert( 4369 , "print_16" ); //Fax
22 serviceIcons.insert( "0x1101" , "serial_16" ); //SerialPort 22 serviceIcons.insert( 4353 , "serial_16" ); //SerialPort
23 serviceIcons.insert( "0x1104" , "sync_16" ); //IrMCSync 23 serviceIcons.insert( 4356 , "sync_16" ); //IrMCSync
24 serviceIcons.insert( "0x1107" , "sync_16" ); //IrMCSyncCommand 24 serviceIcons.insert( 4359 , "sync_16" ); //IrMCSyncCommand
25 serviceIcons.insert( "0x1102" , "network_16" ); //LANAccessUsingPPP 25 serviceIcons.insert( 4354 , "network_16" ); //LANAccessUsingPPP
26 serviceIcons.insert( "0x1103" , "network_16"); //DialupNetworking 26 serviceIcons.insert( 4355 , "network_16"); //DialupNetworking
27 serviceIcons.insert( "0x1108" , "phone_16"); // Headset 27 serviceIcons.insert( 4360 , "phone_16"); // Headset
28 serviceIcons.insert( "0x1112" , "audio_16"); //HeadsetAudioGateway 28 serviceIcons.insert( 4370 , "audio_16"); //HeadsetAudioGateway
29 serviceIcons.insert( "0x1109" , "phone_16"); // CordlessTelephony 29 serviceIcons.insert( 4361 , "phone_16"); // CordlessTelephony
30 serviceIcons.insert( "0x110A" , "audio_16"); // AudioSource 30 serviceIcons.insert( 4362 , "audio_16"); // AudioSource
31 serviceIcons.insert( "0x110B" , "audio_16"); // AudioSink 31 serviceIcons.insert( 4363 , "audio_16"); // AudioSink
32 serviceIcons.insert( "0x1126" , "print_16" ); //HCR_Print 32 serviceIcons.insert( 4390 , "print_16" ); //HCR_Print
33 serviceIcons.insert( "0x1128" , "phone_16" ); //Common_ISDN_Access 33 serviceIcons.insert( 4392 , "phone_16" ); //Common_ISDN_Access
34 34
35 serviceIcons.insert( "0x1201" , "network_16" ); //GenericNetworking 35 serviceIcons.insert( 4609 , "network_16" ); //GenericNetworking
36 serviceIcons.insert( "0x1202" , "folder_16" ); //GenericFileTransfer 36 serviceIcons.insert( 4610 , "folder_16" ); //GenericFileTransfer
37 serviceIcons.insert( "0x1128" , "audio_16" ); //GenericAudio 37 serviceIcons.insert( 4392 , "audio_16" ); //GenericAudio
38 serviceIcons.insert( "0x1128" , "phone_16" ); //GenericTelephony 38 // serviceIcons.insert( 4392 , "phone_16" ); //GenericTelephony
39 // the above is duplicated? -zecke
39 40
@@ -46,3 +47,3 @@ namespace OpieTooth {
46 47
47 QPixmap BTIconLoader::deviceIcon( const QString &deviceClass ) { 48 QPixmap BTIconLoader::deviceIcon( int deviceClass ) {
48 49
@@ -50,3 +51,3 @@ namespace OpieTooth {
50 51
51 QMap<QString, QString>::Iterator it; 52 QMap<int, QString>::Iterator it;
52 53
@@ -61,3 +62,3 @@ namespace OpieTooth {
61 62
62 QPixmap BTIconLoader::serviceIcon( const QString &serviceClass ) { 63 QPixmap BTIconLoader::serviceIcon( int serviceClass ) {
63 64
@@ -65,3 +66,3 @@ namespace OpieTooth {
65 66
66 QMap<QString, QString>::Iterator it; 67 QMap<int, QString>::Iterator it;
67 68
diff --git a/noncore/net/opietooth/manager/bticonloader.h b/noncore/net/opietooth/manager/bticonloader.h
index 1b48009..9951c4c 100644
--- a/noncore/net/opietooth/manager/bticonloader.h
+++ b/noncore/net/opietooth/manager/bticonloader.h
@@ -20,3 +20,3 @@ namespace OpieTooth {
20 */ 20 */
21 QPixmap deviceIcon( const QString &deviceClass ); 21 QPixmap deviceIcon( int );
22 22
@@ -27,3 +27,3 @@ namespace OpieTooth {
27 */ 27 */
28 QPixmap serviceIcon( const QString &serviceClass ); 28 QPixmap serviceIcon( int );
29 29
@@ -31,4 +31,4 @@ namespace OpieTooth {
31 // first ist id, second is icon name 31 // first ist id, second is icon name
32 QMap<QString,QString> deviceIcons; 32 QMap<int,QString> deviceIcons;
33 QMap<QString,QString> serviceIcons; 33 QMap<int,QString> serviceIcons;
34 }; 34 };
diff --git a/noncore/net/opietooth/manager/btserviceitem.cpp b/noncore/net/opietooth/manager/btserviceitem.cpp
index 352e793..7db93c9 100644
--- a/noncore/net/opietooth/manager/btserviceitem.cpp
+++ b/noncore/net/opietooth/manager/btserviceitem.cpp
@@ -23 +23,4 @@ Services BTServiceItem::services() const {
23} 23}
24int BTServiceItem::serviceId() const {
25 return m_service.recHandle();
26};
diff --git a/noncore/net/opietooth/manager/btserviceitem.h b/noncore/net/opietooth/manager/btserviceitem.h
index 6dbd8f1..625a5f7 100644
--- a/noncore/net/opietooth/manager/btserviceitem.h
+++ b/noncore/net/opietooth/manager/btserviceitem.h
@@ -18,2 +18,3 @@ namespace OpieTooth {
18 Services services() const; 18 Services services() const;
19 int serviceId() const;
19 private: 20 private:
diff --git a/noncore/net/opietooth/manager/stdpopups.cpp b/noncore/net/opietooth/manager/stdpopups.cpp
index 43a0f62..f462368 100644
--- a/noncore/net/opietooth/manager/stdpopups.cpp
+++ b/noncore/net/opietooth/manager/stdpopups.cpp
@@ -1,2 +1,4 @@
1 1
2//#include "rfccompopup.h"
3
2#include "stdpopups.h" 4#include "stdpopups.h"
@@ -4,3 +6,4 @@
4 6
5QPopupMenu* newRfcComPopup( const OpieTooth::Services&, QListViewItem* ) { 7QPopupMenu* newRfcComPopup( const OpieTooth::Services& servive, QListViewItem* item ) {
8 // return OpieTooth::RfcComPopup( servive, item );
6 return 0l; 9 return 0l;