00001 00002 #ifndef OpieToothRemoteDevice 00003 #define OpieToothRemoteDevice 00004 00005 #include <qvaluelist.h> 00006 00007 namespace OpieTooth{ 00008 class RemoteDevice { 00009 public: 00010 typedef QValueList<RemoteDevice> ValueList; 00011 RemoteDevice(); 00012 RemoteDevice(const RemoteDevice& ); 00013 RemoteDevice(const QString &mac, const QString &name ); 00014 ~RemoteDevice(); 00015 // friend bool operator==(const RemoteDevice&, const RemoteDevice&); 00016 RemoteDevice &operator=(const RemoteDevice& ); 00017 bool isEmpty()const; 00018 QString mac()const; 00019 void setMac(const QString& mac ); 00020 QString name()const; 00021 void setName( const QString& name ); 00022 bool equals( const RemoteDevice& )const; 00023 private: 00024 QString m_name; 00025 QString m_mac; 00026 }; 00027 bool operator==( const RemoteDevice&, const RemoteDevice& ); 00028 }; 00029 00030 #endif
1.4.2