From 2487b0a05f502e7410715460f390cc80e7e76fd9 Mon Sep 17 00:00:00 2001 From: wimpie Date: Tue, 04 Jan 2005 01:42:25 +0000 Subject: *** empty log message *** --- (limited to 'noncore/settings/networksettings2/opietooth2/OTIcons.h') 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 +#include +#include + +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 deviceIcons; + QMap serviceIcons; + UUIDVector Modems; + UUIDVector Networks; + +}; +} + +#endif -- cgit v0.9.0.2