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

rfcommconfhandler.h

Go to the documentation of this file.
00001 #ifndef RFCOMMCONFHANDLER
00002 #define RFCOMMCONFHANDLER
00003 
00004 #include <qstring.h>
00005 #include <qfile.h>
00006 #include <qobject.h>
00007 #include <qmap.h>
00008 
00009 namespace OpieTooth {
00010 
00011     class RfCommConfObject {
00012         
00013     public:
00014         RfCommConfObject( int number, QString mac, int channel, QString comment );
00015         ~RfCommConfObject();
00016         
00017         void setNumber( int number );
00018         int number() { return m_number; };
00019         void setMac( QString mac );
00020         QString mac() { return m_mac; };
00021         void setChannel( int channel );
00022         int channel() { return m_channel; };
00023         void setComment( QString comment );
00024         QString comment() { return m_comment; };
00025 
00026 
00027     private:
00028         int m_number;
00029         QString m_mac;
00030         int m_channel;
00031         QString m_comment;
00032         
00033     };
00034     
00035     class RfCommConfHandler  {
00036         
00037     public:
00038         RfCommConfHandler( const QString & filename );
00039         ~RfCommConfHandler();
00040 
00041         void save( QMap<QString, RfCommConfObject*> devices );
00042         
00043         QMap<QString, RfCommConfObject*> foundEntries();
00044         
00045     private:
00046         void load();
00047 
00048         QString m_filename;
00049         QMap<QString, RfCommConfObject*> m_foundEntries;
00050     };
00051 
00052 }
00053 
00054 #endif

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