You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
#ifndef HOMEPAGESETINGWIDGET_H
|
|
#define HOMEPAGESETINGWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include <QSettings>
|
|
|
|
namespace Ui {
|
|
class HomePageSetingWidget;
|
|
}
|
|
|
|
class HomePageSetingWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit HomePageSetingWidget(QWidget *parent = nullptr);
|
|
~HomePageSetingWidget();
|
|
private:
|
|
Ui::HomePageSetingWidget *ui;
|
|
QString _lLinkIp; //L链
|
|
QString _adHocNetwork; //自组网
|
|
QString _satelliteComm; //PDT
|
|
std::unique_ptr<QSettings> _configIni; //配置文件写入
|
|
QString urlFile; //配置文件路径
|
|
private:
|
|
void initEdit();
|
|
public:
|
|
void setUrl(std::unordered_map<QString,QString>& urlMap);
|
|
|
|
private slots:
|
|
void on_lLinkButton_clicked();
|
|
void on_netButton_clicked();
|
|
void on_sateliteButton_clicked();
|
|
void on_oneKeyButton_clicked();
|
|
signals:
|
|
void sendOnlyUrl(unsigned char urlIndex, QString url); //发送信号给网页显示
|
|
void sendAllUrl(std::unordered_map<QString,QString> urlMap);
|
|
public:
|
|
enum urlEnum:unsigned char
|
|
{
|
|
L_Link = 1,
|
|
Adhoc_Network,
|
|
Satelite_Comm
|
|
};
|
|
};
|
|
|
|
#endif // HOMEPAGESETINGWIDGET_H
|