summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/opietooth2/OTIcons.h
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/opietooth2/OTIcons.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/networksettings2/opietooth2/OTIcons.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/opietooth2/OTIcons.h b/noncore/settings/networksettings2/opietooth2/OTIcons.h
new file mode 100644
index 0000000..ee10831
--- a/dev/null
+++ b/noncore/settings/networksettings2/opietooth2/OTIcons.h
@@ -0,0 +1,54 @@
1#ifndef OTICONLOADER_H
2#define OTICONLOADER_H
3
4#include <OTUUID.h>
5#include <qpixmap.h>
6#include <qmap.h>
7
8namespace Opietooth2 {
9
10class OTIcons {
11
12public:
13
14 OTIcons();
15 ~OTIcons();
16
17 /**
18 * Returns an icon depending on device class
19 * @param deviceClass the device class name
20 * @return the pixmap
21 */
22 QPixmap deviceIcon( const QString & );
23
24 /**
25 * Returns an icon depending on service id
26 * @param serviceClass the service id
27 * @return the pixmap
28 * @return true if found
29 */
30 QPixmap serviceIcon( int, bool & );
31
32 // returns all UUID that represent channels with modem function
33 const UUIDVector & modems()
34 { return Modems; }
35
36 // returns all UUID that represent channels with network
37 const UUIDVector & network()
38 { return Networks; }
39
40 // set Sub to find icons in .../Icons dir
41 QPixmap loadPixmap( const QString &, bool Sub = 0 );
42
43private:
44
45 // first ist id, second is icon name
46 QMap<QString,QString> deviceIcons;
47 QMap<int,QString> serviceIcons;
48 UUIDVector Modems;
49 UUIDVector Networks;
50
51};
52}
53
54#endif