src/platform/qt/MemoryDump.h (view raw)
1/* Copyright (c) 2013-2019 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_MemoryDump.h"
9
10#include <memory>
11
12namespace QGBA {
13
14class CoreController;
15
16class MemoryDump : public QDialog {
17Q_OBJECT
18
19public:
20 MemoryDump(std::shared_ptr<CoreController> controller, QWidget* parent = nullptr);
21
22public slots:
23 void setSegment(int);
24 void setAddress(uint32_t address);
25 void setByteCount(uint32_t);
26
27private slots:
28 void save();
29
30private:
31 QByteArray serialize();
32
33 Ui::MemoryDump m_ui;
34
35 std::shared_ptr<CoreController> m_controller;
36};
37
38}