1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef LOADCOREDIALOG_H
6#define LOADCOREDIALOG_H
7
8#include <QDialog>
9
10namespace ReverseDebugger {
11namespace Internal {
12
13class StartCoredumpDialogPrivate;
14class CoredumpRunParameters
15{
16public:
17 int pid = 0;
18
19 // trace directory.
20 QString tracedir;
21};
22
23class LoadCoreDialog : public QDialog
24{
25 Q_OBJECT
26public:
27 explicit LoadCoreDialog(QWidget *parent = nullptr);
28 ~LoadCoreDialog();
29
30 CoredumpRunParameters displayDlg(const QString &traceDir);
31
32signals:
33
34public slots:
35
36private:
37 void setupUi();
38 void updatePid();
39 void historyIndexChanged(int);
40 void showFileDialog();
41
42 StartCoredumpDialogPrivate *const d;
43};
44
45} // namespace ReverseDebugger
46} // namespace Internal
47
48#endif // LOADCOREDIALOG_H
49