mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
66 lines
No EOL
1.9 KiB
C++
66 lines
No EOL
1.9 KiB
C++
/* This file is part of KEmu
|
|
Copyright (C) 2016 Ivailo Monev <xakepa10@gmail.com>
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Library General Public
|
|
License version 2, as published by the Free Software Foundation.
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Library General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Library General Public License
|
|
along with this library; see the file COPYING.LIB. If not, write to
|
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef KEMUMAINWINDOW_H
|
|
#define KEMUMAINWINDOW_H
|
|
|
|
#include <KXmlGuiWindow>
|
|
#include <QListWidgetItem>
|
|
#include <QProcess>
|
|
#include <QCloseEvent>
|
|
#include <QDBusInterface>
|
|
#include <ksettings.h>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
class Ui_KEmuWindow;
|
|
QT_END_NAMESPACE
|
|
|
|
class KEmuMainWindow: public KXmlGuiWindow
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
KEmuMainWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0);
|
|
~KEmuMainWindow();
|
|
|
|
public slots:
|
|
void createHardDisk();
|
|
void quit();
|
|
|
|
private slots:
|
|
void machineLoad(const QString machine);
|
|
void machineSave(const QString ignored);
|
|
void machineSave(int ignored);
|
|
void machineChanged(QItemSelection ignored, QItemSelection ignored2);
|
|
void machineStarted(const QString machine);
|
|
void machineStopped(int exitCode, const QString error);
|
|
void machineError(const QString error);
|
|
void addMachine(const QString machine);
|
|
void startStopMachine();
|
|
void removeMachine(const QString machine);
|
|
|
|
private:
|
|
void updateStatus();
|
|
|
|
bool m_loading;
|
|
bool m_installed;
|
|
Ui_KEmuWindow *m_kemuui;
|
|
KSettings *m_settings;
|
|
QDBusInterface *m_interface;
|
|
};
|
|
|
|
#endif // KEMUMAINWINDOW_H
|