author | mickeyl <mickeyl> | 2003-01-23 23:08:53 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-01-23 23:08:53 (UTC) |
commit | 3de1877c4c39c3cc99848204da8e32fc6e3d9efb (patch) (side-by-side diff) | |
tree | 92a4f549dfb3e359cbaaa953bfdb1846859c56e0 | |
parent | 9fbf521bec0da1a4909d91cf4a1766f7b4cd1a19 (diff) | |
download | opie-3de1877c4c39c3cc99848204da8e32fc6e3d9efb.zip opie-3de1877c4c39c3cc99848204da8e32fc6e3d9efb.tar.gz opie-3de1877c4c39c3cc99848204da8e32fc6e3d9efb.tar.bz2 |
add two missing public: to make it compile with gcc 3.x
funny that gcc 2.9x just doesn't care...
-rw-r--r-- | noncore/net/opietooth/lib/services.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/net/opietooth/lib/services.h b/noncore/net/opietooth/lib/services.h index 7cce5e1..02629e6 100644 --- a/noncore/net/opietooth/lib/services.h +++ b/noncore/net/opietooth/lib/services.h @@ -1,144 +1,145 @@ #ifndef OpieToothServices_H #define OpieToothServices_H #include <qmap.h> #include <qvaluelist.h> namespace OpieTooth { /** * Services lets shows you all available services * on a remote device */ class Services { - + public: /** The profile descriptor * */ 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, 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 int id */ void setId(int ); /** * reutns the id as int */ int idInt()const; /** * returns the version */ int version()const; /** * sets the Version */ void setVersion(int version ); /** * copy operator */ ProfileDescriptor &operator=( const ProfileDescriptor& ); /** * operator== */ // friend bool operator==(const ProfileDescriptor&, const ProfileDescriptor& ); private: QString m_id; int m_idInt; int m_version; }; + public: /** * Protocol Descriptor */ class ProtocolDescriptor { public: typedef QValueList<ProtocolDescriptor> ValueList; /** * c'tor */ ProtocolDescriptor(); /** * name * number * channel/port */ ProtocolDescriptor(const QString&, int, int port = -1 ); // Q_UINT8 ? ProtocolDescriptor(const ProtocolDescriptor& ); ~ProtocolDescriptor(); QString name()const; void setName(const QString& ); 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; 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 ); int recHandle()const; void setRecHandle( int ); QMap<int, QString> classIdList()const; void insertClassId( int id, const QString& className ); void removeClassId( int id ); void clearClassId(); void insertProtocolDescriptor(const ProtocolDescriptor& ); void clearProtocolDescriptorList(); void removeProtocolDescriptor( const ProtocolDescriptor& ); ProtocolDescriptor::ValueList protocolDescriptorList()const; void insertProfileDescriptor( const ProfileDescriptor& ); void clearProfileDescriptorList(); void removeProfileDescriptor(const ProfileDescriptor& ); ProfileDescriptor::ValueList profileDescriptor()const; private: QMap<int, QString> m_classIds; QString m_name; int m_recHandle; QValueList<ProfileDescriptor> m_profiles; QValueList<ProtocolDescriptor> m_protocols; }; }; #endif |