author | wimpie <wimpie> | 2005-01-04 01:42:25 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2005-01-04 01:42:25 (UTC) |
commit | 2487b0a05f502e7410715460f390cc80e7e76fd9 (patch) (side-by-side diff) | |
tree | 430dce90a1bdff8eb85cbf1004db094ab6653ab9 /noncore/settings/networksettings2/opietooth2/OTIcons.h | |
parent | e2094d408c9102f8866aafbe725a65f25fdef063 (diff) | |
download | opie-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) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/opietooth2/OTIcons.h | 54 |
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 @@ +#ifndef OTICONLOADER_H +#define OTICONLOADER_H + +#include <OTUUID.h> +#include <qpixmap.h> +#include <qmap.h> + +namespace Opietooth2 { + +class OTIcons { + +public: + + OTIcons(); + ~OTIcons(); + + /** + * Returns an icon depending on device class + * @param deviceClass the device class name + * @return the pixmap + */ + QPixmap deviceIcon( const QString & ); + + /** + * Returns an icon depending on service id + * @param serviceClass the service id + * @return the pixmap + * @return true if found + */ + QPixmap serviceIcon( int, bool & ); + + // returns all UUID that represent channels with modem function + const UUIDVector & modems() + { return Modems; } + + // returns all UUID that represent channels with network + const UUIDVector & network() + { return Networks; } + + // set Sub to find icons in .../Icons dir + QPixmap loadPixmap( const QString &, bool Sub = 0 ); + +private: + + // first ist id, second is icon name + QMap<QString,QString> deviceIcons; + QMap<int,QString> serviceIcons; + UUIDVector Modems; + UUIDVector Networks; + +}; +} + +#endif |