}
EmuFrontObject::EmuFrontObject(const EmuFrontObject &ob)
- : QObject(), id(ob.id), name(ob.name)
+ : QObject() , id(ob.id), name(ob.name)
{
// no need to perform deep copy here, see:
// http://doc.trolltech.com/4.0/shclass.html
return (*this);
}
+
+bool EmuFrontObject::operator ==(const EmuFrontObject &sup)
+{
+ return (id >= 0 && id == sup.id && sup.name == name);
+}
+
+bool EmuFrontObject::operator !=(const EmuFrontObject &sup)
+{
+ return !(*this == sup);
+}
+