mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-23 16:40:22 -04:00
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.
31 lines
1.0 KiB
C++
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
|