AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <DBusProxy.h>
Public Member Functions | |
virtual | ~DBusProxy () |
virtual ManagedGVariant | callMethod (const std::string &methodName, GVariant *parameters=nullptr, GError **error=nullptr) |
virtual ManagedGVariant | callMethodWithFDList (const std::string &methodName, GVariant *parameters=nullptr, GUnixFDList **outlist=nullptr, GError **error=nullptr) |
virtual std::string | getObjectPath () const |
virtual GDBusProxy * | get () |
Static Public Member Functions | |
static std::shared_ptr< DBusProxy > | create (const std::string &interfaceName, const std::string &objectPath) |
Protected Member Functions | |
DBusProxy (GDBusProxy *proxy, const std::string &objectPath) | |
A wrapper class for DBus proxy objects.
|
virtual |
|
protected |
Constructor that initializes the object with an existing GDBusProxy*
value. It also receives object path for the object being proxified to keep it for later use.
proxy | An existing GDBusProxy* value |
objectPath | Object path of an object being proxified |
|
virtual |
Calls a method of the proxy and returns the its result.
methodName | Name of the method to invoke | |
parameters | A GVariant* containing the tuple with the parameters for the method or nullptr if method does not have any parameters | |
[out] | error | A pointer to a GError* variable that will receive the error returned by method invocation |
GVariant*
returned by method invocation
|
virtual |
Calls a method of the proxy and returns the its result along with the list of linux file descriptors associated with it.
methodName | Name of the method to invoke | |
parameters | A GVariant* containing the tuple with the parameters for the method or nullptr if method does not have any parameters | |
[out] | outlist | A pointer to GUnixFDList* variable that recieves a list of linux file descriptor list associated with result returned by the method call |
[out] | error | A pointer to a GError* variable that will receive the error returned by method invocation |
GVariant*
returned by method invocation
|
static |
Factory method to create a new instance of the DBus proxy. DBus proxies are shortcuts that bind to a specific interface of an object and simplifies operations on that object by avoiding providing the object and its interface during the subsequent calls.
interfaceName | Name of the DBus interface to be proxified |
objectPath | Object path to an object who's interface is to be proxified |
DBusProxy
on success, nullptr otherwise.
|
virtual |
Get the raw GDBusProxy*
value associated with the object
GDBusProxy
object associated with the this instance. This pointer is valid as long as DBusProxy
object is valid.
|
virtual |
Get the path of the object being proxified
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0