summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bticonloader.h
authorharlekin <harlekin>2002-07-01 20:10:07 (UTC)
committer harlekin <harlekin>2002-07-01 20:10:07 (UTC)
commit3c6fd2159f4ff609408a2b5c645ee5a454d01325 (patch) (side-by-side diff)
tree644ac4b759d2adaa3f233acf3e4913801a350625 /noncore/net/opietooth/manager/bticonloader.h
parentfcdf02d10c738c95748f082eaf40cb47db6d2975 (diff)
downloadopie-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.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 @@
+#ifndef BTICONLOADER_H
+#define BTICONLOADER_H
+
+#include <qpixmap.h>
+#include <qmap.h>
+
+namespace OpieTooth {
+
+ class BTIconLoader {
+
+ public:
+
+ BTIconLoader();
+ ~BTIconLoader();
+
+ /**
+ * Returns an icon depending on device class
+ * @param deviceClass the device class id
+ * @return the pixmap
+ */
+ QPixmap deviceIcon( const QString &deviceClass );
+
+ /**
+ * Returns an icon depending on service id
+ * @param serviceClass the service id
+ * @return the pixmap
+ */
+ QPixmap serviceIcon( const QString &serviceClass );
+
+ private:
+ // first ist id, second is icon name
+ QMap<QString,QString> deviceIcons;
+ QMap<QString,QString> serviceIcons;
+ };
+}
+
+#endif