summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bticonloader.h
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/bticonloader.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bticonloader.h37
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
7namespace 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