mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-02-06 12:22:00 -05:00
27 lines
829 B
C++
27 lines
829 B
C++
// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include <application-settings/windows/BaseSettingsWindow.hpp>
|
|
|
|
namespace app::settingsInterface
|
|
{
|
|
class AutoLockSettings;
|
|
}; // namespace app::settingsInterface
|
|
|
|
namespace gui
|
|
{
|
|
class AutolockWindow : public BaseSettingsWindow
|
|
{
|
|
public:
|
|
AutolockWindow(app::ApplicationCommon *app, app::settingsInterface::AutoLockSettings *autoLockSettings);
|
|
void onBeforeShow(ShowMode mode, SwitchData *data) override;
|
|
|
|
private:
|
|
auto buildOptionsList() -> std::list<Option> override;
|
|
std::chrono::seconds currentAutoLockTimeout{0};
|
|
app::settingsInterface::AutoLockSettings *autoLockSettings;
|
|
};
|
|
} // namespace gui
|