-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_disk.h
64 lines (36 loc) · 919 Bytes
/
main_disk.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
#ifndef MAIN_DISK_H
#define MAIN_DISK_H
#include <QMainWindow>
#include "mainwindow.h"
namespace Ui {
class main_disk;
}
class main_disk : public QMainWindow
{
Q_OBJECT
public:
explicit main_disk(QWidget *parent = 0);
~main_disk();
void set_config(Config *temp_config);
private:
/*
* 判断文件是否能够进行秒传
返回1 秒传成功 返回0 无法秒传
*/
void check_file_md5(QString filename,QString file_md5_string);
void upload_file(QString filename);
void flush_table(QJsonDocument json);
void add_upload_btn();
private slots:
void on_toolButton_clicked();
// void on_upload_btn_clicked();
void upload_btn();
void on_change_user_clicked();
void on_my_files_clicked();
private:
Ui::main_disk *ui;
//请求管理
QNetworkAccessManager * net_manger;
Config *config;
};
#endif // MAIN_DISK_H