-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.h
54 lines (40 loc) · 941 Bytes
/
form.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
#ifndef FORM_H
#define FORM_H
#include <QWidget>
#include <QDebug>
#include <QNetworkAccessManager>
#include <QHttpMultiPart>
#include <QHttpPart>
#include <QNetworkRequest>
#include <QFile>
#include <QIODevice>
#include <QNetworkReply>
#include <QSslSocket>
namespace Ui {
class Form;
}
class Form : public QWidget
{
Q_OBJECT
public:
explicit Form(QWidget *parent = 0);
~Form();
private slots:
void on_saveScreenshot_clicked();
void on_pushButton_clicked();
void imageLoaded(QNetworkReply *);
void closeAllWindows();
private:
Ui::Form *ui;
QPixmap originalPixmap;
QString capturedDate;
QString targetFilename;
QString generateFilename(QString);
void updateScreenshotLabel();
void shootScreen();
void saveScreenshot(QString);
void uploadScreenshot(QString, QString, QString);
void saveToCustomPath();
void keyPressEvent(QKeyEvent *e);
};
#endif // FORM_H