Diffstat (limited to 'noncore/net/opietooth/lib/remotedevice.cc') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/remotedevice.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/net/opietooth/lib/remotedevice.cc b/noncore/net/opietooth/lib/remotedevice.cc index 08fb397..9cf0cac 100644 --- a/noncore/net/opietooth/lib/remotedevice.cc +++ b/noncore/net/opietooth/lib/remotedevice.cc @@ -43,6 +43,12 @@ void RemoteDevice::setMac( const QString& mac ){ QString RemoteDevice::name() const{ return m_name; } void RemoteDevice::setName( const QString& name ){ m_name = name; } +bool RemoteDevice::equals( const RemoteDevice& dev ) const { + if ( m_mac == dev.m_mac && m_name == dev.m_name ) + return true; + else + return false; +}; |