proxy: add IProxy::getConnection() (#179)
This provides access to the proxy's bus connection so code using the proxy does not need to store an external reference to it. A matching function is already available in IObject.
This commit is contained in:
1 parent
b0a72cbe92
commit
6df67469ad
3 files changed
+13
No files matched your search
@@ -267,6 +267,13 @@ namespace sdbus {
|
||||
*/
|
||||
[[nodiscard]] PropertySetter setProperty(const std::string& propertyName);
|
||||
|
||||
/*!
|
||||
* @brief Provides D-Bus connection used by the proxy
|
||||
*
|
||||
* @return Reference to the D-Bus connection
|
||||
*/
|
||||
virtual sdbus::IConnection& getConnection() const = 0;
|
||||
|
||||
/*!
|
||||
* @brief Returns object path of the underlying DBus object
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user