AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <DBusObject.h>
Public Types | |
using | commandHandler_t = void(T::*)(GVariant *parameters, GDBusMethodInvocation *invocation) |
Public Member Functions | |
virtual | ~DBusObject ()=default |
Public Member Functions inherited from alexaClientSDK::bluetoothImplementations::blueZ::DBusObjectBase | |
virtual | ~DBusObjectBase () |
bool | registerWithDBus () |
void | unregisterObject () |
Protected Member Functions | |
DBusObject (std::shared_ptr< DBusConnection > connection, std::string xmlInterfaceIntrospection, std::string objectPath, std::unordered_map< std::string, commandHandler_t > methodMap) | |
Protected Member Functions inherited from alexaClientSDK::bluetoothImplementations::blueZ::DBusObjectBase | |
DBusObjectBase (std::shared_ptr< DBusConnection > connection, const std::string &xmlInterfaceIntrospection, const std::string &objectPath, GDBusInterfaceMethodCallFunc methodCallFunc) | |
void | onMethodCalledInternal (const char *methodName) |
Typed version of the base class for objects exposed to DBus. This class simplifies the handling of DBus method calls by binding them to class member functions
T | Name of the derived class to be used to imlpement the object. The derived class declaration would look like this: }; |
using alexaClientSDK::bluetoothImplementations::blueZ::DBusObject< T >::commandHandler_t = void (T::*)(GVariant* parameters, GDBusMethodInvocation* invocation) |
Callback type to be used by member functions handling DBus method calls
parameters | Parameters provided to method call |
invocation | @ GDBusMethodInvocation object associated with a method call |
|
virtualdefault |
|
inlineprotected |
Constructor
connection | DBus connection to be used to register this obejct |
xmlInterfaceIntrospection | XML containing the description of the interfaces this object implements. See objectPath Path to register the object to methodMap A Method name to callback function map |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0