Diffstat (limited to 'noncore/net/opietooth/lib/services.cc') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/services.cc | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/noncore/net/opietooth/lib/services.cc b/noncore/net/opietooth/lib/services.cc index 93ee70a..23b760b 100644 --- a/noncore/net/opietooth/lib/services.cc +++ b/noncore/net/opietooth/lib/services.cc @@ -114,6 +114,5 @@ 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_classIds = ser.m_classIds; m_protocols = ser.m_protocols; m_profiles = ser.m_profiles; @@ -123,9 +122,8 @@ 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() ) ) + ( one.profileDescriptor() == two.profileDescriptor() ) + /* ( one.classIdList() == two.classIdList() ) */ ) return true; return false; @@ -143,15 +141,15 @@ void Services::setRecHandle( int handle){ m_recHandle = handle; } -QString Services::classIdList() const{ - return m_classList; +QMap<int, QString> Services::classIdList()const { + return m_classIds; +}; +void Services::insertClassId( int id, const QString& str ) { + m_classIds.insert( id, str ); } -void Services::setClassIdList( const QString& str){ - m_classList = str; +void Services::removeClassId(int id) { + m_classIds.remove( id ); } -int Services::classIdListInt() const{ - return m_classId; -} -void Services::setClassIdList(int id){ - m_classId = id; +void Services::clearClassId() { + m_classIds.clear(); } void Services::insertProtocolDescriptor( const ProtocolDescriptor& prot){ |