1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef EVENTFILTERDIALOG_H
6#define EVENTFILTERDIALOG_H
7
8#include <QDialog>
9
10class QTreeWidgetItem;
11
12namespace ReverseDebugger {
13namespace Internal {
14
15class EventFilterDialogPrivate;
16class EventFilterDialog : public QDialog
17{
18 Q_OBJECT
19public:
20 explicit EventFilterDialog(QWidget *parent,
21 uchar *syscallFlags,
22 uchar *dbusFlags,
23 uchar *x11Flags,
24 uchar *signalFlags);
25 ~EventFilterDialog();
26
27 int exec();
28
29 QString syscallKindNames(void) const;
30 QString breakFunc(void) const;
31 QString globalVar(void) const;
32
33 QString maxStackSize(void) const;
34 QString maxHeapSize(void) const;
35 QString maxParamSize(void) const;
36 bool onlyCurrentThread(void) const;
37
38 void setMaxStackSize(const QString &size);
39 void setMaxHeapSize(const QString &size);
40 void setMaxParamSize(const QString &size);
41 void setOnlyCurrentThread(bool b);
42
43signals:
44
45private slots:
46 void itemClicked(QTreeWidgetItem *item, int column);
47
48private:
49 void setupUi();
50
51 EventFilterDialogPrivate *const d;
52};
53
54} // namespace Debugger
55} // namespace Internal
56
57#endif // EVENTFILTERDIALOG_H
58