2024-09-29 17:29:10 +03:00
|
|
|
#pragma once
|
|
|
|
#include <optional>
|
|
|
|
#include <string>
|
|
|
|
#include <string_view>
|
|
|
|
#include <vector>
|
|
|
|
|
2024-10-02 17:51:51 +03:00
|
|
|
#include "includes/toml.hpp"
|
|
|
|
|
2024-09-29 17:29:10 +03:00
|
|
|
class KotoUiPreferences {
|
2024-10-02 17:51:51 +03:00
|
|
|
public:
|
2024-10-05 00:03:50 +03:00
|
|
|
KotoUiPreferences();
|
2024-10-02 17:51:51 +03:00
|
|
|
KotoUiPreferences(std::optional<toml::value> v);
|
|
|
|
~KotoUiPreferences();
|
|
|
|
|
|
|
|
bool getAlbumInfoShowDescription();
|
|
|
|
bool getAlbumInfoShowGenre();
|
|
|
|
bool getAlbumInfoShowNarrator();
|
|
|
|
bool getAlbumInfoShowYear();
|
|
|
|
float getLastUsedVolume();
|
2024-09-29 17:29:10 +03:00
|
|
|
|
2024-10-05 00:03:50 +03:00
|
|
|
toml::ordered_value serialize();
|
|
|
|
|
2024-10-02 17:51:51 +03:00
|
|
|
void setAlbumInfoShowDescription(bool show);
|
|
|
|
void setAlbumInfoShowGenre(bool show);
|
|
|
|
void setAlbumInfoShowNarrator(bool show);
|
|
|
|
void setAlbumInfoShowYear(bool show);
|
|
|
|
void setLastUsedVolume(float volume);
|
2024-09-29 17:29:10 +03:00
|
|
|
|
2024-10-02 17:51:51 +03:00
|
|
|
private:
|
|
|
|
bool i_albumInfoShowDescription;
|
|
|
|
bool i_albumInfoShowGenre;
|
|
|
|
bool i_albumInfoShowNarrator;
|
|
|
|
bool i_albumInfoShowYear;
|
|
|
|
float i_lastUsedVolume;
|
2024-09-29 17:29:10 +03:00
|
|
|
};
|