summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bticonloader.h
blob: 9951c4c29adaf36b677e653f84e94ec5b4a38225 (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( int );

        /**
         * Returns an icon depending on service id
         * @param serviceClass the service id
         * @return the pixmap
         */
        QPixmap serviceIcon( int );

    private:
        // first ist id, second is icon name
        QMap<int,QString> deviceIcons;
        QMap<int,QString> serviceIcons;
    };
}

#endif