5#include <NDEVR/QCustomLineEdit.h>
6#include <NDEVR/Toggle.h>
7#include <NDEVR/Button.h>
10#include <NDEVR/QCustomComboBox.h>
12#include <NDEVR/QCustomLabel.h>
13#include <NDEVR/PasswordString.h>
95 QTimer* m_scan_timer =
nullptr;
The equivelent of std::vector but with a bit more control.
When passwords are used inside the NDEVR engine, we don't want them logged or visible.
A compact way to present a list of options to the user.
A line edit allows users to enter and edit a single line of plain text with useful editing functions,...
The core String View class for the NDEVR API.
The core String class for the NDEVR API.
decltype(auto) getAs() const
Converts a string into an object.
A Button that toggles between on and off.
void startAutoScan(int interval_ms=10000)
Starts a periodic timer that automatically scans for Wi-Fi networks.
void setShowPassword(bool on)
Sets whether the password field shows its contents in plain text.
void canceledSignal()
Emitted when the user cancels the dialog.
WifiConnectDialog(QWidget *parent=nullptr)
Constructs the Wi-Fi connect dialog.
void scanAndPopulate()
Triggers a Wi-Fi scan and populates the SSID combo box with the results.
PasswordString currentPassword() const
Returns the currently entered password.
void setSSIDs(const Buffer< String > &ssids, const Buffer< int > &strengths)
Populates the SSID combo box with available networks and their signal strengths.
void acceptedSignal()
Emitted when the user accepts the dialog.
void setPassword(const PasswordString &p)
Sets the password field value.
String currentSsid() const
Returns the currently selected or entered SSID, trimmed of whitespace.
QSize sizeHint() const override
Returns the recommended size for this dialog.
void stopAutoScan()
Stops the automatic Wi-Fi scan timer.
void setSsid(const StringView &s)
Sets the currently displayed SSID in the combo box.
The primary namespace for the NDEVR SDK.