Add detection progress bar to the user interface
This commit is contained in:
parent
aaa2ecddc7
commit
e84cb98055
4 changed files with 65 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue