summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bticonloader.cpp
authorzecke <zecke>2002-07-13 12:53:59 (UTC)
committer zecke <zecke>2002-07-13 12:53:59 (UTC)
commit8be0a8e108eaf8ff99301aa175298ddeb48eae67 (patch) (side-by-side diff)
tree0fbe4d10476cb39d290fa4a3d6e8bdf76390c30c /noncore/net/opietooth/manager/bticonloader.cpp
parent6337e3836497ede8bb47aea5c7b65f4f8c08c4cd (diff)
downloadopie-8be0a8e108eaf8ff99301aa175298ddeb48eae67.zip
opie-8be0a8e108eaf8ff99301aa175298ddeb48eae67.tar.gz
opie-8be0a8e108eaf8ff99301aa175298ddeb48eae67.tar.bz2
Icon loader updates
and LIB updates
Diffstat (limited to 'noncore/net/opietooth/manager/bticonloader.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bticonloader.cpp61
1 files changed, 31 insertions, 30 deletions
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
@@ -10,32 +10,33 @@ namespace OpieTooth {
BTIconLoader::BTIconLoader() {
// still need to find out real ids
- deviceIcons.insert( "100" , "computer_16" );
- deviceIcons.insert( "101" , "phone_16" );
- deviceIcons.insert( "102" , "brain_16" );
- deviceIcons.insert( "103" , "conduit_16" );
-
-
- serviceIcons.insert( "0x1105" , "obex_16" ); //OBEXObjectPush
- serviceIcons.insert( "0x1106" , "obex_16" ); //OBEXFileTransfer
- serviceIcons.insert( "0x1111" , "print_16" ); //Fax
- serviceIcons.insert( "0x1101" , "serial_16" ); //SerialPort
- serviceIcons.insert( "0x1104" , "sync_16" ); //IrMCSync
- serviceIcons.insert( "0x1107" , "sync_16" ); //IrMCSyncCommand
- serviceIcons.insert( "0x1102" , "network_16" ); //LANAccessUsingPPP
- serviceIcons.insert( "0x1103" , "network_16"); //DialupNetworking
- serviceIcons.insert( "0x1108" , "phone_16"); // Headset
- serviceIcons.insert( "0x1112" , "audio_16"); //HeadsetAudioGateway
- serviceIcons.insert( "0x1109" , "phone_16"); // CordlessTelephony
- serviceIcons.insert( "0x110A" , "audio_16"); // AudioSource
- serviceIcons.insert( "0x110B" , "audio_16"); // AudioSink
- serviceIcons.insert( "0x1126" , "print_16" ); //HCR_Print
- serviceIcons.insert( "0x1128" , "phone_16" ); //Common_ISDN_Access
-
- serviceIcons.insert( "0x1201" , "network_16" ); //GenericNetworking
- serviceIcons.insert( "0x1202" , "folder_16" ); //GenericFileTransfer
- serviceIcons.insert( "0x1128" , "audio_16" ); //GenericAudio
- serviceIcons.insert( "0x1128" , "phone_16" ); //GenericTelephony
+ deviceIcons.insert( 100 , "computer_16" );
+ deviceIcons.insert( 101 , "phone_16" );
+ deviceIcons.insert( 102 , "brain_16" );
+ deviceIcons.insert( 103 , "conduit_16" );
+
+
+ serviceIcons.insert( 4357 , "obex_16" ); //OBEXObjectPush
+ serviceIcons.insert( 4358 , "obex_16" ); //OBEXFileTransfer
+ serviceIcons.insert( 4369 , "print_16" ); //Fax
+ serviceIcons.insert( 4353 , "serial_16" ); //SerialPort
+ serviceIcons.insert( 4356 , "sync_16" ); //IrMCSync
+ serviceIcons.insert( 4359 , "sync_16" ); //IrMCSyncCommand
+ serviceIcons.insert( 4354 , "network_16" ); //LANAccessUsingPPP
+ serviceIcons.insert( 4355 , "network_16"); //DialupNetworking
+ serviceIcons.insert( 4360 , "phone_16"); // Headset
+ serviceIcons.insert( 4370 , "audio_16"); //HeadsetAudioGateway
+ serviceIcons.insert( 4361 , "phone_16"); // CordlessTelephony
+ serviceIcons.insert( 4362 , "audio_16"); // AudioSource
+ serviceIcons.insert( 4363 , "audio_16"); // AudioSink
+ serviceIcons.insert( 4390 , "print_16" ); //HCR_Print
+ serviceIcons.insert( 4392 , "phone_16" ); //Common_ISDN_Access
+
+ serviceIcons.insert( 4609 , "network_16" ); //GenericNetworking
+ serviceIcons.insert( 4610 , "folder_16" ); //GenericFileTransfer
+ serviceIcons.insert( 4392 , "audio_16" ); //GenericAudio
+ // serviceIcons.insert( 4392 , "phone_16" ); //GenericTelephony
+ // the above is duplicated? -zecke
//serviceIcons.insert( "106" , "link_16" );
//serviceIcons.insert( "107" , "misc_16" );
@@ -44,11 +45,11 @@ namespace OpieTooth {
BTIconLoader::~BTIconLoader() {
}
- QPixmap BTIconLoader::deviceIcon( const QString &deviceClass ) {
+ QPixmap BTIconLoader::deviceIcon( int deviceClass ) {
QString iconName;
- QMap<QString, QString>::Iterator it;
+ QMap<int, QString>::Iterator it;
it = deviceIcons.find( deviceClass );
iconName = it.data();
@@ -59,11 +60,11 @@ namespace OpieTooth {
return( Resource::loadPixmap( "opietooth/icons/" + iconName ) );
}
- QPixmap BTIconLoader::serviceIcon( const QString &serviceClass ) {
+ QPixmap BTIconLoader::serviceIcon( int serviceClass ) {
QString iconName;
- QMap<QString, QString>::Iterator it;
+ QMap<int, QString>::Iterator it;
it = deviceIcons.find( serviceClass );
iconName = it.data();