Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OTIcons.h

Go to the documentation of this file.
00001 #ifndef OTICONLOADER_H
00002 #define OTICONLOADER_H
00003 
00004 #include <OTUUID.h>
00005 #include <qpixmap.h>
00006 #include <qmap.h>
00007 
00008 namespace Opietooth2 {
00009 
00010 class OTIcons {
00011 
00012 public:
00013 
00014     OTIcons();
00015     ~OTIcons();
00016 
00022     QPixmap deviceIcon( const QString & );
00023 
00030     QPixmap serviceIcon( int, bool & );
00031 
00032     // returns all UUID that represent channels with modem function
00033     const UUIDVector & modems()
00034       { return Modems; }
00035 
00036     // returns all UUID that represent channels with network
00037     const UUIDVector & network()
00038       { return Networks; }
00039 
00040     // set Sub to find icons in .../Icons dir
00041     QPixmap loadPixmap( const QString &, bool Sub = 0 );
00042 
00043 private:
00044 
00045     // first ist id, second is icon name
00046     QMap<QString,QString> deviceIcons;
00047     QMap<int,QString> serviceIcons;
00048     UUIDVector Modems;
00049     UUIDVector Networks;
00050 
00051 };
00052 }
00053 
00054 #endif

Generated on Sat Nov 5 16:17:55 2005 for OPIE by  doxygen 1.4.2