author | zecke <zecke> | 2002-07-13 12:54:47 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-13 12:54:47 (UTC) |
commit | d7f3722f9b7913731978437085b14cc2cccbfa24 (patch) (side-by-side diff) | |
tree | 1b190105693609cc01d1ad9730e8925e957209c9 /noncore/net/opietooth/lib/services.cc | |
parent | 8be0a8e108eaf8ff99301aa175298ddeb48eae67 (diff) | |
download | opie-d7f3722f9b7913731978437085b14cc2cccbfa24.zip opie-d7f3722f9b7913731978437085b14cc2cccbfa24.tar.gz opie-d7f3722f9b7913731978437085b14cc2cccbfa24.tar.bz2 |
LIB updates
Class IdList per Service can have more than one line
Diffstat (limited to 'noncore/net/opietooth/lib/services.cc') (more/less context) (ignore 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 @@ -112,22 +112,20 @@ Services::~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_classIds = ser.m_classIds; m_protocols = ser.m_protocols; m_profiles = ser.m_profiles; return *this; } 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; } QString Services::serviceName() const{ @@ -141,19 +139,19 @@ int Services::recHandle() const{ } 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){ m_protocols.append( prot ); } |