author | zecke <zecke> | 2002-05-30 19:07:10 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-05-30 19:07:10 (UTC) |
commit | de93428a4984c5cae7c1cc1e6cbf84139cb9a09d (patch) (side-by-side diff) | |
tree | 63f6dbd8b2488c329a2df7fd4e62c8861e38a8a4 | |
parent | 961cc05f4469d1df004010903110d0d936400c17 (diff) | |
download | opie-de93428a4984c5cae7c1cc1e6cbf84139cb9a09d.zip opie-de93428a4984c5cae7c1cc1e6cbf84139cb9a09d.tar.gz opie-de93428a4984c5cae7c1cc1e6cbf84139cb9a09d.tar.bz2 |
interface updates
-rw-r--r-- | noncore/net/opietooth/lib/services.h | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/noncore/net/opietooth/lib/services.h b/noncore/net/opietooth/lib/services.h index 52d4893..7701f12 100644 --- a/noncore/net/opietooth/lib/services.h +++ b/noncore/net/opietooth/lib/services.h @@ -3,35 +3,72 @@ #define OpieToothServices_H #include <qvaluelist.h> namespace OpieTooth { class Services { + class ProfileDesriptor{ + public: + typedef QValueList<ProfileDescriptor> ValueList; + ProfileDescriptor(); + ProfileDescriptor(const QString &id, uint, uint version ); + ProfileDescriptor(const ProfileDescriptor& ); + QString id()const; + void setId(const QString& id); + void setId(uint ); + uint idInt()const; + uint version()const; + void setVersion(uint version ); + ProfileDescriptor &operator=( const ProfileDescriptor ); + friend bool operator==(const ProfileDescriptor&, const ProfileDescriptor& ); + }; class ProtocolDescriptor { public: typedef QValueList<ProtocolDescriptor> ValueList; - ProtocolDescriptor(const QString& ); - + ProtocolDescriptor(); + ProtocolDescriptor(const QString&, uint, uint channel ); // Q_UINT8 ? + ProtocolDescriptot(const ProtocolDescriptor& ); + ~ProtocolDescriptor(); + QString name()const; + void setName(const QString& ); + uint id()const; + void setId(uint ); + uint port()const; + void setPort(uint ); + ProtocolDescriptor &operator=( const ProtocolDescriptor& ); + friend bool operator==( const ProtocolDescription&, + const ProtocolDescription& ); }; public: typedef QValueList<Services> ValueList; Services(); Services(const Services& service ); ~Services(); + Services &operator=( const Services& ); + friend bool operator==(const Services&, const Services& ); QString serviceName()const; void setServiceName( const QString& service ); int recHandle()const; void setRecHandle( int ); QString classIdList()const; void setClassIdList( const QString& ); int classIdListInt()const; void setClassIdList(int ); + void insertProtocolDescriptor(const ProtocolDescriptor& ); + void clearProtocolDescriptorList(); + void removeProtocolDescriptor( const ProtocolDescriptor& ); + ProtocolDescriptor::ValueList protocolDescriptorList()const; + + void insertProfileDescriptor( const ProfileDescriptor& ); + void clearProfileDescriptorList(); + void removeProfileDescriptor(const ProfileDescriptor& ); + ProfileDescriptor::ValueList profileDescriptor()const; }; }; #endif |