Fixing profile loading #1135
This commit is contained in:
parent
ea6e961a13
commit
84861ef989
5 changed files with 51 additions and 12 deletions
|
|
@ -5,7 +5,11 @@
|
|||
class ProfileManagerInterface
|
||||
{
|
||||
public:
|
||||
virtual bool SaveProfile(std::string profile_name) = 0;
|
||||
virtual bool SaveProfile
|
||||
(
|
||||
std::string profile_name,
|
||||
bool sizes = false
|
||||
) = 0;
|
||||
virtual bool LoadProfile(std::string profile_name) = 0;
|
||||
virtual bool LoadSizeFromProfile(std::string profile_name) = 0;
|
||||
virtual void DeleteProfile(std::string profile_name) = 0;
|
||||
|
|
@ -22,7 +26,11 @@ public:
|
|||
bool load_settings
|
||||
) = 0;
|
||||
|
||||
virtual std::vector<RGBController*> LoadProfileToList (std::string profile_name) = 0;
|
||||
virtual std::vector<RGBController*> LoadProfileToList
|
||||
(
|
||||
std::string profile_name,
|
||||
bool sizes = false
|
||||
) = 0;
|
||||
|
||||
virtual void SetConfigurationDirectory(std::string directory) = 0;
|
||||
protected:
|
||||
|
|
@ -35,7 +43,11 @@ public:
|
|||
ProfileManager(std::string config_dir);
|
||||
~ProfileManager();
|
||||
|
||||
bool SaveProfile(std::string profile_name);
|
||||
bool SaveProfile
|
||||
(
|
||||
std::string profile_name,
|
||||
bool sizes = false
|
||||
);
|
||||
bool LoadProfile(std::string profile_name);
|
||||
bool LoadSizeFromProfile(std::string profile_name);
|
||||
void DeleteProfile(std::string profile_name);
|
||||
|
|
@ -54,7 +66,8 @@ public:
|
|||
|
||||
std::vector<RGBController*> LoadProfileToList
|
||||
(
|
||||
std::string profile_name
|
||||
std::string profile_name,
|
||||
bool sizes = false
|
||||
);
|
||||
|
||||
void SetConfigurationDirectory(std::string directory);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue