|
ImagingTools Core SDK
|
Interface for asynchronous device enumeration. More...
#include <IDeviceEnumerator.h>
Classes | |
| class | IResultHandler |
| Callback interface for receiving enumeration results. More... | |
Public Types | |
| enum | StartResult { SR_OK , SR_PREVIOUS_ENUMERATION_NOT_FINISHED , SR_FAILED } |
| Start enumeration result codes. More... | |
Public Member Functions | |
| virtual StartResult | StartEnumeration (IResultHandler *resultHandlerPtr)=0 |
| Start device enumeration process. | |
| virtual void | CancelEnumeration ()=0 |
| Cancel device enumeration process. | |
Interface for asynchronous device enumeration.
IDeviceEnumerator provides an asynchronous protocol for discovering and enumerating devices. The enumeration process runs in the background and delivers results through a callback interface.
This interface is the base for IDeviceController and enables non-blocking device discovery, which is essential for responsive user interfaces and scenarios where device enumeration may take significant time (e.g., network devices, USB scanning).
Definition at line 73 of file IDeviceEnumerator.h.
Start enumeration result codes.
Indicates whether enumeration was successfully initiated.
| Enumerator | |
|---|---|
| SR_OK | Enumeration started successfully. |
| SR_PREVIOUS_ENUMERATION_NOT_FINISHED | Cannot start - previous enumeration still running. |
| SR_FAILED | Failed to start enumeration. |
Definition at line 120 of file IDeviceEnumerator.h.
|
pure virtual |
Cancel device enumeration process.
Requests cancellation of the current enumeration. The result handler will be notified with ER_CANCELED status.
|
pure virtual |
Start device enumeration process.
Initiates asynchronous device discovery. If enumeration starts successfully (SR_OK is returned), the provided result handler's OnEnumerationResult() will be called when enumeration completes.
| resultHandlerPtr | Handler to receive enumeration completion notification |