summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/opietooth2/OTIcons.h
authorwimpie <wimpie>2005-01-04 01:42:25 (UTC)
committer wimpie <wimpie>2005-01-04 01:42:25 (UTC)
commit2487b0a05f502e7410715460f390cc80e7e76fd9 (patch) (unidiff)
tree430dce90a1bdff8eb85cbf1004db094ab6653ab9 /noncore/settings/networksettings2/opietooth2/OTIcons.h
parente2094d408c9102f8866aafbe725a65f25fdef063 (diff)
downloadopie-2487b0a05f502e7410715460f390cc80e7e76fd9.zip
opie-2487b0a05f502e7410715460f390cc80e7e76fd9.tar.gz
opie-2487b0a05f502e7410715460f390cc80e7e76fd9.tar.bz2
*** empty log message ***
Diffstat (limited to 'noncore/settings/networksettings2/opietooth2/OTIcons.h') (more/less context) (ignore 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