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
co-authored by infactum
parent ca5462cdee
commit bba636a656
2 changed files with 12 additions and 0 deletions
+8
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) {
+4
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);