#ifndef SYSSET_PAGE_H
|
#define SYSSET_PAGE_H
|
|
#include <QNetworkAddressEntry>
|
#include <QDateTime>
|
#include "welcome_page.h"
|
#include "adjust_page.h"
|
#include "sysconf_page.h"
|
#include "Common/SlaveCtrl.h"
|
|
namespace Ui {
|
class SysSet_Page;
|
}
|
|
class SysSet_Page : public customDialog
|
{
|
Q_OBJECT
|
public:
|
explicit SysSet_Page(QWidget *parent = 0, Work_Thread *thread = 0,SlaveCtrl *slavectrl = 0);
|
~SysSet_Page();
|
|
private:
|
Ui::SysSet_Page *ui;
|
Work_Thread *work_thread;
|
SlaveCtrl *Tcp;
|
bool one_sub_window_exist;
|
QDateTime qDT;
|
SYS_PARAM sysParam;
|
CT_DATE_TIME ctDT;
|
bool edit;
|
QTimer *t_timer;
|
int tmpaddr;
|
int tmpfre;
|
quint8 tcp_connect_cnt;
|
quint8 tcp_mode;
|
quint8 wifi_show_cnt;
|
QString wifi_ssid;
|
QString wifi_pwd;
|
QString IP;
|
Sysconf_Page *conf;
|
Adjust_Page *adjconf;
|
Welcome_Page *welcomeconf;
|
|
bool checkDateText(QString &Chked,CT_DATE_TIME &datetime);
|
bool checkTimeText(QString &Chked,CT_DATE_TIME &datetime);
|
void set_date_time(CT_DATE_TIME &dt);
|
void sys_param_show();
|
void setIcon();
|
void popBox(QString msg);
|
void get_wifi_ssid_pwd(void);
|
void ShowIP();
|
|
signals:
|
void SendSysParam(SYS_PARAM);
|
void SendSysAddrFre(int,int);
|
|
private slots:
|
void BtnReleased();
|
void TabChanged(int index);
|
void leditAction(void);
|
void get_date_time(void);
|
void RecvThreadState(int,int);
|
void UpdateInterface(int);
|
void on_btn_to_config_log_pressed();
|
};
|
|
#endif // SYSSET_PAGE_H
|