summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/remotedevice.cc
Side-by-side diff
Diffstat (limited to 'noncore/net/opietooth/lib/remotedevice.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/remotedevice.cc6
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
@@ -46,3 +46,9 @@ QString RemoteDevice::name() const{
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;
+};