32 lines
472 B
C
32 lines
472 B
C
|
#ifndef MAINWINDOW_H
|
||
|
#define MAINWINDOW_H
|
||
|
|
||
|
#include <QMainWindow>
|
||
|
|
||
|
QT_BEGIN_NAMESPACE
|
||
|
namespace Ui { class MainWindow; }
|
||
|
QT_END_NAMESPACE
|
||
|
|
||
|
class QTcpSocket;
|
||
|
|
||
|
class MainWindow : public QMainWindow
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
MainWindow(QWidget *parent = nullptr);
|
||
|
~MainWindow();
|
||
|
|
||
|
private slots:
|
||
|
void on_connect_clicked();
|
||
|
|
||
|
void on_file_clicked();
|
||
|
|
||
|
void on_send_clicked();
|
||
|
|
||
|
private:
|
||
|
Ui::MainWindow *ui;
|
||
|
QTcpSocket *mSocket;
|
||
|
};
|
||
|
#endif // MAINWINDOW_H
|