2 // Copyright 2010 Mikko Keinänen
4 // This file is part of EmuFront.
7 // EmuFront is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
12 // EmuFront is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY{} without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with EmuFront. If not, see <http://www.gnu.org/licenses/>.
20 #include "executable.h"
23 Executable::Executable() : EmuFrontObject() { }
25 Executable::Executable(int id, QString name)
26 : EmuFrontObject(id, name) {}
28 Executable::Executable(int id, QString name, QString executable,
29 QString options, Setup*, int type)
30 : EmuFrontObject(id, name), executable(executable),
31 options(options), setup(setup), type(type)
34 Executable::Executable(const Executable &e)
35 : EmuFrontObject(e.id, e.name), executable(e.executable),
36 options(e.options), type(e.type)
39 setup = new Setup(*s);
42 Executable::~Executable()
47 Executable& Executable::operator =(const Executable &e)
49 if (this == &e) return *this;
52 executable = e.executable;
56 if (setup) delete setup;
57 setup = new Setup(*s);
61 QString Executable::getExecutable() const
62 { return executable; }
64 void Executable::setExecutable(QString e)
67 QString Executable::getOptions() const
70 void Executable::setOptions(QString o)
73 Setup* Executable::getSetup() const
76 void Executable::setSetup(Setup* s)
79 int Executable::getType() const
82 void Executable::setType(int t)