-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
93 lines (70 loc) · 1.99 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "veniceservice.h"
#include <QMainWindow>
#include <QLowEnergyAdvertisingData>
#include <QLowEnergyController>
#include <QLowEnergyAdvertisingParameters>
#include <QLowEnergyCharacteristicData>
#include <QLowEnergyServiceData>
#include <QLowEnergyDescriptorData>
#include <QtCore/qtimer.h>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
/**
* @brief The MainWindow class is the entry point for the final user UI
*/
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
/**
* @brief MainWindow constructor
* @param parent The Parent of MainWindow
*/
MainWindow(QWidget *parent = nullptr);
/**
* @brief MainWindow destructor
*/
~MainWindow();
/**
* @brief setMainApplication defines the QT main application related to the window
* @param application Tha main appliction
*/
void setMainApplication(QApplication *application);
private slots:
//The venice service thread
/**
* @brief on_sendFileButton_clicked starts a thread for advertising a service that accepts files transfer
*/
void on_sendFileButton_clicked();
/**
* @brief doPopup
*/
void doPopup();
/**
* @brief on_brownseSendFileButton_clicked shows a browser file windows for selecting a file to be sent
*/
void on_browseSendFileButton_clicked();
/**
* @brief on_receiveFileButton_clicked
*/
void on_receiveFileButton_clicked();
/**
* @brief on_bleSendRadioButton_clicked enables/disables the wifi radio button
*/
void on_bleSendRadioButton_clicked();
/**
* @brief on_wifiSendRadioButton_clicked enables/disables the send file button
*/
void on_wifiSendRadioButton_clicked();
private:
//The main window
Ui::MainWindow *ui;
//The venice service thread
VeniceService *veniceService= nullptr;
//The main application
QApplication *mainApplication= nullptr;
};
#endif // MAINWINDOW_H