trikRuntime
wiFiAPWidget.h
Go to the documentation of this file.
1 /* Copyright 2014 CyberTech Labs Ltd.
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License. */
14 
15 #pragma once
16 
17 #include <QtCore/qglobal.h>
18 
19 #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
20  #include <QtGui/QWidget>
21  #include <QtGui/QLabel>
22  #include <QtGui/QVBoxLayout>
23 #else
24  #include <QtWidgets/QWidget>
25  #include <QtWidgets/QLabel>
26  #include <QtWidgets/QVBoxLayout>
27 #endif
28 
29 #include <QtCore/QFile>
30 #include <QtCore/QString>
31 #include <QtCore/QEventLoop>
32 
33 #include "trikGuiDialog.h"
34 
35 namespace trikGui {
36 
39 {
40  Q_OBJECT
41 
42 public:
45  explicit WiFiAPWidget(QWidget *parent = 0);
46 
47  void renewFocus() override;
48 
49 private:
50  void getParameters();
51 
52  QVBoxLayout mMainLayout;
53  QVBoxLayout mParametersLayout;
54  QLabel mTitle;
55  QLabel mNetworkLabel;
56  QLabel mKeyLabel;
57  QLabel mIpLabel;
58 };
59 
60 }
WiFiAPWidget(QWidget *parent=0)
Constructor.
Definition: wiFiAPWidget.cpp:30
Base class for all trikGui dialog widgets.
Definition: trikGuiDialog.h:24
Widget showing parameters of wireless access point on the controller.
Definition: wiFiAPWidget.h:38
void renewFocus() override
Set focus properly on this widget or one of its children.
Definition: wiFiAPWidget.cpp:58
Definition: abstractIndicator.h:21