MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / net / wireless / rtlink / Utility / raconfigui.h
blobfc8662cfa58437d769d1dc75ad8c86e629e7898f
1 #ifndef RACONFIGUI_H
2 #define RACONFIGUI_H
4 #include <qvariant.h>
5 #include <qwidget.h>
6 #include "rt_tool.h"
8 class QVBoxLayout;
9 class QHBoxLayout;
10 class QGridLayout;
11 class QButtonGroup;
12 class QCheckBox;
13 class QComboBox;
14 class QLabel;
15 class QLineEdit;
16 class QListView;
17 class QListViewItem;
18 class QProgressBar;
19 class QPushButton;
20 class QTabWidget;
21 class QWidget;
23 class RaConfigForm : public QWidget
25 Q_OBJECT
27 public:
28 RaConfigForm( int socket_id, const char *device_name, QWidget* parent = 0, const char* name = 0);
29 ~RaConfigForm();
31 QTabWidget* TabWidgetRaConfig;
32 //Profile Page
33 QWidget* ProfilePage_tab;
34 QButtonGroup* Profile_ButtonGroup;
35 QPushButton* Profile_PushButton_Add;
36 QPushButton* Profile_PushButton_Delete;
37 QPushButton* Profile_PushButton_Edit;
38 QPushButton* Profile_PushButton_Activate;
39 QListView* Profile_ListView;
40 //Link Status Page
41 QWidget* LinkStatusPage_tab;
42 QLabel* LinkStatus_TextLabel1;
43 QLabel* LinkStatus_TextLabel2;
44 QLabel* LinkStatus_TextLabel3;
45 QLabel* LinkStatus_TextLabel4;
46 QLabel* LinkStatus_TextLabel5;
47 QLabel* LinkStatus_TextLabel6;
48 QLabel* LinkStatus_TextLabel7;
49 QLabel* LinkStatus_TextLabel8;
50 QLabel* LinkStatus_TextLabel_Status;
51 QLabel* LinkStatus_TextLabel_Channel;
52 QLabel* LinkStatus_TextLabel_TxRate;
53 QLabel* LinkStatus_TextLabel_TxThrougput;
54 QLabel* LinkStatus_TextLabel_RxThroughput;
55 QLabel* LinkStatus_TextLabel_Link;
56 QProgressBar* LinkStatus_ProgressBar_Link;
57 QLabel* LinkStatus_TextLabel_Signal;
58 QCheckBox* LinkStatus_CheckBox_dbm;
59 QProgressBar* LinkStatus_ProgressBar_Signal;
60 //Site Survey Page
61 QWidget* SiteSurveyPage_tab;
62 QButtonGroup* SiteSurvey_ButtonGroup;
63 QListView* SiteSurvey_ListView;
64 QLineEdit* SiteSurvey_LineEdit_Status;
65 QPushButton* SiteSurvey_PushButton_Rescan;
66 QPushButton* SiteSurvey_PushButton_Connect;
67 QPushButton* SiteSurvey_PushButton_AddProfile;
68 //Statistics Page
69 QWidget* StatisticsPage_tab;
70 QButtonGroup* Statistics_ButtonGroup_Tx;
71 QLabel* Statistics_TextLabel1;
72 QLabel* Statistics_TextLabel2;
73 QLabel* Statistics_TextLabel3;
74 QLabel* Statistics_TextLabel4;
75 QLabel* Statistics_TextLabel5;
76 QLabel* Statistics_TextLabel6;
77 QLabel* Statistics_TextLabel7;
78 QLabel* Statistics_TextLabel8;
79 QLabel* Statistics_TextLabel9;
80 QLabel* Statistics_TextLabel10;
81 QLabel* Statistics_TextLabel11;
82 QLabel* Statistics_TextLabel12;
83 QLabel* Statistics_TextLabel_TxSuccess;
84 QLabel* Statistics_TextLabel_TxWithoutRetry;
85 QLabel* Statistics_TextLabel_TxAfterRetry;
86 QLabel* Statistics_TextLabel_TxFailACK;
87 QLabel* Statistics_TextLabel_RTSSuccess;
88 QLabel* Statistics_TextLabel_RTSFail;
89 QButtonGroup* Statistics_ButtonGroup_Rx;
90 QLabel* Statistics_TextLabel13;
91 QLabel* Statistics_TextLabel14;
92 QLabel* Statistics_TextLabel15;
93 QLabel* Statistics_TextLabel16;
94 QLabel* Statistics_TextLabel17;
95 QLabel* Statistics_TextLabel18;
96 QLabel* Statistics_TextLabel19;
97 QLabel* Statistics_TextLabel20;
98 QLabel* Statistics_TextLabel_RxSuccess;
99 QLabel* Statistics_TextLabel_RxCRC;
100 QLabel* Statistics_TextLabel_RxDrop;
101 QLabel* Statistics_TextLabel_Duplicate;
102 QPushButton* Statistics_PushButton_Reset;
103 //Advance Page
104 QWidget* AdvancePage_tab;
105 QLabel* Advance_TextLabel1;
106 QLabel* Advance_TextLabel2;
107 QLabel* Advance_TextLabel3;
108 QComboBox* Advance_ComboBox_Mode;
109 QCheckBox* Advance_CheckBox_AdhocOfdm;
110 QCheckBox* Advance_CheckBox_TxBurst;
111 QCheckBox* Advance_CheckBox_ShortSlot;
112 QCheckBox* Advance_CheckBox_TurboRate;
113 QComboBox* Advance_ComboBox_BGProtection;
114 QComboBox* Advance_ComboBox_TxRate;
115 QLabel* Advance_TextLabel_Radio;
116 QPushButton* Advance_PushButton_Radio;
117 QPushButton* Advance_PushButton_Apply;
118 //About Page
119 QWidget* AboutPage_tab;
120 QLabel* About_TextLabel_Logo;
121 QButtonGroup* About_ButtonGroupUI;
122 QLabel* About_TextLabel1;
123 QLabel* About_TextLabel_UIVersion;
124 QLabel* About_TextLabel2;
125 QLabel* About_TextLabel_UIDate;
126 QButtonGroup* About_ButtonGroupNIC;
127 QLabel* About_TextLabel3;
128 QLabel* About_TextLabel_NICVersion;
129 QLabel* About_TextLabel4;
130 QLabel* About_TextLabel_NICDate;
131 QButtonGroup* About_ButtonGroupMAC;
132 QLabel* About_TextLabel5;
133 QLabel* About_TextLabel_PhyAddress;
135 bool m_bRescan;
136 bool m_bSetBssid;
137 bool m_bSetSsid;
138 bool m_bTXBurst;
139 bool m_bAdhocOfdm;
140 bool m_bShortSlot;
141 bool m_bTurboRate;
142 bool m_bUpdateSiteSurveyPage;
143 bool m_bUpdateProfilePage;
144 bool m_bUpdateLinkSatusPage;
146 int m_nSocketId;
147 int m_nTimerCount;
148 int m_nBGProtection;
149 int m_nTXRate;
150 int m_nWirelessMode;
152 char *m_strDeviceName;
153 unsigned int m_nSigQua;
154 unsigned long m_lTxCount;
155 unsigned long m_lRxCount;
156 unsigned long m_lChannelQuality;
158 int timerId_Alive;
159 int timerId_ConnectStatus;
160 int timerId_LinkStatus;
161 int timerId_Statistic;
162 int timerId_UpdateProfileStatus;
164 char m_strActiveProfileID[32+1];
166 PNDIS_802_11_BSSID_LIST_EX m_pBssidList;
167 PRT_PROFILE_SETTING m_pProfileSetting;
168 NDIS_802_11_SSID m_SsidSet;
169 NDIS_802_11_MAC_ADDRESS m_BssidSet;
170 RT_802_11_PHY_MODE m_WirelessMode;
172 void Profile_OnActive();
173 void Profile_ReadProfileFromFile();
174 void Profile_UpdateProfileStatus();
175 void Profile_WriteProfileToFile();
176 void Profile_WriteConfigToRegistryAndSetOid();
177 void LinkStatus_OnActive();
178 void LinkStatus_UpdateStatus();
179 void SiteSurvey_OnActive();
180 void SiteSurvey_ProbeConnectStatus();
181 void SiteSurvey_RescanTimerFunc();
182 void SiteSurvey_UpdateConnectStatus(NDIS_MEDIA_STATE ConnectStatus);
183 void SiteSurvey_ButtonShowHide();
184 NDIS_802_11_AUTHENTICATION_MODE SiteSurvey_GetEncryStatus();
185 bool SiteSurvey_ResetOidValue(NDIS_802_11_NETWORK_INFRASTRUCTURE enumInfrastructureMode = Ndis802_11Infrastructure);
186 void Statistics_OnActive();
187 void Statistics_OnTimer();
188 void Advance_OnActive();
189 void Advance_ReadConfigFromRegistry();
190 void About_OnActive();
192 public slots:
193 virtual void Do_NotThing() { };
194 virtual void OnPageChanged();
195 virtual void timerEvent(QTimerEvent* e);
196 virtual void Profile_OnAddProfile();
197 virtual void Profile_OnDeleteProfile();
198 virtual void Profile_OnEditProfile();
199 virtual void Profile_OnActiveProfile();
200 virtual void SiteSurvey_OnRescan();
201 virtual void SiteSurvey_OnConnect();
202 virtual void SiteSurvey_OnAddToProfile();
203 virtual void Statistics_OnResetCounters();
204 virtual void SiteSurvey_OnSelectChange();
205 virtual void Advance_OnRadio();
206 virtual void Advance_OnApply();
207 virtual void Advance_OnSelchangeWirelessMode(int index);
212 #endif // RACONFIGUI_H