equal
deleted
inserted
replaced
89 mStatusLabel(0), |
89 mStatusLabel(0), |
90 mWlanButton(0) |
90 mWlanButton(0) |
91 { |
91 { |
92 OstTraceFunctionEntry0(WLANSNIFFERLISTVIEW_WLANSNIFFERLISTVIEW_ENTRY); |
92 OstTraceFunctionEntry0(WLANSNIFFERLISTVIEW_WLANSNIFFERLISTVIEW_ENTRY); |
93 |
93 |
94 // Start scanning immediately to get the first scan results as soon as |
|
95 // possible, since the scanning takes time. |
|
96 if (mEngine->masterWlan() && !mEngine->forceDisableWlan()) { |
|
97 mEngine->startWlanScanning(); |
|
98 } |
|
99 |
|
100 // Initialize UI from the docml based on standalone/embedded status |
94 // Initialize UI from the docml based on standalone/embedded status |
101 loadDocml(mEngine->isEmbedded()); |
95 loadDocml(mEngine->isEmbedded()); |
102 |
96 |
103 if (mEngine->isEmbedded()) { |
97 if (mEngine->isEmbedded()) { |
104 // We need to create a custom navigation action and handle exiting |
98 // We need to create a custom navigation action and handle exiting |
170 SIGNAL(triggered(bool)), |
164 SIGNAL(triggered(bool)), |
171 this, |
165 this, |
172 SLOT(handleWlanToggled())); |
166 SLOT(handleWlanToggled())); |
173 Q_ASSERT(connectStatus); |
167 Q_ASSERT(connectStatus); |
174 |
168 |
|
169 // Connect adding WLAN manually |
|
170 connectStatus = connect( |
|
171 mAddWlanAction, |
|
172 SIGNAL(triggered(bool)), |
|
173 this, |
|
174 SLOT(startWlanWizard())); |
|
175 Q_ASSERT(connectStatus); |
|
176 |
175 // Connect WLAN scan results signal |
177 // Connect WLAN scan results signal |
176 connectStatus = connect( |
178 connectStatus = connect( |
177 mEngine, |
179 mEngine, |
178 SIGNAL(wlanScanReady()), |
180 SIGNAL(wlanScanReady()), |
179 this, |
181 this, |
629 |
631 |
630 OstTraceFunctionExit0(WLANSNIFFERLISTVIEW_HANDLEWLANTOGGLED_EXIT); |
632 OstTraceFunctionExit0(WLANSNIFFERLISTVIEW_HANDLEWLANTOGGLED_EXIT); |
631 } |
633 } |
632 |
634 |
633 /*! |
635 /*! |
|
636 Function for handling WLAN Wizard starting when adding WLAN manually. |
|
637 */ |
|
638 |
|
639 void WlanSnifferListView::startWlanWizard() |
|
640 { |
|
641 OstTraceFunctionEntry0(WLANSNIFFERLISTVIEW_STARTWLANWIZARD_ENTRY); |
|
642 |
|
643 // TODO: Stop connections & do other cleanup before wizard can start? |
|
644 |
|
645 emit wizardTriggered(NULL); |
|
646 |
|
647 OstTraceFunctionExit0(WLANSNIFFERLISTVIEW_STARTWLANWIZARD_EXIT); |
|
648 } |
|
649 |
|
650 /*! |
634 Function to handle the input received when the wlan enabling |
651 Function to handle the input received when the wlan enabling |
635 query is closed. |
652 query is closed. |
636 |
653 |
637 @param [in] action The user action received from the dialog. |
654 @param [in] action The user action received from the dialog. |
638 */ |
655 */ |