/* * This file was generated by the CommonAPI Generators. * * Copyright (C) 2013, BMW AG * * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013 */ #include "CommandControlDBusStubAdapter.h" #include namespace org { namespace genivi { namespace am { std::shared_ptr createCommandControlDBusStubAdapter( 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(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection, stubBase); } __attribute__((constructor)) void registerCommandControlDBusStubAdapter(void) { CommonAPI::DBus::DBusFactory::registerAdapterFactoryMethod(CommandControl::getInterfaceId(), &createCommandControlDBusStubAdapter); } CommandControlDBusStubAdapter::CommandControlDBusStubAdapter( 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): CommandControlDBusStubAdapterHelper(commonApiAddress, dbusInterfaceName, dbusBusName, dbusObjectPath, dbusConnection, std::dynamic_pointer_cast(stub)) { } const char* CommandControlDBusStubAdapter::getMethodsDBusIntrospectionXmlData() const { return "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" ; } static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > connectStubDispatcher(&CommandControlStub::connect, "qi"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > disconnectStubDispatcher(&CommandControlStub::disconnect, "i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > setVolumeStubDispatcher(&CommandControlStub::setVolume, "i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > volumeStepStubDispatcher(&CommandControlStub::volumeStep, "i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > setSinkMuteStateStubDispatcher(&CommandControlStub::setSinkMuteState, "i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > setMainSinkSoundPropertyStubDispatcher(&CommandControlStub::setMainSinkSoundProperty, "i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > setMainSourceSoundPropertyStubDispatcher(&CommandControlStub::setMainSourceSoundProperty, "i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > setSystemPropertyStubDispatcher(&CommandControlStub::setSystemProperty, "i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple<>, std::tuple > getListMainConnectionsStubDispatcher(&CommandControlStub::getListMainConnections, "ia(qqqni)"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple<>, std::tuple > getListMainSinksStubDispatcher(&CommandControlStub::getListMainSinks, "a(qs(iq)niq)i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple<>, std::tuple > getListMainSourcesStubDispatcher(&CommandControlStub::getListMainSources, "a(qs(iq)q)i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > getListMainSinkSoundPropertiesStubDispatcher(&CommandControlStub::getListMainSinkSoundProperties, "a(qn)i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > getListMainSourceSoundPropertiesStubDispatcher(&CommandControlStub::getListMainSourceSoundProperties, "a(qn)i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple<>, std::tuple > getListSourceClassesStubDispatcher(&CommandControlStub::getListSourceClasses, "a(qsa(qn))i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple<>, std::tuple > getListSinkClassesStubDispatcher(&CommandControlStub::getListSinkClasses, "a(qsa(qn))i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple<>, std::tuple > getListSystemPropertiesStubDispatcher(&CommandControlStub::getListSystemProperties, "a(qn)i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > getTimingInformationStubDispatcher(&CommandControlStub::getTimingInformation, "ni"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > getListMainSinkNotificationConfigurationsStubDispatcher(&CommandControlStub::getListMainSinkNotificationConfigurations, "a(qin)i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > getListMainSourceNotificationConfigurationsStubDispatcher(&CommandControlStub::getListMainSourceNotificationConfigurations, "a(qin)i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > setMainSinkNotificationConfigurationStubDispatcher(&CommandControlStub::setMainSinkNotificationConfiguration, "i"); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< CommandControlStub, std::tuple, std::tuple > setMainSourceNotificationConfigurationStubDispatcher(&CommandControlStub::setMainSourceNotificationConfiguration, "i"); void CommandControlDBusStubAdapter::fireNewMainConnectionEvent(const am_MainConnectionType_s& mainConnection) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "newMainConnection", "(qqqni)", mainConnection ); } void CommandControlDBusStubAdapter::fireRemovedMainConnectionEvent(const am_mainConnectionID_t& mainConnection) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "removedMainConnection", "q", mainConnection ); } void CommandControlDBusStubAdapter::fireNewSinkEvent(const am_SinkType_s& sink) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "newSink", "(qs(iq)niq)", sink ); } void CommandControlDBusStubAdapter::fireRemovedSinkEvent(const am_sinkID_t& sinkID) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "removedSink", "q", sinkID ); } void CommandControlDBusStubAdapter::fireNewSourceEvent(const am_SourceType_s& source) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "newSource", "(qs(iq)q)", source ); } void CommandControlDBusStubAdapter::fireRemovedSourceEvent(const am_sourceID_t& source) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "removedSource", "q", source ); } void CommandControlDBusStubAdapter::fireNumberOfSinkClassesChangedEvent() { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "numberOfSinkClassesChanged", "" ); } void CommandControlDBusStubAdapter::fireNumberOfSourceClassesChangedEvent() { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "numberOfSourceClassesChanged", "" ); } void CommandControlDBusStubAdapter::fireMainConnectionStateChangedEvent(const am_mainConnectionID_t& connectionID, const am_ConnectionState_e& connectionState) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "mainConnectionStateChanged", "qi", connectionID, connectionState ); } void CommandControlDBusStubAdapter::fireMainSinkSoundPropertyChangedEvent(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "mainSinkSoundPropertyChanged", "q(qn)", sinkID, soundProperty ); } void CommandControlDBusStubAdapter::fireMainSourceSoundPropertyChangedEvent(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "mainSourceSoundPropertyChanged", "q(qn)", sourceID, soundProperty ); } void CommandControlDBusStubAdapter::fireSinkAvailabilityChangedEvent(const am_sinkID_t& sinkID, const am_Availability_s& availability) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "sinkAvailabilityChanged", "q(iq)", sinkID, availability ); } void CommandControlDBusStubAdapter::fireSourceAvailabilityChangedEvent(const am_sourceID_t& sourceID, const am_Availability_s& availability) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "sourceAvailabilityChanged", "q(iq)", sourceID, availability ); } void CommandControlDBusStubAdapter::fireVolumeChangedEvent(const am_sinkID_t& sinkID, const am_mainVolume_t& volume) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "volumeChanged", "qn", sinkID, volume ); } void CommandControlDBusStubAdapter::fireSinkMuteStateChangedEvent(const am_sinkID_t& sinkID, const am_MuteState_e& muteState) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "sinkMuteStateChanged", "qi", sinkID, muteState ); } void CommandControlDBusStubAdapter::fireSystemPropertyChangedEvent(const am_SystemProperty_s& systemProperty) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "systemPropertyChanged", "(qn)", systemProperty ); } void CommandControlDBusStubAdapter::fireTimingInformationChangedEvent(const am_mainConnectionID_t& mainConnectionID, const am_timeSync_t& time) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "timingInformationChanged", "qn", mainConnectionID, time ); } void CommandControlDBusStubAdapter::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 ); } void CommandControlDBusStubAdapter::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 ); } void CommandControlDBusStubAdapter::fireSinkNotificationEvent(const am_sinkID_t& sinkID, const am_NotificationPayload_s& notification) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "sinkNotification", "q(qn)", sinkID, notification ); } void CommandControlDBusStubAdapter::fireSourceNotificationEvent(const am_sourceID_t& sourceID, const am_NotificationPayload_s& notification) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "sourceNotification", "q(qn)", sourceID, notification ); } void CommandControlDBusStubAdapter::fireMainSinkNotificationConfigurationChangedEvent(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "mainSinkNotificationConfigurationChanged", "q(qin)", sinkID, mainNotificationConfiguration ); } void CommandControlDBusStubAdapter::fireMainSourceNotificationConfigurationChangedEvent(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "mainSourceNotificationConfigurationChanged", "q(qin)", sourceID, mainNotificationConfiguration ); } } // namespace am } // namespace genivi } // namespace org template<> const org::genivi::am::CommandControlDBusStubAdapterHelper::StubDispatcherTable org::genivi::am::CommandControlDBusStubAdapterHelper::stubDispatcherTable_ = { { { "connect", "qq" }, &org::genivi::am::connectStubDispatcher }, { { "disconnect", "q" }, &org::genivi::am::disconnectStubDispatcher }, { { "setVolume", "qn" }, &org::genivi::am::setVolumeStubDispatcher }, { { "volumeStep", "qn" }, &org::genivi::am::volumeStepStubDispatcher }, { { "setSinkMuteState", "qi" }, &org::genivi::am::setSinkMuteStateStubDispatcher }, { { "setMainSinkSoundProperty", "q(qn)" }, &org::genivi::am::setMainSinkSoundPropertyStubDispatcher }, { { "setMainSourceSoundProperty", "q(qn)" }, &org::genivi::am::setMainSourceSoundPropertyStubDispatcher }, { { "setSystemProperty", "(qn)" }, &org::genivi::am::setSystemPropertyStubDispatcher }, { { "getListMainConnections", "" }, &org::genivi::am::getListMainConnectionsStubDispatcher }, { { "getListMainSinks", "" }, &org::genivi::am::getListMainSinksStubDispatcher }, { { "getListMainSources", "" }, &org::genivi::am::getListMainSourcesStubDispatcher }, { { "getListMainSinkSoundProperties", "q" }, &org::genivi::am::getListMainSinkSoundPropertiesStubDispatcher }, { { "getListMainSourceSoundProperties", "q" }, &org::genivi::am::getListMainSourceSoundPropertiesStubDispatcher }, { { "getListSourceClasses", "" }, &org::genivi::am::getListSourceClassesStubDispatcher }, { { "getListSinkClasses", "" }, &org::genivi::am::getListSinkClassesStubDispatcher }, { { "getListSystemProperties", "" }, &org::genivi::am::getListSystemPropertiesStubDispatcher }, { { "getTimingInformation", "q" }, &org::genivi::am::getTimingInformationStubDispatcher }, { { "getListMainSinkNotificationConfigurations", "q" }, &org::genivi::am::getListMainSinkNotificationConfigurationsStubDispatcher }, { { "getListMainSourceNotificationConfigurations", "q" }, &org::genivi::am::getListMainSourceNotificationConfigurationsStubDispatcher }, { { "setMainSinkNotificationConfiguration", "q(qin)" }, &org::genivi::am::setMainSinkNotificationConfigurationStubDispatcher }, { { "setMainSourceNotificationConfiguration", "q(qin)" }, &org::genivi::am::setMainSourceNotificationConfigurationStubDispatcher } };