![]() |
NDEVR
API Documentation
|
A dialog widget for selecting and connecting to a Wi-Fi network. More...
Public Member Functions | |
| WifiConnectDialog (QWidget *parent=nullptr) | |
| Constructs the Wi-Fi connect dialog. | |
| void | acceptedSignal () |
| Emitted when the user accepts the dialog. | |
| void | canceledSignal () |
| Emitted when the user cancels the dialog. | |
| PasswordString | currentPassword () const |
| Returns the currently entered password. | |
| String | currentSsid () const |
| Returns the currently selected or entered SSID, trimmed of whitespace. | |
| void | scanAndPopulate () |
| Triggers a Wi-Fi scan and populates the SSID combo box with the results. | |
| void | setPassword (const PasswordString &p) |
| Sets the password field value. | |
| void | setShowPassword (bool on) |
| Sets whether the password field shows its contents in plain text. | |
| void | setSsid (const StringView &s) |
| Sets the currently displayed SSID in the combo box. | |
| void | setSSIDs (const Buffer< String > &ssids, const Buffer< int > &strengths) |
| Populates the SSID combo box with available networks and their signal strengths. | |
| QSize | sizeHint () const override |
| Returns the recommended size for this dialog. | |
| void | startAutoScan (int interval_ms=10000) |
| Starts a periodic timer that automatically scans for Wi-Fi networks. | |
| void | stopAutoScan () |
| Stops the automatic Wi-Fi scan timer. | |
A dialog widget for selecting and connecting to a Wi-Fi network.
Provides an SSID combo box, password field, scan button, and accept/cancel buttons. Supports periodic automatic scanning for available networks.
Definition at line 23 of file WifiConnectDialog.h.
|
explicit |
Constructs the Wi-Fi connect dialog.
| [in] | parent | Optional parent widget. |
| PasswordString WifiConnectDialog::currentPassword | ( | ) | const |
Returns the currently entered password.
|
inline |
Returns the currently selected or entered SSID, trimmed of whitespace.
Definition at line 67 of file WifiConnectDialog.h.
References String::getAs().
| void WifiConnectDialog::setPassword | ( | const PasswordString & | p | ) |
Sets the password field value.
| [in] | p | The password to set. |
|
inline |
Sets whether the password field shows its contents in plain text.
| [in] | on | True to show the password, false to mask it. |
Definition at line 47 of file WifiConnectDialog.h.
|
inline |
Sets the currently displayed SSID in the combo box.
| [in] | s | The SSID to display. |
Definition at line 52 of file WifiConnectDialog.h.
| void WifiConnectDialog::setSSIDs | ( | const Buffer< String > & | ssids, |
| const Buffer< int > & | strengths ) |
Populates the SSID combo box with available networks and their signal strengths.
| [in] | ssids | The list of network SSIDs. |
| [in] | strengths | The corresponding signal strengths for each SSID. |
|
override |
Returns the recommended size for this dialog.
| void WifiConnectDialog::startAutoScan | ( | int | interval_ms = 10000 | ) |
Starts a periodic timer that automatically scans for Wi-Fi networks.
| [in] | interval_ms | The scan interval in milliseconds (default 10000). |