-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainwindow.h
42 lines (34 loc) · 904 Bytes
/
mainwindow.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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "udpmutlticastsever.h"
#include "fileserver.h"
#include <QMainWindow>
#include <QFileDialog>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void on_scan_pushButton_clicked();
void gotaddress(QHostAddress addr);
void on_sendfile_pushButton_clicked();
void on_allselet_pushButton_clicked();
void on_listen_pushButton_clicked();
void on_clear_pushButton_clicked();
void gettcpconnectd(tcpclient *client);
void finishtcpsend(QString addr);
void clienterror(QString addr);
private:
Ui::MainWindow *ui;
UDPMutlticastSever udpsever;
fileserver *filesever_;
QList<QHostAddress> address;
QList<QHostAddress> sendaddress;
QString filename;
};
#endif // MAINWINDOW_H