Still experimenting with unit testing code.
[emufront] / src / dataobjects / platform.h
index a91a89c..186946a 100644 (file)
@@ -5,39 +5,31 @@
 //
 //
 // 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 PLATFORM_H
 #define PLATFORM_H
 
-#include "emufrontobject.h"
+#include "emufrontfileobject.h"
 
-class Platform : public EmuFrontObject
+class Platform : public EmuFrontFileObject
 {
 public:
     Platform();
-    Platform(int id, QString name, QString filename);
-    // No need for these as long we use QString (see Implicit Data Sharing)
-    /*Platform(const Platform &);
-    Platform &operator=(const Platform &);
-    virtual ~Platform();*/
-    const QString getFilename() const
-    { return filename; }
-    void setFilename(QString filename)
-    { this->filename = filename; }
-
-private:
-    QString filename;
+    Platform(int id, QString name);
+    Platform(int id, QString name, EmuFrontFile*);
+    Platform(const Platform &);
+    ~Platform();
 };
 
 #endif // PLATFORM_H