Add detection progress bar to the user interface

This commit is contained in:
Adam Honse 2020-08-06 10:55:10 -05:00
parent aaa2ecddc7
commit e84cb98055
4 changed files with 65 additions and 6 deletions

View file

@ -34,6 +34,8 @@ public:
void RegisterDeviceListChangeCallback(ResourceManagerCallback new_callback, void * new_callback_arg);
unsigned int GetDetectionPercent();
void DeviceListChanged();
void DetectDevices();
@ -43,6 +45,8 @@ public:
private:
static std::unique_ptr<ResourceManager> instance;
unsigned int detection_percent;
std::vector<i2c_smbus_interface*> busses;
std::vector<RGBController*> rgb_controllers;
std::vector<DeviceDetectorFunction> device_detectors;