mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-02 12:17:51 -05:00
45 lines
1.2 KiB
C++
45 lines
1.2 KiB
C++
#include "RGBController.h"
|
|
|
|
#pragma once
|
|
|
|
class ProfileManager
|
|
{
|
|
public:
|
|
ProfileManager(std::string config_dir);
|
|
~ProfileManager();
|
|
|
|
bool SaveProfile(std::string profile_name);
|
|
bool LoadProfile(std::string profile_name);
|
|
bool LoadSizeFromProfile(std::string profile_name);
|
|
void DeleteProfile(std::string profile_name);
|
|
|
|
std::vector<std::string> profile_list;
|
|
|
|
bool LoadDeviceFromListWithOptions
|
|
(
|
|
std::vector<RGBController*>& temp_controllers,
|
|
std::vector<bool>& temp_controller_used,
|
|
RGBController* load_controller,
|
|
bool load_size,
|
|
bool load_settings
|
|
);
|
|
|
|
std::vector<RGBController*> LoadProfileToList
|
|
(
|
|
std::string profile_name
|
|
);
|
|
|
|
void SetConfigurationDirectory(std::string directory);
|
|
|
|
private:
|
|
std::string configuration_directory;
|
|
|
|
void UpdateProfileList();
|
|
bool LoadProfileWithOptions
|
|
(
|
|
std::string profile_name,
|
|
bool load_size,
|
|
bool load_settings
|
|
);
|
|
};
|