/* * This file was generated by the CommonAPI Generators. * Used org.genivi.commonapi.core 2.1.5.201312121915. * Used org.franca.core 0.8.11.201401091023. * * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. * If a copy of the MPL was not distributed with this file, You can obtain one at * http://mozilla.org/MPL/2.0/. */ #include "CommandControlDBusStubAdapter.h" #include namespace org { namespace genivi { namespace am { std::shared_ptr createCommandControlDBusStubAdapter( const std::shared_ptr& factory, const std::string& commonApiAddress, const std::string& interfaceName, const std::string& busName, const std::string& objectPath, const std::shared_ptr& dbusProxyConnection, const std::shared_ptr& stubBase) { return std::make_shared(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection, stubBase); } __attribute__((constructor)) void registerCommandControlDBusStubAdapter(void) { CommonAPI::DBus::DBusFactory::registerAdapterFactoryMethod(CommandControl::getInterfaceId(), &createCommandControlDBusStubAdapter); } CommandControlDBusStubAdapterInternal::~CommandControlDBusStubAdapterInternal() { deactivateManagedInstances(); CommandControlDBusStubAdapterHelper::deinit(); } void CommandControlDBusStubAdapterInternal::deactivateManagedInstances() { } const char* CommandControlDBusStubAdapterInternal::getMethodsDBusIntrospectionXmlData() const { static const std::string introspectionData = "\n" "" "\n" /** * Callback that is called when the number of connections change */ "\n" "\n" "\n" /** * Callback that is called when the number of connections change */ "\n" "\n" "\n" /** * Callback that is called when the number of sinks change */ "\n" "\n" "\n" /** * Callback that is called when the number of sinks change */ "\n" "\n" "\n" /** * Callback that is called when the number of sources change */ "\n" "\n" "\n" /** * Callback that is called when the number of sources change */ "\n" "\n" "\n" /** * this callback is fired if the number of sink classes changed */ "\n" "\n" /** * this callback is fired if the number of source classes changed */ "\n" "\n" /** * This callback is called when the ConnectionState of a connection changed. */ "\n" "\n" "\n" "\n" /** * this callback indicates that a sinkSoundProperty has changed. */ "\n" "\n" "\n" "\n" /** * this callback indicates that a sourceSoundProperty has changed. */ "\n" "\n" "\n" "\n" /** * this callback is called when the availability of a sink has changed */ "\n" "\n" "\n" "\n" /** * this callback is called when the availability of source has changed. */ "\n" "\n" "\n" "\n" /** * this callback indicates a volume change on the indicated sink */ "\n" "\n" "\n" "\n" /** * this callback indicates a mute state change on a sink. */ "\n" "\n" "\n" "\n" /** * is fired if a systemProperty changed */ "\n" "\n" "\n" /** * This callback is fired if the timinginformation for a mainConnectionID changed */ "\n" "\n" "\n" "\n" /** * This callback is called when a sink is updated. */ "\n" "\n" "\n" "\n" "\n" /** * This callback is called when a source is updated. */ "\n" "\n" "\n" "\n" "\n" /** * This callback is called when a notificated value of a sink changes. */ "\n" "\n" "\n" "\n" /** * This callback is called when a notifcated value of a source changes. */ "\n" "\n" "\n" "\n" /** * This callback is triggered when a mainNotificationConfiguration is changed. */ "\n" "\n" "\n" "\n" /** * This callback is triggered when a mainNotificationConfiguration is changed. */ "\n" "\n" "\n" "\n" /** * connects a source to sink (at)return E_OK on success, E_NOT_POSSIBLE on * failure, E_ALREADY_EXISTS if the connection does already exists */ "\n" "\n" "\n" "\n" "\n" "\n" /** * disconnects a mainConnection (at)return E_OK on successes, E_NON_EXISTENT if * the connection does not exist, E_NOT_POSSIBLE on error. */ "\n" "\n" "\n" "\n" /** * sets the volume for a sink (at)return E_OK on success, E_UNKOWN on error, * E_OUT_OF_RANGE in case the value is out of range */ "\n" "\n" "\n" "\n" "\n" /** * This function is used to increment or decrement the current volume for a * sink. (at)return E_OK on success, E_UNKNOWN on error and E_OUT_OF_RANGE if * the value is not in the given volume range. */ "\n" "\n" "\n" "\n" "\n" /** * sets the mute state of a sink (at)return E_OK on success, E_UNKNOWN on error. * If the mute state is already the desired one, the Daemon will return E_OK. */ "\n" "\n" "\n" "\n" "\n" /** * This method is used to set sound properties, e.g. Equalizer Values. Since the * capabilities of the system can differ, the exact key value pairs can be * extended in each product (at)return E_OK on success, E_OUT_OF_RANGE if value * exceeds range, E_UNKNOWN in case of an error */ "\n" "\n" "\n" "\n" "\n" /** * This method is used to set sound properties, e.g. Equalizer Values. Since the * capabilities of the system can differ, the exact key value pairs can be * extended in each product (at)return E_OK on success, E_OUT_OF_RANGE if value * exceeds range, E_UNKNOWN in case of an error */ "\n" "\n" "\n" "\n" "\n" /** * is used to set a specific system property. (at)return E_OK on success, * E_OUT_OF_RANGE if value exceeds range, E_UNKNOWN in case of an error */ "\n" "\n" "\n" "\n" /** * returns the actual list of MainConnections (at)return E_OK on success, * E_DATABASE_ERROR on error */ "\n" "\n" "\n" "\n" /** * returns the actual list of Sinks (at)return E_OK on success, E_DATABASE_ERROR * on error */ "\n" "\n" "\n" "\n" /** * returns the actual list of Sources (at)return E_OK on success, * E_DATABASE_ERROR on error */ "\n" "\n" "\n" "\n" /** * This is used to retrieve all source sound properties related to a source. * Returns a vector of the sound properties and values as pair (at)return E_OK * on success, E_DATABASE_ERROR on error */ "\n" "\n" "\n" "\n" "\n" /** * This is used to retrieve all source sound properties related to a * source. (at)return E_OK on success, E_DATABASE_ERROR on error */ "\n" "\n" "\n" "\n" "\n" /** * This is used to retrieve SourceClass Information of all source classes * (at)return E_OK on success, E_DATABASE_ERROR on error */ "\n" "\n" "\n" "\n" /** * This is used to retrieve SinkClass Information of all sink classes (at)return * E_OK on success, E_DATABASE_ERROR on error */ "\n" "\n" "\n" "\n" /** * Retrieves a complete list of all systemProperties. (at)return E_OK on success, * E_DATABASE_ERROR on error */ "\n" "\n" "\n" "\n" /** * returns the delay in ms that the audiopath for the given mainConnection * has (at)return E_OK on success, E_NOT_POSSIBLE if timing information is not * yet retrieved, E_DATABASE_ERROR on read error on the database */ "\n" "\n" "\n" "\n" "\n" /** * Retrieves the list of MainNotifications for a sink. Does not return the * possible ones. */ "\n" "\n" "\n" "\n" "\n" /** * Retrieves the list of MainNotifications for a source. Does not return the * possible ones. */ "\n" "\n" "\n" "\n" "\n" /** * sets a MainNotificationConfiuration. This can be used to turn on an off * notifications an to change the mode of the configuration. (at)return E_OK on * success, E_NON_EXISTENT if sinkID does not exists, E_DATABASE_ERROR on error */ "\n" "\n" "\n" "\n" "\n" /** * sets a MainNotificationConfiuration. This can be used to turn on an off * notifications an to change the mode of the configuration. (at)return E_OK on * success, E_NON_EXISTENT if sourceID does not exists, E_DATABASE_ERROR on error */ "\n" "\n" "\n" "\n" "\n" ; return introspectionData.c_str(); } static CommonAPI::DBus::DBusGetAttributeStubDispatcher< CommandControlStub, CommonAPI::Version > getCommandControlInterfaceVersionStubDispatcher(&CommandControlStub::getInterfaceVersion, "uu"); /** * connects a source to sink (at)return E_OK on success, E_NOT_POSSIBLE on * failure, E_ALREADY_EXISTS if the connection does already exists */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > connectStubDispatcher(&CommandControlStub::connect, "qi"); /** * disconnects a mainConnection (at)return E_OK on successes, E_NON_EXISTENT if * the connection does not exist, E_NOT_POSSIBLE on error. */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > disconnectStubDispatcher(&CommandControlStub::disconnect, "i"); /** * sets the volume for a sink (at)return E_OK on success, E_UNKOWN on error, * E_OUT_OF_RANGE in case the value is out of range */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > setVolumeStubDispatcher(&CommandControlStub::setVolume, "i"); /** * This function is used to increment or decrement the current volume for a * sink. (at)return E_OK on success, E_UNKNOWN on error and E_OUT_OF_RANGE if * the value is not in the given volume range. */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > volumeStepStubDispatcher(&CommandControlStub::volumeStep, "i"); /** * sets the mute state of a sink (at)return E_OK on success, E_UNKNOWN on error. * If the mute state is already the desired one, the Daemon will return E_OK. */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > setSinkMuteStateStubDispatcher(&CommandControlStub::setSinkMuteState, "i"); /** * This method is used to set sound properties, e.g. Equalizer Values. Since the * capabilities of the system can differ, the exact key value pairs can be * extended in each product (at)return E_OK on success, E_OUT_OF_RANGE if value * exceeds range, E_UNKNOWN in case of an error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > setMainSinkSoundPropertyStubDispatcher(&CommandControlStub::setMainSinkSoundProperty, "i"); /** * This method is used to set sound properties, e.g. Equalizer Values. Since the * capabilities of the system can differ, the exact key value pairs can be * extended in each product (at)return E_OK on success, E_OUT_OF_RANGE if value * exceeds range, E_UNKNOWN in case of an error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > setMainSourceSoundPropertyStubDispatcher(&CommandControlStub::setMainSourceSoundProperty, "i"); /** * is used to set a specific system property. (at)return E_OK on success, * E_OUT_OF_RANGE if value exceeds range, E_UNKNOWN in case of an error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > setSystemPropertyStubDispatcher(&CommandControlStub::setSystemProperty, "i"); /** * returns the actual list of MainConnections (at)return E_OK on success, * E_DATABASE_ERROR on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple<>, std::tuple > getListMainConnectionsStubDispatcher(&CommandControlStub::getListMainConnections, "a(qqqni)i"); /** * returns the actual list of Sinks (at)return E_OK on success, E_DATABASE_ERROR * on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple<>, std::tuple > getListMainSinksStubDispatcher(&CommandControlStub::getListMainSinks, "a(qs(iq)niq)i"); /** * returns the actual list of Sources (at)return E_OK on success, * E_DATABASE_ERROR on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple<>, std::tuple > getListMainSourcesStubDispatcher(&CommandControlStub::getListMainSources, "a(qs(iq)q)i"); /** * This is used to retrieve all source sound properties related to a source. * Returns a vector of the sound properties and values as pair (at)return E_OK * on success, E_DATABASE_ERROR on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > getListMainSinkSoundPropertiesStubDispatcher(&CommandControlStub::getListMainSinkSoundProperties, "a(qn)i"); /** * This is used to retrieve all source sound properties related to a * source. (at)return E_OK on success, E_DATABASE_ERROR on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > getListMainSourceSoundPropertiesStubDispatcher(&CommandControlStub::getListMainSourceSoundProperties, "a(qn)i"); /** * This is used to retrieve SourceClass Information of all source classes * (at)return E_OK on success, E_DATABASE_ERROR on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple<>, std::tuple > getListSourceClassesStubDispatcher(&CommandControlStub::getListSourceClasses, "a(qsa(qn))i"); /** * This is used to retrieve SinkClass Information of all sink classes (at)return * E_OK on success, E_DATABASE_ERROR on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple<>, std::tuple > getListSinkClassesStubDispatcher(&CommandControlStub::getListSinkClasses, "a(qsa(qn))i"); /** * Retrieves a complete list of all systemProperties. (at)return E_OK on success, * E_DATABASE_ERROR on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple<>, std::tuple > getListSystemPropertiesStubDispatcher(&CommandControlStub::getListSystemProperties, "a(qn)i"); /** * returns the delay in ms that the audiopath for the given mainConnection * has (at)return E_OK on success, E_NOT_POSSIBLE if timing information is not * yet retrieved, E_DATABASE_ERROR on read error on the database */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > getTimingInformationStubDispatcher(&CommandControlStub::getTimingInformation, "ni"); /** * Retrieves the list of MainNotifications for a sink. Does not return the * possible ones. */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > getListMainSinkNotificationConfigurationsStubDispatcher(&CommandControlStub::getListMainSinkNotificationConfigurations, "a(qin)i"); /** * Retrieves the list of MainNotifications for a source. Does not return the * possible ones. */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > getListMainSourceNotificationConfigurationsStubDispatcher(&CommandControlStub::getListMainSourceNotificationConfigurations, "a(qin)i"); /** * sets a MainNotificationConfiuration. This can be used to turn on an off * notifications an to change the mode of the configuration. (at)return E_OK on * success, E_NON_EXISTENT if sinkID does not exists, E_DATABASE_ERROR on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > setMainSinkNotificationConfigurationStubDispatcher(&CommandControlStub::setMainSinkNotificationConfiguration, "i"); /** * sets a MainNotificationConfiuration. This can be used to turn on an off * notifications an to change the mode of the configuration. (at)return E_OK on * success, E_NON_EXISTENT if sourceID does not exists, E_DATABASE_ERROR on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > setMainSourceNotificationConfigurationStubDispatcher(&CommandControlStub::setMainSourceNotificationConfiguration, "i"); /** * Callback that is called when the number of connections change */ void CommandControlDBusStubAdapterInternal::fireNewMainConnectionEvent(const am_MainConnectionType_s& mainConnection) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "newMainConnection", "(qqqni)", mainConnection ); } /** * Callback that is called when the number of connections change */ void CommandControlDBusStubAdapterInternal::fireRemovedMainConnectionEvent(const am_mainConnectionID_t& mainConnection) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "removedMainConnection", "q", mainConnection ); } /** * Callback that is called when the number of sinks change */ void CommandControlDBusStubAdapterInternal::fireNewSinkEvent(const am_SinkType_s& sink) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "newSink", "(qs(iq)niq)", sink ); } /** * Callback that is called when the number of sinks change */ void CommandControlDBusStubAdapterInternal::fireRemovedSinkEvent(const am_sinkID_t& sinkID) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "removedSink", "q", sinkID ); } /** * Callback that is called when the number of sources change */ void CommandControlDBusStubAdapterInternal::fireNewSourceEvent(const am_SourceType_s& source) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "newSource", "(qs(iq)q)", source ); } /** * Callback that is called when the number of sources change */ void CommandControlDBusStubAdapterInternal::fireRemovedSourceEvent(const am_sourceID_t& source) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "removedSource", "q", source ); } /** * this callback is fired if the number of sink classes changed */ void CommandControlDBusStubAdapterInternal::fireNumberOfSinkClassesChangedEvent() { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "numberOfSinkClassesChanged", "" ); } /** * this callback is fired if the number of source classes changed */ void CommandControlDBusStubAdapterInternal::fireNumberOfSourceClassesChangedEvent() { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "numberOfSourceClassesChanged", "" ); } /** * This callback is called when the ConnectionState of a connection changed. */ void CommandControlDBusStubAdapterInternal::fireMainConnectionStateChangedEvent(const am_mainConnectionID_t& connectionID, const am_ConnectionState_e& connectionState) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "mainConnectionStateChanged", "qi", connectionID, connectionState ); } /** * this callback indicates that a sinkSoundProperty has changed. */ void CommandControlDBusStubAdapterInternal::fireMainSinkSoundPropertyChangedEvent(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "mainSinkSoundPropertyChanged", "q(qn)", sinkID, soundProperty ); } /** * this callback indicates that a sourceSoundProperty has changed. */ void CommandControlDBusStubAdapterInternal::fireMainSourceSoundPropertyChangedEvent(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "mainSourceSoundPropertyChanged", "q(qn)", sourceID, soundProperty ); } /** * this callback is called when the availability of a sink has changed */ void CommandControlDBusStubAdapterInternal::fireSinkAvailabilityChangedEvent(const am_sinkID_t& sinkID, const am_Availability_s& availability) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "sinkAvailabilityChanged", "q(iq)", sinkID, availability ); } /** * this callback is called when the availability of source has changed. */ void CommandControlDBusStubAdapterInternal::fireSourceAvailabilityChangedEvent(const am_sourceID_t& sourceID, const am_Availability_s& availability) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "sourceAvailabilityChanged", "q(iq)", sourceID, availability ); } /** * this callback indicates a volume change on the indicated sink */ void CommandControlDBusStubAdapterInternal::fireVolumeChangedEvent(const am_sinkID_t& sinkID, const am_mainVolume_t& volume) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "volumeChanged", "qn", sinkID, volume ); } /** * this callback indicates a mute state change on a sink. */ void CommandControlDBusStubAdapterInternal::fireSinkMuteStateChangedEvent(const am_sinkID_t& sinkID, const am_MuteState_e& muteState) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "sinkMuteStateChanged", "qi", sinkID, muteState ); } /** * is fired if a systemProperty changed */ void CommandControlDBusStubAdapterInternal::fireSystemPropertyChangedEvent(const am_SystemProperty_s& systemProperty) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "systemPropertyChanged", "(qn)", systemProperty ); } /** * This callback is fired if the timinginformation for a mainConnectionID changed */ void CommandControlDBusStubAdapterInternal::fireTimingInformationChangedEvent(const am_mainConnectionID_t& mainConnectionID, const am_timeSync_t& time) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "timingInformationChanged", "qn", mainConnectionID, time ); } /** * This callback is called when a sink is updated. */ void CommandControlDBusStubAdapterInternal::fireSinkUpdatedEvent(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_MainSoundProperty_L& listMainSoundProperties) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "sinkUpdated", "qqa(qn)", sinkID, sinkClassID, listMainSoundProperties ); } /** * This callback is called when a source is updated. */ void CommandControlDBusStubAdapterInternal::fireSourceUpdatedEvent(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_MainSoundProperty_L& listMainSoundProperties) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "sourceUpdated", "qqa(qn)", sourceID, sourceClassID, listMainSoundProperties ); } /** * This callback is called when a notificated value of a sink changes. */ void CommandControlDBusStubAdapterInternal::fireSinkNotificationEvent(const am_sinkID_t& sinkID, const am_NotificationPayload_s& notification) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "sinkNotification", "q(qn)", sinkID, notification ); } /** * This callback is called when a notifcated value of a source changes. */ void CommandControlDBusStubAdapterInternal::fireSourceNotificationEvent(const am_sourceID_t& sourceID, const am_NotificationPayload_s& notification) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "sourceNotification", "q(qn)", sourceID, notification ); } /** * This callback is triggered when a mainNotificationConfiguration is changed. */ void CommandControlDBusStubAdapterInternal::fireMainSinkNotificationConfigurationChangedEvent(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "mainSinkNotificationConfigurationChanged", "q(qin)", sinkID, mainNotificationConfiguration ); } /** * This callback is triggered when a mainNotificationConfiguration is changed. */ void CommandControlDBusStubAdapterInternal::fireMainSourceNotificationConfigurationChangedEvent(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "mainSourceNotificationConfigurationChanged", "q(qin)", sourceID, mainNotificationConfiguration ); } const CommandControlDBusStubAdapterHelper::StubDispatcherTable& CommandControlDBusStubAdapterInternal::getStubDispatcherTable() { return stubDispatcherTable_; } CommandControlDBusStubAdapterInternal::CommandControlDBusStubAdapterInternal( const std::shared_ptr& factory, const std::string& commonApiAddress, const std::string& dbusInterfaceName, const std::string& dbusBusName, const std::string& dbusObjectPath, const std::shared_ptr& dbusConnection, const std::shared_ptr& stub): CommonAPI::DBus::DBusStubAdapter( factory, commonApiAddress, dbusInterfaceName, dbusBusName, dbusObjectPath, dbusConnection, false), CommandControlDBusStubAdapterHelper( factory, commonApiAddress, dbusInterfaceName, dbusBusName, dbusObjectPath, dbusConnection, std::dynamic_pointer_cast(stub), false), stubDispatcherTable_({ /** * connects a source to sink (at)return E_OK on success, E_NOT_POSSIBLE on * failure, E_ALREADY_EXISTS if the connection does already exists */ { { "connect", "qq" }, &org::genivi::am::connectStubDispatcher }, /** * disconnects a mainConnection (at)return E_OK on successes, E_NON_EXISTENT if * the connection does not exist, E_NOT_POSSIBLE on error. */ { { "disconnect", "q" }, &org::genivi::am::disconnectStubDispatcher }, /** * sets the volume for a sink (at)return E_OK on success, E_UNKOWN on error, * E_OUT_OF_RANGE in case the value is out of range */ { { "setVolume", "qn" }, &org::genivi::am::setVolumeStubDispatcher }, /** * This function is used to increment or decrement the current volume for a * sink. (at)return E_OK on success, E_UNKNOWN on error and E_OUT_OF_RANGE if * the value is not in the given volume range. */ { { "volumeStep", "qn" }, &org::genivi::am::volumeStepStubDispatcher }, /** * sets the mute state of a sink (at)return E_OK on success, E_UNKNOWN on error. * If the mute state is already the desired one, the Daemon will return E_OK. */ { { "setSinkMuteState", "qi" }, &org::genivi::am::setSinkMuteStateStubDispatcher }, /** * This method is used to set sound properties, e.g. Equalizer Values. Since the * capabilities of the system can differ, the exact key value pairs can be * extended in each product (at)return E_OK on success, E_OUT_OF_RANGE if value * exceeds range, E_UNKNOWN in case of an error */ { { "setMainSinkSoundProperty", "q(qn)" }, &org::genivi::am::setMainSinkSoundPropertyStubDispatcher }, /** * This method is used to set sound properties, e.g. Equalizer Values. Since the * capabilities of the system can differ, the exact key value pairs can be * extended in each product (at)return E_OK on success, E_OUT_OF_RANGE if value * exceeds range, E_UNKNOWN in case of an error */ { { "setMainSourceSoundProperty", "q(qn)" }, &org::genivi::am::setMainSourceSoundPropertyStubDispatcher }, /** * is used to set a specific system property. (at)return E_OK on success, * E_OUT_OF_RANGE if value exceeds range, E_UNKNOWN in case of an error */ { { "setSystemProperty", "(qn)" }, &org::genivi::am::setSystemPropertyStubDispatcher }, /** * returns the actual list of MainConnections (at)return E_OK on success, * E_DATABASE_ERROR on error */ { { "getListMainConnections", "" }, &org::genivi::am::getListMainConnectionsStubDispatcher }, /** * returns the actual list of Sinks (at)return E_OK on success, E_DATABASE_ERROR * on error */ { { "getListMainSinks", "" }, &org::genivi::am::getListMainSinksStubDispatcher }, /** * returns the actual list of Sources (at)return E_OK on success, * E_DATABASE_ERROR on error */ { { "getListMainSources", "" }, &org::genivi::am::getListMainSourcesStubDispatcher }, /** * This is used to retrieve all source sound properties related to a source. * Returns a vector of the sound properties and values as pair (at)return E_OK * on success, E_DATABASE_ERROR on error */ { { "getListMainSinkSoundProperties", "q" }, &org::genivi::am::getListMainSinkSoundPropertiesStubDispatcher }, /** * This is used to retrieve all source sound properties related to a * source. (at)return E_OK on success, E_DATABASE_ERROR on error */ { { "getListMainSourceSoundProperties", "q" }, &org::genivi::am::getListMainSourceSoundPropertiesStubDispatcher }, /** * This is used to retrieve SourceClass Information of all source classes * (at)return E_OK on success, E_DATABASE_ERROR on error */ { { "getListSourceClasses", "" }, &org::genivi::am::getListSourceClassesStubDispatcher }, /** * This is used to retrieve SinkClass Information of all sink classes (at)return * E_OK on success, E_DATABASE_ERROR on error */ { { "getListSinkClasses", "" }, &org::genivi::am::getListSinkClassesStubDispatcher }, /** * Retrieves a complete list of all systemProperties. (at)return E_OK on success, * E_DATABASE_ERROR on error */ { { "getListSystemProperties", "" }, &org::genivi::am::getListSystemPropertiesStubDispatcher }, /** * returns the delay in ms that the audiopath for the given mainConnection * has (at)return E_OK on success, E_NOT_POSSIBLE if timing information is not * yet retrieved, E_DATABASE_ERROR on read error on the database */ { { "getTimingInformation", "q" }, &org::genivi::am::getTimingInformationStubDispatcher }, /** * Retrieves the list of MainNotifications for a sink. Does not return the * possible ones. */ { { "getListMainSinkNotificationConfigurations", "q" }, &org::genivi::am::getListMainSinkNotificationConfigurationsStubDispatcher }, /** * Retrieves the list of MainNotifications for a source. Does not return the * possible ones. */ { { "getListMainSourceNotificationConfigurations", "q" }, &org::genivi::am::getListMainSourceNotificationConfigurationsStubDispatcher }, /** * sets a MainNotificationConfiuration. This can be used to turn on an off * notifications an to change the mode of the configuration. (at)return E_OK on * success, E_NON_EXISTENT if sinkID does not exists, E_DATABASE_ERROR on error */ { { "setMainSinkNotificationConfiguration", "q(qin)" }, &org::genivi::am::setMainSinkNotificationConfigurationStubDispatcher }, /** * sets a MainNotificationConfiuration. This can be used to turn on an off * notifications an to change the mode of the configuration. (at)return E_OK on * success, E_NON_EXISTENT if sourceID does not exists, E_DATABASE_ERROR on error */ { { "setMainSourceNotificationConfiguration", "q(qin)" }, &org::genivi::am::setMainSourceNotificationConfigurationStubDispatcher } }) { stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &org::genivi::am::getCommandControlInterfaceVersionStubDispatcher }); } } // namespace am } // namespace genivi } // namespace org