Rudimentary rescanning implemented but button for it not added due to SDK conflicts. Stop detection button.
Commit amended by Adam Honse <calcprogrammer1@gmail.com>
This commit is contained in:
parent
be84a60af6
commit
ec77c658f2
5 changed files with 112 additions and 28 deletions
|
|
@ -36,21 +36,26 @@ public:
|
|||
void RegisterDeviceListChangeCallback(ResourceManagerCallback new_callback, void * new_callback_arg);
|
||||
|
||||
unsigned int GetDetectionPercent();
|
||||
std::string GetDetectionString();
|
||||
const char* GetDetectionString();
|
||||
|
||||
void DeviceListChanged();
|
||||
|
||||
void Cleanup();
|
||||
|
||||
void DetectDevices();
|
||||
|
||||
void DetectDevicesThreadFunction();
|
||||
|
||||
void StopDeviceDetection();
|
||||
|
||||
void WaitForDeviceDetection();
|
||||
|
||||
private:
|
||||
static std::unique_ptr<ResourceManager> instance;
|
||||
|
||||
unsigned int detection_percent;
|
||||
std::string detection_string;
|
||||
std::atomic<bool> detection_is_required;
|
||||
std::atomic<unsigned int> detection_percent;
|
||||
const char* detection_string;
|
||||
|
||||
std::vector<i2c_smbus_interface*> busses;
|
||||
std::vector<RGBController*> rgb_controllers;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue