OMOTE/Platformio/OmoteUI/UIs/BasicRefactored/page/WifiSettings.hpp
MatthewColvin 99787a69f2 added initial wifi settings page
currently can  scan for networks and
show them but clicking does nothing.
2023-10-15 00:24:07 -05:00

27 lines
No EOL
610 B
C++

#pragma once
#include "PageBase.hpp"
#include "wifiHandlerInterface.h"
namespace UI::Widget {
class List;
class Label;
} // namespace UI::Widget
namespace UI::Page {
class WifiSettings : public Base {
public:
WifiSettings(std::shared_ptr<wifiHandlerInterface> aWifi);
std::string GetTitle() override { return "Wifi Settings"; };
void SetHeight(lv_coord_t aHeight) override;
private:
std::shared_ptr<wifiHandlerInterface> mWifi;
Handler<wifiHandlerInterface::ScanDoneDataTy> mScanCompleteHandler;
UI::Widget::Label *mScanningText;
UI::Widget::List *mWifiNetworks;
};
} // namespace UI::Page