author | zecke <zecke> | 2002-06-20 22:23:44 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-06-20 22:23:44 (UTC) |
commit | 7b4a1dfd56b64e588d3fe6c75a51490df13e9797 (patch) (side-by-side diff) | |
tree | 43db3e094004ad478c43d93ddeafed044534035e /noncore/net/opietooth/lib/services.cc | |
parent | c2eb66bc5c5ac4225edff8b369026bd208f8c148 (diff) | |
download | opie-7b4a1dfd56b64e588d3fe6c75a51490df13e9797.zip opie-7b4a1dfd56b64e588d3fe6c75a51490df13e9797.tar.gz opie-7b4a1dfd56b64e588d3fe6c75a51490df13e9797.tar.bz2 |
German politicians suck
Diffstat (limited to 'noncore/net/opietooth/lib/services.cc') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/services.cc | 66 |
1 files changed, 40 insertions, 26 deletions
diff --git a/noncore/net/opietooth/lib/services.cc b/noncore/net/opietooth/lib/services.cc index d91e4a1..93ee70a 100644 --- a/noncore/net/opietooth/lib/services.cc +++ b/noncore/net/opietooth/lib/services.cc @@ -106,63 +106,77 @@ Services::Services(){ } Services::Services(const Services& service ){ - + (*this) = service; } Services::~Services(){ } -Services &Services::operator=( const Services& ){ +Services &Services::operator=( const Services& ser){ + m_name = ser.m_name; + m_recHandle = ser.m_recHandle; + m_classList = ser.m_classList; + m_classId = ser.m_classId; + m_protocols = ser.m_protocols; + m_profiles = ser.m_profiles; return *this; } -bool operator==( const Services&, - const Services& ){ +bool operator==( const Services& one, + const Services& two){ + if ( ( one.recHandle() == two.recHandle() ) && + ( one.classIdListInt() == two.classIdListInt() ) && + ( one.serviceName() == two.serviceName() ) && + ( one.classIdList() == two.classIdList() ) && + ( one.protocolDescriptorList() == two.protocolDescriptorList() ) && + ( one.profileDescriptor() == two.profileDescriptor() ) ) + return true; return false; } QString Services::serviceName() const{ - + return m_name; } void Services::setServiceName( const QString& service ){ - + m_name = service; } int Services::recHandle() const{ - + return m_recHandle; } -void Services::setRecHandle( int ){ - +void Services::setRecHandle( int handle){ + m_recHandle = handle; } QString Services::classIdList() const{ - + return m_classList; } -void Services::setClassIdList( const QString& ){ - +void Services::setClassIdList( const QString& str){ + m_classList = str; } int Services::classIdListInt() const{ - + return m_classId; } -void Services::setClassIdList(int ){ - +void Services::setClassIdList(int id){ + m_classId = id; } -void Services::insertProtocolDescriptor( const ProtocolDescriptor& ){ - +void Services::insertProtocolDescriptor( const ProtocolDescriptor& prot){ + m_protocols.append( prot ); } void Services::clearProtocolDescriptorList(){ - + m_protocols.clear(); } -void Services::removeProtocolDescriptor( const ProtocolDescriptor& ){ - +void Services::removeProtocolDescriptor( const ProtocolDescriptor& prot){ + m_protocols.remove( prot ); } Services::ProtocolDescriptor::ValueList Services::protocolDescriptorList()const{ - + return m_protocols; } -void Services::insertProfileDescriptor( const ProfileDescriptor& ){ +void Services::insertProfileDescriptor( const ProfileDescriptor& prof){ + m_profiles.append( prof ); } void Services::clearProfileDescriptorList(){ - + m_profiles.clear(); } -void Services::removeProfileDescriptor( const ProfileDescriptor& ){ - +void Services::removeProfileDescriptor( const ProfileDescriptor& prof){ + m_profiles.remove(prof ); } Services::ProfileDescriptor::ValueList Services::profileDescriptor() const{ - + return m_profiles; } |