1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-09 12:01:44 +00:00
AIO-switch-updater/include/ams_tab.hpp
flb 7295942829 remove uncessary listitems
Update README.md

Update README.md

Update README.md
2021-10-14 18:01:07 +02:00

31 lines
No EOL
1.3 KiB
C++

#pragma once
#include <borealis.hpp>
#include <json.hpp>
#include <set>
class AmsTab : public brls::List
{
private:
brls::ListItem* listItem;
brls::Label* description;
int size = 0;
bool erista;
nlohmann::ordered_json hekate;
std::string GetRepoName(const std::string& repo);
std::set<std::string> GetLastDownloadedModules(const std::string& json_path);
void CreateStagedFrames(const std::string& text, const std::string& url, const std::string& operation, bool erista, bool hekate = false, const std::string& text_hekate = "", const std::string& hekate_url = "");
void CreateDownloadItems(const nlohmann::ordered_json& cfw_links, bool hekate = true);
nlohmann::ordered_json SortDeepseaModules(const nlohmann::ordered_json& modules);
void ShowCustomDeepseaBuilder(nlohmann::ordered_json& modules);
public:
AmsTab(const nlohmann::json& nxlinks, const bool erista = true, const bool hideStandardEntries = false);
};
class UnTogglableListItem : public brls::ToggleListItem
{
public:
UnTogglableListItem(const std::string& label, bool initialValue, std::string description = "", std::string onValue = "On", std::string offValue = "Off") : ToggleListItem(label, initialValue, description, onValue, offValue) {}
virtual bool onClick() override;
};