Added EmuFrontObject test and (very) initial PlatformNameDialogTest.
[emufront] / src / dataobjects / emufrontobject.h
index eb80b00..b6f363c 100644 (file)
@@ -1,21 +1,21 @@
 // EmuFront
-// Copyright Mikko Keinänen 2010
+// Copyright 2010 Mikko Keinänen
 //
 // This file is part of EmuFront.
 //
 //
 // EmuFront is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
+// it under the terms of the GNU General Public License version 2 as published by
+// the Free Software Foundation and appearing in the file gpl.txt included in the
+// packaging of this file.
 //
-// Foobar is distributed in the hope that it will be useful,
+// EmuFront is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
 //
 // You should have received a copy of the GNU General Public License
-// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+// along with EmuFront.  If not, see <http://www.gnu.org/licenses/>.
 
 #ifndef EMUFRONTOBJECT_H
 #define EMUFRONTOBJECT_H
 class EmuFrontObject : public QObject
 {
 public:
+    static const int ID_NOT_SET;
     EmuFrontObject();
     EmuFrontObject(int id, QString name);
 
-    // No need for these as long we use QString (see Implicit Data Sharing)
-    //EmuFrontObject(const EmuFrontObject &);
-    //virtual ~EmuFrontObject();
-    //EmuFrontObject &operator=(const EmuFrontObject &);
+    EmuFrontObject(const EmuFrontObject &);
+    ~EmuFrontObject();
+    EmuFrontObject &operator=(const EmuFrontObject &);
+    bool operator==(const EmuFrontObject &);
+    bool operator!=(const EmuFrontObject &);
 
     virtual const QString getName() const
     { return name; }
     virtual int getId() const
     { return id; }
     virtual void setName(QString name)
-    { this->name = name; };
+    { this->name = name; }
     virtual void setId(int id)
     { this->id = id; }