summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/services.h41
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
@@ -7,9 +7,35 @@
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:
@@ -19,4 +45,6 @@ namespace OpieTooth {
~Services();
+ Services &operator=( const Services& );
+ friend bool operator==(const Services&, const Services& );
QString serviceName()const;
void setServiceName( const QString& service );
@@ -30,4 +58,13 @@ namespace OpieTooth {
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;