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 @@ -1,118 +1,126 @@ #ifndef OpieToothServices_H #define OpieToothServices_H #include <qvaluelist.h> namespace OpieTooth { /** * Services lets shows you all available services * on a remote device */ class Services { /** The profile descriptor * */ - class ProfileDesriptor{ + class ProfileDescriptor{ public: /** typedef */ typedef QValueList<ProfileDescriptor> ValueList; /** c'tor for QValueList */ ProfileDescriptor(); /** * c'tor * @param id The id or name ("Lan Access Using PPP") * @param idInt The id as uint ( 0x1102 ) * @param version Version of the Profile ( 1 ) */ ProfileDescriptor(const QString &id, uint idInt, uint version ); /** * copy c'tor */ ProfileDescriptor(const ProfileDescriptor& ); /** * returns the id */ QString id()const; /** * sets the id */ void setId(const QString& id); /** * sets the uint id */ void setId(uint ); /** * reutns the id as int */ uint idInt()const; /** * returns the version */ uint version()const; /** * 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: typedef QValueList<ProtocolDescriptor> ValueList; /** * c'tor */ ProtocolDescriptor(); /** * 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 ); ~Services(); Services &operator=( const Services& ); friend bool operator==(const Services&, const Services& ); QString serviceName()const; void setServiceName( const QString& service ); int recHandle()const; void setRecHandle( int ); QString classIdList()const; void setClassIdList( const QString& ); int classIdListInt()const; void setClassIdList(int ); void insertProtocolDescriptor(const ProtocolDescriptor& ); void clearProtocolDescriptorList(); void removeProtocolDescriptor( const ProtocolDescriptor& ); |