1
0
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:
FragsterAt 2021-02-15 22:09:36 +03:00 committed by GitHub
parent ca5462cdee
commit bba636a656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -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) {

View File

@ -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);