mirror of
https://github.com/alkoleft/yaxunit-addin.git
synced 2024-12-12 08:23:54 +02:00
event buffer depth control
Co-authored-by: infactum <infactum@gmail.com>
This commit is contained in:
parent
ca5462cdee
commit
bba636a656
@ -281,6 +281,14 @@ bool Component::ExternalEvent(const std::string &src, const std::string &msg, co
|
||||
return success;
|
||||
}
|
||||
|
||||
bool Component::SetEventBufferDepth(long depth) {
|
||||
return connection->SetEventBufferDepth(depth);
|
||||
}
|
||||
|
||||
long Component::GetEventBufferDepth() {
|
||||
return connection->GetEventBufferDepth();
|
||||
}
|
||||
|
||||
void Component::AddProperty(const std::wstring &alias, const std::wstring &alias_ru,
|
||||
std::function<std::shared_ptr<variant_t>(void)> getter,
|
||||
std::function<void(variant_t &&)> setter) {
|
||||
|
@ -104,6 +104,10 @@ protected:
|
||||
|
||||
bool ExternalEvent(const std::string &src, const std::string &msg, const std::string &data);
|
||||
|
||||
bool SetEventBufferDepth(long depth);
|
||||
|
||||
long GetEventBufferDepth();
|
||||
|
||||
void AddProperty(const std::wstring &alias, const std::wstring &alias_ru,
|
||||
std::function<std::shared_ptr<variant_t>(void)> getter = nullptr,
|
||||
std::function<void(variant_t &&)> setter = nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user