src/platform/qt/GBAApp.h (view raw)
1/* Copyright (c) 2013-2014 Jeffrey Pfau
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6#ifndef QGBA_APP_H
7#define QGBA_APP_H
8
9#include <QApplication>
10
11#include "ConfigController.h"
12#include "MultiplayerController.h"
13
14extern "C" {
15#include "gba/sio.h"
16}
17
18namespace QGBA {
19
20class GameController;
21class Window;
22
23class GBAApp : public QApplication {
24Q_OBJECT
25
26public:
27 GBAApp(int& argc, char* argv[]);
28
29 static Window* newWindow();
30
31protected:
32 bool event(QEvent*);
33
34private:
35 Window* newWindowInternal();
36
37 ConfigController m_configController;
38 Window* m_windows[MAX_GBAS];
39 MultiplayerController m_multiplayer;
40};
41
42}
43
44#endif