blob: 1b48009ab8bbff8cd8037d95a7b2b92c5920fbbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
|