1 #include "filepathobject.h"
4 FilePathObject::FilePathObject() : EmuFrontFileObject(), setup(0)
8 FilePathObject::FilePathObject(int id, QString name, QString filename, int filetype)
9 : EmuFrontFileObject(id, name, filename, filetype), setup(0) {}
11 FilePathObject::FilePathObject(int id, QString name, QString filename,
12 int filetype, Setup *setup)
13 : EmuFrontFileObject(id, name, filename, filetype), setup(setup) {}
15 FilePathObject::~FilePathObject()
17 if (setup) delete setup;
20 FilePathObject::FilePathObject(const FilePathObject &fpobj)
21 : EmuFrontFileObject(fpobj.id, fpobj.name, fpobj.filename, fpobj.filetype)
23 Setup *s = fpobj.setup;
24 setup = new Setup(*s);
27 FilePathObject& FilePathObject::operator =(const FilePathObject &fpobj)
29 if (this == &fpobj) return *this;
32 filename = fpobj.filename;
33 filetype = fpobj.filetype;
34 if (setup) delete setup;
35 Setup *sup = fpobj.setup;
36 setup = new Setup(*sup);
40 Setup* FilePathObject::getSetup() const
42 void FilePathObject::setSetup(Setup *sup)