pans
2016-12-15 87e3ee273b2f84081ac45926be9d8e5be3166eaa
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
#ifndef CSERIALPARAMS_H
#define CSERIALPARAMS_H
 
#include <QtGui/QWidget>
#include <QCheckBox>
#include <QMessageBox>
#include <QLineEdit>
#include "DemoPublic.h"
#include "cpppcfgdlg.h"
 
#ifndef HPR_OK
#define HPR_OK 0
#endif
 
#ifndef HPR_ERROR
#define HPR_ERROR 1
#endif
 
#ifndef INT_LEN
#define INT_LEN 10  //the length of the string of 32 bit int
#endif
 
namespace Ui {
    class CSerialParams;
}
 
class CSerialParams : public QWidget {
    Q_OBJECT
public:
    int m_iCurrentIndex;
    BOOL m_bChanged;
    NET_DVR_RS232CFG_V30 m_stru232Info;
    NET_DVR_DECODERCFG_V30 m_stru485DecoderCfg[MAX_CHANNUM_V30];
    CSerialParams(QWidget *parent = 0);
    ~CSerialParams();
    int setUserID(long lUserID);
 
    //event
    void showEvent ( QShowEvent * event );
 
protected:
    void changeEvent(QEvent *e);
public slots:
    void refreshparams();
    void changeChanIndex(int index);
    void change232WorkState(int index);
    void saveparams();
    void PppSetup();
 
private:
    Ui::CSerialParams *m_ui;
    long m_lUserID;
    CPPPCfgDlg *m_PppParams;
};
 
#endif // CSERIALPARAMS_H