mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-01 10:28:52 -05:00
This is not the best fix, as it most probably should be written differently in the first place
28 lines
728 B
C++
28 lines
728 B
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 <service-db/Settings.hpp>
|
|
#include <windows/OptionWindow.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class BaseSettingsWindow : public OptionWindow
|
|
{
|
|
public:
|
|
BaseSettingsWindow(app::ApplicationCommon *app, std::string name);
|
|
|
|
void rebuild() override;
|
|
|
|
void rebuildOptionList();
|
|
void refreshOptionsList();
|
|
void refreshOptionsList(unsigned int pageIndex);
|
|
|
|
void onBeforeShow(ShowMode mode, SwitchData *data) override;
|
|
|
|
private:
|
|
virtual auto buildOptionsList() -> std::list<gui::Option> = 0;
|
|
};
|
|
} // namespace gui
|