forked from LazyT/rrcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstaller.h
41 lines (28 loc) · 944 Bytes
/
uninstaller.h
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
#ifndef UNINSTALLERDLG_H
#define UNINSTALLERDLG_H
#include "ui_uninstaller.h"
#include "mainwindow.h"
#define VALETUDO_CMD_RMBIN "rm " VALETUDO_BIN_DST
#define VALETUDO_CMD_RMCFG "rm " VALETUDO_CFG_DST
#define VALETUDO_CMD_HOSTS "sed -i '/### VALETUDO HOSTS INIT ###/,/### VALETUDO HOSTS EXIT ###/d' " VALETUDO_HOSTS_DST
#define VALETUDO_CMD_RCLOCAL "sed -i '/### VALETUDO RC.LOCAL INIT ###/,/### VALETUDO RC.LOCAL EXIT ###/d' " VALETUDO_RCLOCAL_DST
class uninstallerDialog : public QDialog, private Ui::Dialog_Uninstaller
{
Q_OBJECT
public:
uninstallerDialog(QWidget*);
private:
void updateProgress();
QSshSocket *ssh = nullptr;
bool failed;
int step;
private slots:
void ssh_connected();
void ssh_disconnected();
void ssh_error(QSshSocket::SshError);
void ssh_loginSuccessful();
void ssh_commandExecuted(QString, QString);
void reject();
void on_buttonBox_clicked(QAbstractButton*);
};
#endif // UNINSTALLERDLG_H