-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconsole.h
55 lines (42 loc) · 1.33 KB
/
console.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef CONSOLE_H
#define CONSOLE_H
#include <QDialog>
#include <QProcess>
#include <QFile>
#include "config.h"
namespace Ui {
class Console;
}
class Console : public QDialog
{
Q_OBJECT
public:
enum remoteExecError {NoError, NotInstalled, LogonFailure, HostUnreachable, IOTimeout, Killed ,UnknownError};
explicit Console(QWidget *parent = 0);
~Console();
void setConfig(Config *config);
bool startLocal();
remoteExecError startRemoteWin(QString curHost);
bool instLocal();
remoteExecError instRemoteWin(QString curHost);
void performRemoteWindowsInventory(QString curHost);
void performRemoteWindowsInventoryOnIPv4Range(quint32 startIP, quint32 endIP);
QProcess *myProcess;
private slots:
void updateConsole ();
void execError(QProcess::ProcessError error);
void on_pushButtonOK_clicked();
private:
remoteExecError execStatus;
Ui::Console *ui;
Config *config;
void checkConsoleOut(QString curtHost);
void processExec(QString program, QStringList arguments);
bool createInstScript(QFile * scriptFile, QString fileName);
QString createPsExecFile();
QString createWinexeFile();
QString createInstWinFile();
remoteExecError instRemoteWinFromWin(QString curHost);
remoteExecError instRemoteWinFromUnix(QString curHost);
};
#endif // CONSOLE_H