summaryrefslogtreecommitdiff
Unidiff
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 @@
7namespace OpieTooth { 7namespace OpieTooth {
8 class Services { 8 class Services {
9 class ProfileDesriptor{
10 public:
11 typedef QValueList<ProfileDescriptor> ValueList;
12 ProfileDescriptor();
13 ProfileDescriptor(const QString &id, uint, uint version );
14 ProfileDescriptor(const ProfileDescriptor& );
15 QString id()const;
16 void setId(const QString& id);
17 void setId(uint );
18 uint idInt()const;
19 uint version()const;
20 void setVersion(uint version );
21 ProfileDescriptor &operator=( const ProfileDescriptor );
22 friend bool operator==(const ProfileDescriptor&, const ProfileDescriptor& );
23 };
9 class ProtocolDescriptor { 24 class ProtocolDescriptor {
10 public: 25 public:
11 typedef QValueList<ProtocolDescriptor> ValueList; 26 typedef QValueList<ProtocolDescriptor> ValueList;
12 ProtocolDescriptor(const QString& ); 27 ProtocolDescriptor();
13 28 ProtocolDescriptor(const QString&, uint, uint channel ); // Q_UINT8 ?
29 ProtocolDescriptot(const ProtocolDescriptor& );
30 ~ProtocolDescriptor();
31 QString name()const;
32 void setName(const QString& );
33 uint id()const;
34 void setId(uint );
35 uint port()const;
36 void setPort(uint );
37 ProtocolDescriptor &operator=( const ProtocolDescriptor& );
38 friend bool operator==( const ProtocolDescription&,
39 const ProtocolDescription& );
14 }; 40 };
15 public: 41 public:
@@ -19,4 +45,6 @@ namespace OpieTooth {
19 ~Services(); 45 ~Services();
20 46
47 Services &operator=( const Services& );
48 friend bool operator==(const Services&, const Services& );
21 QString serviceName()const; 49 QString serviceName()const;
22 void setServiceName( const QString& service ); 50 void setServiceName( const QString& service );
@@ -30,4 +58,13 @@ namespace OpieTooth {
30 void setClassIdList(int ); 58 void setClassIdList(int );
31 59
60 void insertProtocolDescriptor(const ProtocolDescriptor& );
61 void clearProtocolDescriptorList();
62 void removeProtocolDescriptor( const ProtocolDescriptor& );
63 ProtocolDescriptor::ValueList protocolDescriptorList()const;
64
65 void insertProfileDescriptor( const ProfileDescriptor& );
66 void clearProfileDescriptorList();
67 void removeProfileDescriptor(const ProfileDescriptor& );
68 ProfileDescriptor::ValueList profileDescriptor()const;
32 69
33 70