Diffstat (limited to 'noncore/net/opietooth/lib/services.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/services.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/noncore/net/opietooth/lib/services.h b/noncore/net/opietooth/lib/services.h index 65de049..881d383 100644 --- a/noncore/net/opietooth/lib/services.h +++ b/noncore/net/opietooth/lib/services.h | |||
@@ -42,97 +42,102 @@ namespace OpieTooth { | |||
42 | 42 | ||
43 | /** | 43 | /** |
44 | * sets the int id | 44 | * sets the int id |
45 | */ | 45 | */ |
46 | void setId(int ); | 46 | void setId(int ); |
47 | /** | 47 | /** |
48 | * reutns the id as int | 48 | * reutns the id as int |
49 | */ | 49 | */ |
50 | int idInt()const; | 50 | int idInt()const; |
51 | /** | 51 | /** |
52 | * returns the version | 52 | * returns the version |
53 | */ | 53 | */ |
54 | int version()const; | 54 | int version()const; |
55 | /** | 55 | /** |
56 | * sets the Version | 56 | * sets the Version |
57 | */ | 57 | */ |
58 | void setVersion(int version ); | 58 | void setVersion(int 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: | 67 | private: |
68 | QString m_id; | 68 | QString m_id; |
69 | int m_idInt; | 69 | int m_idInt; |
70 | int m_version; | 70 | int m_version; |
71 | }; | 71 | }; |
72 | /** | 72 | /** |
73 | * Protocol Descriptor | 73 | * Protocol Descriptor |
74 | */ | 74 | */ |
75 | class ProtocolDescriptor { | 75 | class ProtocolDescriptor { |
76 | public: | 76 | public: |
77 | typedef QValueList<ProtocolDescriptor> ValueList; | 77 | typedef QValueList<ProtocolDescriptor> ValueList; |
78 | /** | 78 | /** |
79 | * c'tor | 79 | * c'tor |
80 | */ | 80 | */ |
81 | ProtocolDescriptor(); | 81 | ProtocolDescriptor(); |
82 | /** | 82 | /** |
83 | * name | 83 | * name |
84 | * number | 84 | * number |
85 | * channel/port | 85 | * channel/port |
86 | */ | 86 | */ |
87 | ProtocolDescriptor(const QString&, int, int port = -1 ); // Q_UINT8 ? | 87 | ProtocolDescriptor(const QString&, int, int port = -1 ); // Q_UINT8 ? |
88 | ProtocolDescriptor(const ProtocolDescriptor& ); | 88 | ProtocolDescriptor(const ProtocolDescriptor& ); |
89 | ~ProtocolDescriptor(); | 89 | ~ProtocolDescriptor(); |
90 | QString name()const; | 90 | QString name()const; |
91 | void setName(const QString& ); | 91 | void setName(const QString& ); |
92 | int id()const; | 92 | int id()const; |
93 | void setId(int ); | 93 | void setId(int ); |
94 | int port()const; | 94 | int port()const; |
95 | void setPort(int ); | 95 | void setPort(int ); |
96 | ProtocolDescriptor &operator=( const ProtocolDescriptor& ); | 96 | ProtocolDescriptor &operator=( const ProtocolDescriptor& ); |
97 | friend bool operator==( const ProtocolDescriptor&, | 97 | //friend bool operator==( const ProtocolDescriptor&, |
98 | const ProtocolDescriptor& ); | 98 | // const ProtocolDescriptor& ); |
99 | private: | 99 | private: |
100 | QString m_name; | 100 | QString m_name; |
101 | int m_number; | 101 | int m_number; |
102 | int m_channel; | 102 | int m_channel; |
103 | }; | 103 | }; |
104 | 104 | ||
105 | public: | 105 | public: |
106 | typedef QValueList<Services> ValueList; | 106 | typedef QValueList<Services> ValueList; |
107 | Services(); | 107 | Services(); |
108 | Services(const Services& service ); | 108 | Services(const Services& service ); |
109 | ~Services(); | 109 | ~Services(); |
110 | 110 | ||
111 | Services &operator=( const Services& ); | 111 | Services &operator=( const Services& ); |
112 | friend bool operator==(const Services&, const Services& ); | 112 | friend bool operator==(const Services&, const Services& ); |
113 | QString serviceName()const; | 113 | QString serviceName()const; |
114 | void setServiceName( const QString& service ); | 114 | void setServiceName( const QString& service ); |
115 | 115 | ||
116 | int recHandle()const; | 116 | int recHandle()const; |
117 | void setRecHandle( int ); | 117 | void setRecHandle( int ); |
118 | 118 | ||
119 | QString classIdList()const; | 119 | QString classIdList()const; |
120 | void setClassIdList( const QString& ); | 120 | void setClassIdList( const QString& ); |
121 | int classIdListInt()const; | 121 | int classIdListInt()const; |
122 | void setClassIdList(int ); | 122 | void setClassIdList(int ); |
123 | 123 | ||
124 | void insertProtocolDescriptor(const ProtocolDescriptor& ); | 124 | void insertProtocolDescriptor(const ProtocolDescriptor& ); |
125 | void clearProtocolDescriptorList(); | 125 | void clearProtocolDescriptorList(); |
126 | void removeProtocolDescriptor( const ProtocolDescriptor& ); | 126 | void removeProtocolDescriptor( const ProtocolDescriptor& ); |
127 | ProtocolDescriptor::ValueList protocolDescriptorList()const; | 127 | ProtocolDescriptor::ValueList protocolDescriptorList()const; |
128 | 128 | ||
129 | void insertProfileDescriptor( const ProfileDescriptor& ); | 129 | void insertProfileDescriptor( const ProfileDescriptor& ); |
130 | void clearProfileDescriptorList(); | 130 | void clearProfileDescriptorList(); |
131 | void removeProfileDescriptor(const ProfileDescriptor& ); | 131 | void removeProfileDescriptor(const ProfileDescriptor& ); |
132 | ProfileDescriptor::ValueList profileDescriptor()const; | 132 | ProfileDescriptor::ValueList profileDescriptor()const; |
133 | 133 | ||
134 | 134 | private: | |
135 | 135 | QString m_name; | |
136 | int m_recHandle; | ||
137 | QString m_classList; | ||
138 | int m_classId; | ||
139 | QValueList<ProfileDescriptor> m_profiles; | ||
140 | QValueList<ProtocolDescriptor> m_protocols; | ||
136 | }; | 141 | }; |
137 | }; | 142 | }; |
138 | #endif | 143 | #endif |