Diffstat (limited to 'noncore/net/opietooth/lib/services.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/services.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/noncore/net/opietooth/lib/services.h b/noncore/net/opietooth/lib/services.h index 4a4dea8..8e9378a 100644 --- a/noncore/net/opietooth/lib/services.h +++ b/noncore/net/opietooth/lib/services.h | |||
@@ -11,13 +11,13 @@ namespace OpieTooth { | |||
11 | */ | 11 | */ |
12 | class Services { | 12 | class Services { |
13 | 13 | ||
14 | /** The profile descriptor | 14 | /** The profile descriptor |
15 | * | 15 | * |
16 | */ | 16 | */ |
17 | class ProfileDesriptor{ | 17 | class ProfileDescriptor{ |
18 | public: | 18 | public: |
19 | /** typedef */ | 19 | /** typedef */ |
20 | typedef QValueList<ProfileDescriptor> ValueList; | 20 | typedef QValueList<ProfileDescriptor> ValueList; |
21 | /** c'tor for QValueList */ | 21 | /** c'tor for QValueList */ |
22 | ProfileDescriptor(); | 22 | ProfileDescriptor(); |
23 | /** | 23 | /** |
@@ -56,17 +56,21 @@ namespace OpieTooth { | |||
56 | * sets the Version | 56 | * sets the Version |
57 | */ | 57 | */ |
58 | void setVersion(uint version ); | 58 | void setVersion(uint version ); |
59 | /** | 59 | /** |
60 | * copy operator | 60 | * copy operator |
61 | */ | 61 | */ |
62 | ProfileDescriptor &operator=( const ProfileDescriptor ); | 62 | ProfileDescriptor &operator=( const ProfileDescriptor& ); |
63 | /** | 63 | /** |
64 | * operator== | 64 | * operator== |
65 | */ | 65 | */ |
66 | friend bool operator==(const ProfileDescriptor&, const ProfileDescriptor& ); | 66 | friend bool operator==(const ProfileDescriptor&, const ProfileDescriptor& ); |
67 | private: | ||
68 | QString m_id; | ||
69 | uint m_idInt; | ||
70 | uint m_version; | ||
67 | }; | 71 | }; |
68 | /** | 72 | /** |
69 | * Protocol Descriptor | 73 | * Protocol Descriptor |
70 | */ | 74 | */ |
71 | class ProtocolDescriptor { | 75 | class ProtocolDescriptor { |
72 | public: | 76 | public: |
@@ -78,23 +82,27 @@ namespace OpieTooth { | |||
78 | /** | 82 | /** |
79 | * name | 83 | * name |
80 | * number | 84 | * number |
81 | * channel/port | 85 | * channel/port |
82 | */ | 86 | */ |
83 | ProtocolDescriptor(const QString&, uint, uint channel ); // Q_UINT8 ? | 87 | ProtocolDescriptor(const QString&, uint, uint channel ); // Q_UINT8 ? |
84 | ProtocolDescriptot(const ProtocolDescriptor& ); | 88 | ProtocolDescriptor(const ProtocolDescriptor& ); |
85 | ~ProtocolDescriptor(); | 89 | ~ProtocolDescriptor(); |
86 | QString name()const; | 90 | QString name()const; |
87 | void setName(const QString& ); | 91 | void setName(const QString& ); |
88 | uint id()const; | 92 | uint id()const; |
89 | void setId(uint ); | 93 | void setId(uint ); |
90 | uint port()const; | 94 | uint port()const; |
91 | void setPort(uint ); | 95 | void setPort(uint ); |
92 | ProtocolDescriptor &operator=( const ProtocolDescriptor& ); | 96 | ProtocolDescriptor &operator=( const ProtocolDescriptor& ); |
93 | friend bool operator==( const ProtocolDescription&, | 97 | friend bool operator==( const ProtocolDescriptor&, |
94 | const ProtocolDescription& ); | 98 | const ProtocolDescriptor& ); |
99 | private: | ||
100 | QString m_name; | ||
101 | uint m_number; | ||
102 | uint m_channel; | ||
95 | }; | 103 | }; |
96 | 104 | ||
97 | public: | 105 | public: |
98 | typedef QValueList<Services> ValueList; | 106 | typedef QValueList<Services> ValueList; |
99 | Services(); | 107 | Services(); |
100 | Services(const Services& service ); | 108 | Services(const Services& service ); |