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 @@ +#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 |