3 ** Copyright 2010 Mikko Keinänen
5 ** This file is part of EmuFront.
8 ** EmuFront is free software: you can redistribute it and/or modify
9 ** it under the terms of the GNU General Public License version 2 as published by
10 ** the Free Software Foundation and appearing in the file gpl.txt included in the
11 ** packaging of this file.
13 ** EmuFront is distributed in the hope that it will be useful,
14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ** GNU General Public License for more details.
18 ** You should have received a copy of the GNU General Public License
19 ** along with EmuFront. If not, see <http://www.gnu.org/licenses/>.
20 */#ifndef EMULAUNCHER_H
32 class DbMediaImageContainer;
34 //class EFFileObjectComboBox;
35 //class ExecutableComboBox;
37 class MediaImageContainer;
40 class EmuLauncher : public QWidget
44 EmuLauncher(QErrorMessage *, QWidget *parent = 0, QString tmp = ".");
47 void setTmpDirPath(QString);
52 void updateMediaImageContainers();
54 void processError(QProcess::ProcessError);
55 void processFinished(int);
59 /*EFFileObjectComboBox *platformSelectBox;
60 EFFileObjectComboBox *mediaTypeSelectBox;
61 ExecutableComboBox *execSelectBox;*/
62 //QComboBox *platformSelectBox;
63 //QComboBox *mediaTypeSelectBox;
64 QComboBox *setupSelectBox;
65 QComboBox *execSelectBox;
67 QPushButton *selectButton;
68 QPushButton *launchButton;
69 //DbPlatform *dbPlatform;
70 //DbMediaType *dbMediaType;
71 DbMediaImageContainer *dbMic;
72 //DbExecutable *dbExec;
76 void connectSignals();
77 //void populatePlatformSelectBox();
78 //void populateMediaTypeSelectBox();
79 void launch(const Executable*, const MediaImageContainer*);
82 QErrorMessage *errorMessage;
85 #endif // EMULAUNCHER_H