-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreceivefile.h
46 lines (37 loc) · 1020 Bytes
/
receivefile.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
#ifndef RECEIVEFILE_H
#define RECEIVEFILE_H
#include <QDialog>
#include <QFileDialog>
#include <QDebug>
#include <QMessageBox>
#include <QCloseEvent>
namespace Ui {
class Dialog;
}
class receiveFile : public QDialog
{
Q_OBJECT
public:
explicit receiveFile(QWidget *parent = nullptr);
void setIPv4(QString);
void setFileName(QString);
void setFileSize(QString);
QString formateFileSize(QString);
void setSaveFilePath(QString);
signals:
void acceptFile();
void rejectFile();
void modifySaveFilePath(QString);
private:
Ui::Dialog *ui;
QString saveFilePath;
quint8 accept = 0; //是否点击了接收按钮 0 未点击 1 已点击
private slots:
void on_modifySaveFilePath_clicked();
void on_rejectFile_clicked();
void on_acceptFile_clicked();
protected:
void closeEvent(QCloseEvent*);
//bool eventFilter(QObject *, QEvent *);
};
#endif // RECEIVEFILE_H