src/platform/qt/DolphinConnector.h (view raw)
1/* Copyright (c) 2013-2021 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#pragma once
7
8#include "ui_DolphinConnector.h"
9
10#include <memory>
11
12namespace QGBA {
13
14class CoreController;
15class Window;
16
17class DolphinConnector : public QDialog {
18Q_OBJECT
19
20public:
21 DolphinConnector(Window* window, QWidget* parent = nullptr);
22
23public slots:
24 void attach();
25 void detach();
26
27private slots:
28 void updateAttached();
29
30private:
31 Ui::DolphinConnector m_ui;
32
33 std::shared_ptr<CoreController> m_controller;
34 Window* m_window;
35};
36
37}