Ubuntu12.04.4_lts
2023-08-01 961efe36f62f7eba688d504ec0cdf3e1daa4dd74
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#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