forked from radareorg/iaito
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRemoteDebugDialog.h
More file actions
80 lines (65 loc) · 1.71 KB
/
RemoteDebugDialog.h
File metadata and controls
80 lines (65 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#ifndef REMOTEDEBUGDIALOG_H
#define REMOTEDEBUGDIALOG_H
#include <memory>
#include <QDialog>
#include <QListWidgetItem>
namespace Ui {
class RemoteDebugDialog;
}
/**
* @brief Dialog for connecting to remote debuggers
*/
class RemoteDebugDialog : public QDialog
{
Q_OBJECT
public:
explicit RemoteDebugDialog(QWidget *parent = nullptr);
~RemoteDebugDialog();
/**
* @brief Generate a URI for given UI input
*/
QString getUri() const;
bool validate();
private slots:
void on_buttonBox_accepted();
void on_buttonBox_rejected();
/**
* @brief Clears the list of recent connections.
* Triggers when you right click and click on "Clear All" in remote debug
* dialog.
*/
void clearAll();
/**
* @brief Clears the selected item in the list of recent connections.
* Triggers when you right click and click on "Remove Item" in remote debug
* dialog.
*/
void removeItem();
/**
* @brief Fills the form with the selected item's data.
*/
void itemClicked(QListWidgetItem *item);
private:
std::unique_ptr<Ui::RemoteDebugDialog> ui;
int getPort() const;
int getDebugger() const;
QString getIpOrPath() const;
bool validatePath();
bool validateIp();
bool validatePort();
/**
* @brief Fills recent remote connections.
*/
bool fillRecentIpList();
/**
* @brief Fills the remote debug dialog form from a given URI
* Eg: gdb://127.0.0.1:8754 or windbg:///tmp/abcd
*/
void fillFormData(QString formdata);
/**
* @brief Checks if the recent connection list is empty or and hide/unhide
* the table view
*/
void checkIfEmpty();
};
#endif // REMOTE_DEBUG_DIALOG