Starts and communicates with a dedicated process to perform plugin validation. Once instantiated, client should call AsyncPluginValidation::Validate for plugin that needs to be validated. When done, AsyncPluginValidation will notify caller via Delegate on the UI thread (requires event loop). After Delegate::OnValidationFinished is called procedure can be repeated with another plugin id.
More...
#include <AsyncPluginValidator.h>
Starts and communicates with a dedicated process to perform plugin validation. Once instantiated, client should call AsyncPluginValidation::Validate for plugin that needs to be validated. When done, AsyncPluginValidation will notify caller via Delegate on the UI thread (requires event loop). After Delegate::OnValidationFinished is called procedure can be repeated with another plugin id.
Definition at line 31 of file AsyncPluginValidator.h.
◆ AsyncPluginValidator() [1/3]
◆ AsyncPluginValidator() [2/3]
◆ AsyncPluginValidator() [3/3]
AsyncPluginValidator::AsyncPluginValidator |
( |
Delegate & |
delegate | ) |
|
|
explicit |
◆ ~AsyncPluginValidator()
AsyncPluginValidator::~AsyncPluginValidator |
( |
| ) |
|
|
default |
◆ InactiveSince()
std::chrono::system_clock::time_point AsyncPluginValidator::InactiveSince |
( |
| ) |
const |
|
noexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ SetDelegate()
void AsyncPluginValidator::SetDelegate |
( |
Delegate * |
delegate | ) |
|
◆ Validate()
void AsyncPluginValidator::Validate |
( |
const wxString & |
providerId, |
|
|
const wxString & |
pluginPath |
|
) |
| |
Each call to Validate should result in appropriate call OnValidationFinished, until then it's not allowed to call this method again. May fail with exception.
- Parameters
-
providerId | ID of the provider that should be used for validation |
pluginPath | path to the plugin module |
Definition at line 242 of file AsyncPluginValidator.cpp.
243{
244 mImpl->Validate(providerId, pluginPath);
245}
References mImpl.
◆ mImpl
std::shared_ptr<Impl> AsyncPluginValidator::mImpl |
|
private |
The documentation for this class was generated from the following files: