API Documentation
Loading...
Searching...
No Matches
WifiDialog.h
Go to the documentation of this file.
1/**--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: Widgets
28File: WifiDialog
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "DLLInfo.h"
34#if NDEVR_WIFI_DIALOG
35#include "QTWifiManager.h"
36#include <QWidget>
37namespace Ui {
38 class WifiDialogUI;
39}
40namespace NDEVR
41{
42 class NDEVR_NETWORK_API WifiDialog : public QWidget
43 {
44 Q_OBJECT
45 public:
46 explicit WifiDialog(QWidget *parent = nullptr);
47 virtual ~WifiDialog();
48 void setup();
49 void cleanup();
50 protected:
51 void updateWifiList();
52 signals:
53 void wifiConnected();
54 private slots:
55 void scanFinished(Buffer<WifiNetwork>);
56 void scanRequestFailed();
57 void connectRequestFailed(QString failure_message);
58 void connected();
59 void onWifiSelected(int row, int column);
60 void scanClicked();
61 void connectClicked();
62 void disconnectClicked();
63 private:
64 Ui::WifiDialogUI* ui;
65 bool m_current_has_profile;
66 Buffer<WifiNetwork> m_wifi_networks;
67 };
68}
69#endif
#define NDEVR_NETWORK_API
Definition DLLInfo.h:74
Definition ACIColor.h:37
Definition FontEditor.h:6