-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
umlo.h
101 lines (74 loc) · 2.18 KB
/
umlo.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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#ifndef UMLO_H
#define UMLO_H
#include <QMainWindow>
#include <QProcess>
#include <QSettings>
#include <QDir>
#include <qtconcurrentrun.h>
#include <QFutureWatcher>
#include <QTextBlock>
#include <simplecrypt.h>
QT_BEGIN_NAMESPACE
namespace Ui { class Umlo; }
QT_END_NAMESPACE
class Umlo : public QMainWindow
{
Q_OBJECT
public:
Umlo(QWidget *parent = nullptr);
~Umlo();
static QString UserName;
static QString UserPass;
static QString PrefixUser;
static QStringList RpmbuildPath;
static QString MloMount;
static bool LsRpmsServ;
void Init();
static SimpleCrypt crypto;
private slots:
void on_actionPr_f_rences_triggered();
void on_BtnConect_released();
void on_BtnDeConect_released();
void setProgress(QFileInfo FsName );
void on_BtnDel_released();
void on_CmbxRpmList_textActivated(const QString &arg1);
void on_actionRafraichir_triggered();
void on_BtnSend_released();
void on_BtnClearTxt_released();
void on_BtnZoomOut_released();
void on_BtnZoomIn_released();
void on_actionRetour_a_la_line_triggered(bool checked);
void on_actionA_propos_triggered();
void on_TextFilter_textChanged(const QString &arg1);
void on_actionQT_infos_triggered();
public slots:
void processFinished(int exitCode, QProcess::ExitStatus exitStatus);
void processreadyReadStandardOutput();
void taskCompleted();
private:
Ui::Umlo *ui;
QProcess *SftpProc;
QDir *MountDir;
QSettings settings;
void scanDir(QDir dir);
QFuture <void> future;
QString RpmName;
int PrCase = 0;
int UpCase = 0;
QFileInfoList RpmList;
void FindLocalRpmVers(QStringList dir, QString LocalRpm);
void FindLocalRpm(QStringList dir);
void UploadRpm(QFileInfo Fs);
void clearitems();
void Populate(QString fileName, QString Whereis, QString Statu, QString Path);
QFutureWatcher<void> *futureWatcher;
bool LocalRpmEnd = false;
int HeightOffset = 0;
int WidthtOffset = 0;
signals:
void computationProgress( QFileInfo FsName);
protected:
//void closeEvent(QCloseEvent *event) override;
void resizeEvent(QResizeEvent *event) override;
};
#endif // UMLO_H