Still experimenting with unit testing code.
[emufront] / src / dataobjects / platform.cpp
index 7f7cb66..490a349 100644 (file)
@@ -18,6 +18,7 @@
 // along with EmuFront.  If not, see <http://www.gnu.org/licenses/>.
 
 #include "platform.h"
+#include <QDebug>
 
 Platform::Platform() : EmuFrontFileObject() { }
 
@@ -28,3 +29,18 @@ Platform::Platform(int id, QString name, EmuFrontFile *file)
         : EmuFrontFileObject(id, name, file)
 {
 }
+
+Platform::Platform(const Platform &p)
+        : EmuFrontFileObject(p)
+{
+}
+
+Platform::~Platform()
+{
+    if (file) {
+        qDebug() << "file: " << file->getName();
+    }
+    qDebug() << "Platform " << name << " @ "
+        << this << "dying.";
+}
+