diff --git a/src/Component.cpp b/src/Component.cpp index 69e660c..7ffcb80 100644 --- a/src/Component.cpp +++ b/src/Component.cpp @@ -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(void)> getter, std::function setter) { diff --git a/src/Component.h b/src/Component.h index 8890e32..5797bac 100644 --- a/src/Component.h +++ b/src/Component.h @@ -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(void)> getter = nullptr, std::function setter = nullptr);