1 #ifndef ADDPROFILEDLG_H
2 #define ADDPROFILEDLG_H
6 #include <qvalidator.h>
8 #include "qhexvalidator.h"
28 class AddProfileDlg
: public QDialog
33 AddProfileDlg( int socket_id
= 0 , const char *device_name
= 0,
34 QWidget
* parent
= 0, const char* name
= 0,
35 int Type
= PROFILE_ADD
, QListView
* pListView
= 0,
36 PRT_PROFILE_SETTING
*pProfilePtr
= 0, NDIS_802_11_MAC_ADDRESS
*pBSsid
= 0,
37 bool modal
= FALSE
, WFlags fl
= 0 );
42 QLineEdit
* LineEdit_ProfileName
;
43 QComboBox
* ComboBox_SSID
;
44 QPushButton
* PushButton_OK
;
45 QPushButton
* PushButton_Cancel
;
47 QTabWidget
* TabWidget_Config
;
48 //System Configuration Page
49 QWidget
* ConfigPage_tab
;
50 QLabel
* Config_TextLabel1
;
51 QLabel
* Config_TextLabel2
;
52 QLabel
* Config_TextLabel3
;
53 QLabel
* Config_TextLabel4
;
54 QLabel
* Config_TextLabel5
;
55 QLabel
* Config_TextLabel6
;
56 QButtonGroup
* Config_ButtonGroup_PowerSaveing
;
57 QRadioButton
* Config_RadioButton_CAM
;
58 QRadioButton
* Config_RadioButton_PSMode
;
59 QComboBox
* Config_ComboBox_NetworkType
;
60 QComboBox
* Config_ComboBox_Preamble
;
61 QCheckBox
* Config_CheckBox_RTS
;
62 QSlider
* Config_Slider_RTS
;
63 QSpinBox
* Config_SpinBox_RTS
;
64 QCheckBox
* Config_CheckBox_Fragment
;
65 QSlider
* Config_Slider_Fragment
;
66 QSpinBox
* Config_SpinBox_Fragment
;
67 QLabel
* Config_TextLabel_Channel
;
68 QComboBox
* Config_ComboBox_Channel
;
69 //Authentication_Security Page
70 QWidget
* SecurityPage_tab
;
71 QLabel
* Security_TextLabel1
;
72 QLabel
* Security_TextLabel2
;
73 QLabel
* Security_TextLabel3
;
74 QComboBox
* Security_ComboBox_AuthType
;
75 QComboBox
* Security_ComboBox_Encrypt
;
76 QLineEdit
* Security_LineEdit_PSK
;
77 QButtonGroup
* Security_ButtonGroup_Key
;
78 QRadioButton
* Security_RadioButton_Key1
;
79 QRadioButton
* Security_RadioButton_Key2
;
80 QRadioButton
* Security_RadioButton_Key3
;
81 QRadioButton
* Security_RadioButton_Key4
;
82 QComboBox
* Security_ComboBox_KeyType1
;
83 QComboBox
* Security_ComboBox_KeyType2
;
84 QComboBox
* Security_ComboBox_KeyType3
;
85 QComboBox
* Security_ComboBox_KeyType4
;
86 QLineEdit
* Security_LineEdit_Key1Hex
;
87 QLineEdit
* Security_LineEdit_Key1Ascii
;
88 QLineEdit
* Security_LineEdit_Key2Hex
;
89 QLineEdit
* Security_LineEdit_Key2Ascii
;
90 QLineEdit
* Security_LineEdit_Key3Hex
;
91 QLineEdit
* Security_LineEdit_Key3Ascii
;
92 QLineEdit
* Security_LineEdit_Key4Hex
;
93 QLineEdit
* Security_LineEdit_Key4Ascii
;
95 QHexValidator
* m_hexValidator
;
96 QListView
* m_ProfileListView
;
100 char *m_strDeviceName
;
101 bool m_bIsProfileNull
;
102 bool m_IsAddToProfile
;
104 NDIS_802_11_MAC_ADDRESS m_BSsid
;
105 PNDIS_802_11_BSSID_LIST_EX m_pBssidList
;
106 PRT_PROFILE_SETTING m_pProfileSetting
;
107 PRT_PROFILE_SETTING m_pEditProfileSetting
;
113 void Config_SetCurrentSSID(QString text
);
114 NDIS_802_11_NETWORK_INFRASTRUCTURE
Config_GetNetworkType();
115 int Security_GetWepKeyType(int index
);
116 QString
Security_GetWepKeyString(int index
);
117 QString
Security_GetPSKString();
118 NDIS_802_11_AUTHENTICATION_MODE
Security_GetAuthticationMode();
119 NDIS_802_11_ENCRYPTION_STATUS
Security_GetEncryptType();
120 void Security_SetAuthModeAndEncryType(NDIS_802_11_NETWORK_INFRASTRUCTURE NetworkType
, NDIS_802_11_AUTHENTICATION_MODE mode
, NDIS_802_11_ENCRYPTION_STATUS type
);
121 int Security_GetDefaultKeyId();
122 void Security_SetDefaultKeyId(int keyId
);
123 void Security_SetKeyTypeAndKeyString(int keyIndex
, int keyType
, char *keyString
);
126 virtual void Do_NotThing() { };
128 virtual void OnCancel();
129 virtual void Config_OnSelectSSID(int id
);
130 virtual void Config_OnSelectNetworkType(int index
);
131 virtual void Config_OnEnableRTS(bool flag
);
132 virtual void Config_OnEnableFragment(bool flag
);
133 virtual void Config_OnRTSSliderChanged(int value
);
134 virtual void Config_OnFragmentSliderChanged(int value
);
135 virtual void Config_OnRTSSpinBoxChanged(int value
);
136 virtual void Config_OnFragmentSpinBoxChanged(int value
);
137 virtual void Security_OnSelectAuthenType(int id
);
138 virtual void Security_OnSelectEncryptType(int id
);
139 virtual void Security_OnSelectKey1Type(int id
);
140 virtual void Security_OnSelectKey2Type(int id
);
141 virtual void Security_OnSelectKey3Type(int id
);
142 virtual void Security_OnSelectKey4Type(int id
);
145 #endif // ADDPROFILEDLG_H