mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-31 01:11:56 -05:00
Performing the factory reset removes user files and settings. After powering on the device will run the onboarding.
33 lines
982 B
C++
33 lines
982 B
C++
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "Option.hpp"
|
|
#include "OptionsModel.hpp"
|
|
|
|
#include <ListView.hpp>
|
|
#include <ListViewWithArrows.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
template <class ListType>
|
|
class OptionsList
|
|
{
|
|
protected:
|
|
explicit OptionsList(std::shared_ptr<OptionsModel>(app), std::list<Option> = {});
|
|
|
|
ListType *optionsList = nullptr;
|
|
std::shared_ptr<OptionsModel> optionsModel = nullptr;
|
|
std::list<Option> options;
|
|
|
|
void createOptions();
|
|
void recreateOptions();
|
|
void clearOptions();
|
|
void addOptions(std::list<Option> &&optionList);
|
|
void changeOptions(std::list<Option> &&optionList);
|
|
void refreshOptions(std::list<Option> &&optionList);
|
|
void refreshOptions(std::list<Option> &&optionList, unsigned int pageIndex);
|
|
};
|
|
} // namespace gui
|