Files
MuditaOS/module-apps/application-settings/windows/phone-modes/ConnectionFrequencyWindow.hpp
Pawel Olejniczak 4013416c8d [EGD-7359] Remove 0 connection frequency for message only mode
When Offline/Message only mode is set, Pure should log into
the network to send and download messages based on
connection frequency. The default option was set to 0, which
meant that message only mode was not working at all.
2022-02-02 18:31:13 +01:00

31 lines
1.0 KiB
C++

// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include <application-settings/windows/BaseSettingsWindow.hpp>
namespace app::settingsInterface
{
class ConnectionSettings;
}; // namespace app::settingsInterface
namespace gui
{
class ConnectionFrequencyWindow : public BaseSettingsWindow
{
private:
auto buildOptionsList() -> std::list<gui::Option> override;
void rebuild() override;
app::settingsInterface::ConnectionSettings *connectionSettings;
void updateInterval(uint8_t value);
std::vector<uint8_t> frequency{15, 30, 45, 60};
OptionWindowDestroyer destroyer = OptionWindowDestroyer(*this);
public:
ConnectionFrequencyWindow(app::ApplicationCommon *app,
app::settingsInterface::ConnectionSettings *connectionSettings);
void onBeforeShow(ShowMode m, SwitchData *d) override;
};
} // namespace gui