author | zecke <zecke> | 2002-06-19 20:17:39 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-06-19 20:17:39 (UTC) |
commit | 5c56a4cb4bd0aaf3fb2145feb018f8d074a58da2 (patch) (side-by-side diff) | |
tree | 39df033332c4d8f35f8542a731697cf564a04535 /noncore/net/opietooth/lib/services.h | |
parent | 4c943ea6682e53c2039881aab72f6e003b78880d (diff) | |
download | opie-5c56a4cb4bd0aaf3fb2145feb018f8d074a58da2.zip opie-5c56a4cb4bd0aaf3fb2145feb018f8d074a58da2.tar.gz opie-5c56a4cb4bd0aaf3fb2145feb018f8d074a58da2.tar.bz2 |
sdptool parser
Diffstat (limited to 'noncore/net/opietooth/lib/services.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/services.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/noncore/net/opietooth/lib/services.h b/noncore/net/opietooth/lib/services.h index 8e9378a..65de049 100644 --- a/noncore/net/opietooth/lib/services.h +++ b/noncore/net/opietooth/lib/services.h @@ -17,98 +17,98 @@ namespace OpieTooth { 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 ); + ProfileDescriptor(const QString &id, int idInt, int 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 + * sets the int id */ - void setId(uint ); + void setId(int ); /** * reutns the id as int */ - uint idInt()const; + int idInt()const; /** * returns the version */ - uint version()const; + int version()const; /** * sets the Version */ - void setVersion(uint version ); + void setVersion(int version ); /** * copy operator */ ProfileDescriptor &operator=( const ProfileDescriptor& ); /** * operator== */ friend bool operator==(const ProfileDescriptor&, const ProfileDescriptor& ); private: QString m_id; - uint m_idInt; - uint m_version; + int m_idInt; + int 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 ? + ProtocolDescriptor(const QString&, int, int port = -1 ); // Q_UINT8 ? ProtocolDescriptor(const ProtocolDescriptor& ); ~ProtocolDescriptor(); QString name()const; void setName(const QString& ); - uint id()const; - void setId(uint ); - uint port()const; - void setPort(uint ); + int id()const; + void setId(int ); + int port()const; + void setPort(int ); ProtocolDescriptor &operator=( const ProtocolDescriptor& ); friend bool operator==( const ProtocolDescriptor&, const ProtocolDescriptor& ); private: QString m_name; - uint m_number; - uint m_channel; + int m_number; + int 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 ); |