Diffstat (limited to 'noncore/net/opietooth/lib/services.h') (more/less context) (ignore whitespace changes)
-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 @@ -8,2 +8,17 @@ 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 { @@ -11,4 +26,15 @@ namespace OpieTooth { 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& ); }; @@ -20,2 +46,4 @@ namespace OpieTooth { + Services &operator=( const Services& ); + friend bool operator==(const Services&, const Services& ); QString serviceName()const; @@ -31,2 +59,11 @@ namespace OpieTooth { + 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; |