author | harlekin <harlekin> | 2002-07-01 20:10:07 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-07-01 20:10:07 (UTC) |
commit | 3c6fd2159f4ff609408a2b5c645ee5a454d01325 (patch) (unidiff) | |
tree | 644ac4b759d2adaa3f233acf3e4913801a350625 /noncore/net/opietooth/manager/bticonloader.h | |
parent | fcdf02d10c738c95748f082eaf40cb47db6d2975 (diff) | |
download | opie-3c6fd2159f4ff609408a2b5c645ee5a454d01325.zip opie-3c6fd2159f4ff609408a2b5c645ee5a454d01325.tar.gz opie-3c6fd2159f4ff609408a2b5c645ee5a454d01325.tar.bz2 |
added ability to schon icons next to services
Diffstat (limited to 'noncore/net/opietooth/manager/bticonloader.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/bticonloader.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/bticonloader.h b/noncore/net/opietooth/manager/bticonloader.h new file mode 100644 index 0000000..1b48009 --- a/dev/null +++ b/noncore/net/opietooth/manager/bticonloader.h | |||
@@ -0,0 +1,37 @@ | |||
1 | #ifndef BTICONLOADER_H | ||
2 | #define BTICONLOADER_H | ||
3 | |||
4 | #include <qpixmap.h> | ||
5 | #include <qmap.h> | ||
6 | |||
7 | namespace OpieTooth { | ||
8 | |||
9 | class BTIconLoader { | ||
10 | |||
11 | public: | ||
12 | |||
13 | BTIconLoader(); | ||
14 | ~BTIconLoader(); | ||
15 | |||
16 | /** | ||
17 | * Returns an icon depending on device class | ||
18 | * @param deviceClass the device class id | ||
19 | * @return the pixmap | ||
20 | */ | ||
21 | QPixmap deviceIcon( const QString &deviceClass ); | ||
22 | |||
23 | /** | ||
24 | * Returns an icon depending on service id | ||
25 | * @param serviceClass the service id | ||
26 | * @return the pixmap | ||
27 | */ | ||
28 | QPixmap serviceIcon( const QString &serviceClass ); | ||
29 | |||
30 | private: | ||
31 | // first ist id, second is icon name | ||
32 | QMap<QString,QString> deviceIcons; | ||
33 | QMap<QString,QString> serviceIcons; | ||
34 | }; | ||
35 | } | ||
36 | |||
37 | #endif | ||