#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
|