Move Profile Manager to Resource Manager and rework size loading so that sizes are updated upon redetection
This commit is contained in:
parent
e767b3db90
commit
e52619dbab
5 changed files with 62 additions and 13 deletions
|
|
@ -20,6 +20,7 @@
|
|||
#include "i2c_smbus.h"
|
||||
#include "NetworkClient.h"
|
||||
#include "NetworkServer.h"
|
||||
#include "ProfileManager.h"
|
||||
#include "RGBController.h"
|
||||
|
||||
typedef std::function<void(std::vector<i2c_smbus_interface*>&)> I2CBusDetectorFunction;
|
||||
|
|
@ -56,6 +57,8 @@ public:
|
|||
std::vector<NetworkClient*>& GetClients();
|
||||
NetworkServer* GetServer();
|
||||
|
||||
ProfileManager* GetProfileManager();
|
||||
|
||||
void DeviceListChanged();
|
||||
void DetectionProgressChanged();
|
||||
|
||||
|
|
@ -72,6 +75,11 @@ public:
|
|||
private:
|
||||
static std::unique_ptr<ResourceManager> instance;
|
||||
|
||||
/*-------------------------------------------------------------------------------------*\
|
||||
| Profile Manager |
|
||||
\*-------------------------------------------------------------------------------------*/
|
||||
ProfileManager* profile_manager;
|
||||
|
||||
/*-------------------------------------------------------------------------------------*\
|
||||
| I2C/SMBus Interfaces |
|
||||
\*-------------------------------------------------------------------------------------*/
|
||||
|
|
@ -80,6 +88,7 @@ private:
|
|||
/*-------------------------------------------------------------------------------------*\
|
||||
| RGBControllers |
|
||||
\*-------------------------------------------------------------------------------------*/
|
||||
std::vector<RGBController*> rgb_controllers_sizes;
|
||||
std::vector<RGBController*> rgb_controllers_hw;
|
||||
std::vector<RGBController*> rgb_controllers;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue