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 | |
10 | namespace ReverseDebugger { |
11 | namespace Internal { |
12 | |
13 | class StartCoredumpDialogPrivate; |
14 | class CoredumpRunParameters |
15 | { |
16 | public: |
17 | int pid = 0; |
18 | |
19 | // trace directory. |
20 | QString tracedir; |
21 | }; |
22 | |
23 | class LoadCoreDialog : public QDialog |
24 | { |
25 | Q_OBJECT |
26 | public: |
27 | explicit LoadCoreDialog(QWidget *parent = nullptr); |
28 | ~LoadCoreDialog(); |
29 | |
30 | CoredumpRunParameters displayDlg(const QString &traceDir); |
31 | |
32 | signals: |
33 | |
34 | public slots: |
35 | |
36 | private: |
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 |