X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Femulauncher.h;h=fc2e564175442e42034b57b3f323fafadd835377;hb=80ea9c599c232763dc66831c86bf472b1fd3d3f8;hp=00e69f0de8a95da9608285e444f834db67983ad2;hpb=53d32a15c6e9ccec23f988fcfb51c594943bb76c;p=emufront diff --git a/src/emulauncher.h b/src/emulauncher.h index 00e69f0..fc2e564 100644 --- a/src/emulauncher.h +++ b/src/emulauncher.h @@ -5,9 +5,9 @@ // // // 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. // // EmuFront is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -21,6 +21,7 @@ #define EMULAUNCHER_H #include +#include class QTableView; class QPushButton; @@ -32,12 +33,14 @@ class EFFileObjectComboBox; class ExecutableComboBox; class Executable; class MediaImageContainer; +class QProcess; class EmuLauncher : public QWidget { Q_OBJECT public: explicit EmuLauncher(QWidget *parent = 0); + ~EmuLauncher(); void updateData(); signals: @@ -45,6 +48,8 @@ signals: private slots: void updateMediaImageContainers(); void launchEmu(); + void processError(QProcess::ProcessError); + void processFinished(int); private: QTableView *micTable; @@ -57,12 +62,13 @@ private: DbMediaType *dbMediaType; DbMediaImageContainer *dbMic; DbExecutable *dbExec; + QProcess *proc; void initWidgets(); void layout(); void connectSignals(); void populatePlatformSelectBox(); void populateMediaTypeSelectBox(); - void launch(const Executable*, const MediaImageContainer*) const; + void launch(const Executable*, const MediaImageContainer*); }; #endif // EMULAUNCHER_H