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
#ifndef CUSERPARAMS_H
#define CUSERPARAMS_H
 
#include <QtGui/QDialog>
#include <QtGui/QLineEdit>
#include <QtGui/QPushButton>
#include "ui_cuserparams.h"
#include "DemoPublic.h"
 
class CUserParams : public QDialog
{
    Q_OBJECT
 
public:
    CUserParams(QWidget *parent = 0);
    ~CUserParams();
 
    int setUserID(long lUserID);
 
    int getAllInfo();
    int setAllInfo();
 
public slots:
    void userIDChanged(int iUserID);
    void localRightTypeChanged(int iLocalRightType);       //±¾µØÍ¨µÀ
    void remoteRightTypeChanged(int iRemoteRightType); //Ô¶³ÌͨµÀ
 
private:
    Ui::CUserParamsClass ui;
    long m_lUserID;
    QCheckBox *m_pcheckLocalRight[MAX_RIGHT];    //±¾µØÈ¨ÏÞ
    QCheckBox *m_pcheckRemoteRight[MAX_RIGHT]; //Ô¶³ÌȨÏÞ
    int m_iArryChannel[MAX_CHANNUM_V30];//the index is  combox index, the value is channel ID
    QCheckBox *m_pcheckLocalChannel[MAX_CHANNUM_V30];    //±¾µØÍ¨µÀȨÏÞ
    QCheckBox *m_pcheckRemoteChannel[MAX_CHANNUM_V30]; //Ô¶³ÌͨµÀȨÏÞ
    QPushButton  *m_ptest;
    int m_iStartChan;            // ¿ªÊ¼Í¨µÀºÅ.
    int m_iSimChannelNum;  //ʵ¼Ê¿ÉÓÃÄ£ÄâͨµÀ¸öÊý
    QLineEdit *m_pEditMAC[MACADDR_LEN]; //ÎïÀíµØÖ·
 
    //event
    void showEvent ( QShowEvent * event );
    //½¨Á¢checkȨÏÞÓëcheckÊý×éÖ®¼äµÄ¶ÔÓ¦¹ØÏµ
    void connectArrayAndWidget();
    //get the channel and IP channel. (Used by myself.)
    int getChannelNum();
};
 
#endif // CUSERPARAMS_H