-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 @@ -6,11 +6,37 @@ 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; @@ -18,6 +44,8 @@ namespace OpieTooth { Services(const Services& service ); ~Services(); + Services &operator=( const Services& ); + friend bool operator==(const Services&, const Services& ); QString serviceName()const; void setServiceName( const QString& service ); @@ -29,6 +57,15 @@ namespace OpieTooth { 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; |