83 lines
2.1 KiB
C++
83 lines
2.1 KiB
C++
/*
|
|
* Copyright (C) 2020 Tianjin KYLIN Information Technology Co., Ltd.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#ifndef DLGCONNHIDWIFI_H
|
|
#define DLGCONNHIDWIFI_H
|
|
|
|
#include <QDialog>
|
|
#include <QMouseEvent>
|
|
#include <QThread>
|
|
#include <QTimer>
|
|
#include <QFile>
|
|
|
|
class MainWindow;
|
|
|
|
namespace Ui {
|
|
class DlgHideWifi;
|
|
}
|
|
|
|
class DlgHideWifi : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit DlgHideWifi(int type, MainWindow *mw = 0, QWidget *parent = 0);
|
|
~DlgHideWifi();
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *event);
|
|
|
|
public slots:
|
|
void changeDialog();
|
|
void emitSignal();
|
|
void on_execSecConn();
|
|
void slotStartLoading();
|
|
void slotStartConnectHiddenOpenWifi();
|
|
void slotStartConnectRememberedHiddenWifi();
|
|
|
|
private slots:
|
|
void on_btnCancel_clicked();
|
|
|
|
void on_btnConnect_clicked();
|
|
|
|
void on_leNetName_textEdited(const QString &arg1);
|
|
|
|
signals:
|
|
void reSetWifiList();
|
|
void stopSignal();
|
|
void sigConnHiddenWifi(int secuType, QString wifiName, QString wifiPasswd);
|
|
void sigConnRememberedHiddenWifi(QString wifiName);
|
|
|
|
private:
|
|
Ui::DlgHideWifi *ui;
|
|
int isUsed;//=0 current wifi not used before; >=1 used
|
|
MainWindow *mw;
|
|
QString strWifiname;
|
|
// QString labelQss, cbxQss, leQss, btnConnQss, btnCancelQss, lineQss;
|
|
|
|
// void mousePressEvent(QMouseEvent *event);
|
|
// void mouseReleaseEvent(QMouseEvent *event);
|
|
// void mouseMoveEvent(QMouseEvent *event);
|
|
|
|
bool isPress;
|
|
QPoint winPos;
|
|
QPoint dragPos;
|
|
};
|
|
|
|
#endif // DLGCONNHIDWIFI_H
|