summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/services.h
authorzecke <zecke>2002-06-03 20:14:29 (UTC)
committer zecke <zecke>2002-06-03 20:14:29 (UTC)
commit7080f9f10443d7a8e61d01b5a1c0e9c972f6baca (patch) (side-by-side diff)
tree36f8b2ab579028bba027c0432da2ae41f09b9b4d /noncore/net/opietooth/lib/services.h
parent8d5f42d770abca69d490774f4b1fc8284e7a86be (diff)
downloadopie-7080f9f10443d7a8e61d01b5a1c0e9c972f6baca.zip
opie-7080f9f10443d7a8e61d01b5a1c0e9c972f6baca.tar.gz
opie-7080f9f10443d7a8e61d01b5a1c0e9c972f6baca.tar.bz2
attaching and detaching is now working
Diffstat (limited to 'noncore/net/opietooth/lib/services.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/services.h18
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 {
*/
class Services {
/** The profile descriptor
*
*/
- class ProfileDesriptor{
+ class ProfileDescriptor{
public:
/** typedef */
typedef QValueList<ProfileDescriptor> ValueList;
/** c'tor for QValueList */
ProfileDescriptor();
/**
@@ -56,17 +56,21 @@ namespace OpieTooth {
* sets the Version
*/
void setVersion(uint version );
/**
* copy operator
*/
- ProfileDescriptor &operator=( const ProfileDescriptor );
+ ProfileDescriptor &operator=( const ProfileDescriptor& );
/**
* operator==
*/
friend bool operator==(const ProfileDescriptor&, const ProfileDescriptor& );
+ private:
+ QString m_id;
+ uint m_idInt;
+ uint m_version;
};
/**
* Protocol Descriptor
*/
class ProtocolDescriptor {
public:
@@ -78,23 +82,27 @@ namespace OpieTooth {
/**
* name
* number
* channel/port
*/
ProtocolDescriptor(const QString&, uint, uint channel ); // Q_UINT8 ?
- ProtocolDescriptot(const ProtocolDescriptor& );
+ ProtocolDescriptor(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& );
+ friend bool operator==( const ProtocolDescriptor&,
+ const ProtocolDescriptor& );
+ private:
+ QString m_name;
+ uint m_number;
+ uint m_channel;
};
public:
typedef QValueList<Services> ValueList;
Services();
Services(const Services& service );