diff options
Diffstat (limited to 'PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.h')
-rw-r--r-- | PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.h | 557 |
1 files changed, 557 insertions, 0 deletions
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.h new file mode 100644 index 0000000..874ee6c --- /dev/null +++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.h @@ -0,0 +1,557 @@ +/* +* This file was generated by the CommonAPI Generators. +* Used org.genivi.commonapi.core 2.1.6.v20150127. +* Used org.franca.core 0.8.10.201309262002. +* +* +*/ +/** + * Routing Receive sendInterface description. + * @author Christian Mueller + */ +#ifndef ORG_GENIVI_AM_Routing_Control_Observer_DBUS_STUB_ADAPTER_H_ +#define ORG_GENIVI_AM_Routing_Control_Observer_DBUS_STUB_ADAPTER_H_ + +#include <org/genivi/am/RoutingControlObserverStub.h> + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#define COMMONAPI_INTERNAL_COMPILATION +#endif + +#include <CommonAPI/DBus/DBusStubAdapterHelper.h> +#include <CommonAPI/DBus/DBusStubAdapter.h> +#include <CommonAPI/DBus/DBusFactory.h> +#include <CommonAPI/DBus/DBusServicePublisher.h> + +#undef COMMONAPI_INTERNAL_COMPILATION + +namespace org { +namespace genivi { +namespace am { + +typedef CommonAPI::DBus::DBusStubAdapterHelper<RoutingControlObserverStub> RoutingControlObserverDBusStubAdapterHelper; + +class RoutingControlObserverDBusStubAdapterInternal: public virtual RoutingControlObserverStubAdapter, public RoutingControlObserverDBusStubAdapterHelper { + public: + RoutingControlObserverDBusStubAdapterInternal( + const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory, + const std::string& commonApiAddress, + const std::string& dbusInterfaceName, + const std::string& dbusBusName, + const std::string& dbusObjectPath, + const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection, + const std::shared_ptr<CommonAPI::StubBase>& stub); + + ~RoutingControlObserverDBusStubAdapterInternal(); + + virtual const bool hasFreedesktopProperties(); + + /** + * This attribute signals to the clients the current routing state. + A client + * should notify himself to this attribute in order to know the current state and + * act accordingly. + */ + void fireRoutingReadyAttributeChanged(const am_RoutingReady_e& value); + + + + const RoutingControlObserverDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable(); + const CommonAPI::DBus::StubAttributeTable& getStubAttributeTable(); + + void deactivateManagedInstances(); + + +static CommonAPI::DBus::DBusGetAttributeStubDispatcher< + RoutingControlObserverStub, + CommonAPI::Version + > getRoutingControlObserverInterfaceVersionStubDispatcher; + +/** + * This attribute signals to the clients the current routing state. +A client + * should notify himself to this attribute in order to know the current state and + * act accordingly. + */ +static CommonAPI::DBus::DBusGetAttributeStubDispatcher< + RoutingControlObserverStub, + am_RoutingReady_e + > getRoutingReadyAttributeStubDispatcher; + + +/** + * acknowledges a asyncConnect + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Handle_s, am_connectionID_t, am_Error_e>, + std::tuple<> + > ackConnectStubDispatcher; +/** + * acknowledges a asyncDisconnect + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Handle_s, am_connectionID_t, am_Error_e>, + std::tuple<> + > ackDisconnectStubDispatcher; +/** + * acknowledges a asyncsetSinkVolume + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Handle_s, am_volume_t, am_Error_e>, + std::tuple<> + > ackSetSinkVolumeChangeStubDispatcher; +/** + * acknowledges a asyncsetSourceVolume + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Handle_s, am_volume_t, am_Error_e>, + std::tuple<> + > ackSetSourceVolumeChangeStubDispatcher; +/** + * acknowlegde for asyncSetSourceState + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Handle_s, am_Error_e>, + std::tuple<> + > ackSetSourceStateStubDispatcher; +/** + * acknowledges asyncSetSinkSoundProperties + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Handle_s, am_Error_e>, + std::tuple<> + > ackSetSinkSoundPropertiesStubDispatcher; +/** + * acknowledges asyncSetSinkSoundProperty + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Handle_s, am_Error_e>, + std::tuple<> + > ackSetSinkSoundPropertyStubDispatcher; +/** + * acknowledges asyncSetSourceSoundProperties + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Handle_s, am_Error_e>, + std::tuple<> + > ackSetSourceSoundPropertiesStubDispatcher; +/** + * acknowledges asyncSetSourceSoundProperty + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Handle_s, am_Error_e>, + std::tuple<> + > ackSetSourceSoundPropertyStubDispatcher; +/** + * acknowledges asyncCrossFade + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Handle_s, am_HotSink_e, am_Error_e>, + std::tuple<> + > ackCrossFadingStubDispatcher; +/** + * acknowledges a volume tick. This can be used to display volumechanges during + * ramps + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Handle_s, am_sourceID_t, am_volume_t>, + std::tuple<> + > ackSourceVolumeTickStubDispatcher; +/** + * acknowledges a volume tick. This can be used to display volumechanges during + * ramps + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Handle_s, am_sinkID_t, am_volume_t>, + std::tuple<> + > ackSinkVolumeTickStubDispatcher; +/** + * This function returns the ID to the given domainName. If already a domain is + * registered with this name, it will return the corresponding ID, if not it will + * reserve an ID but not register the domain. The other parameters of the domain + * will be overwritten when the domain is registered. +(at)return E_OK on success, + * E_UNKNOWN on error + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<std::string>, + std::tuple<am_domainID_t, am_Error_e> + > peekDomainStubDispatcher; +/** + * registers a domain +(at)return E_OK on succes, E_ALREADY_EXISTENT if already + * registered E_UNKOWN on error + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Domain_s, std::string, std::string>, + std::tuple<am_domainID_t, am_Error_e> + > registerDomainStubDispatcher; +/** + * deregisters a domain. All sources, sinks, gateways and crossfaders from that + * domain will be removed as well. +(at)return E_OK on succes, E_NON_EXISTENT if + * not found E_UNKOWN on error + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_domainID_t>, + std::tuple<am_Error_e> + > deregisterDomainStubDispatcher; +/** + * registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already + * registered E_UNKOWN on error + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Gateway_s>, + std::tuple<am_gatewayID_t, am_Error_e> + > registerGatewayStubDispatcher; +/** + * registers a converter. (at)return E_OK on succes, E_ALREADY_EXISTENT if already + * registered E_UNKOWN on error + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Converter_s>, + std::tuple<am_converterID_t, am_Error_e> + > registerConverterStubDispatcher; +/** + * deregisters a gateway. Also removes all sinks and sources of the controlling + * domain. +(at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on + * error + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_gatewayID_t>, + std::tuple<am_Error_e> + > deregisterGatewayStubDispatcher; +/** + * deregisters a converter. Also removes all sinks and sources of the controlling + * domain. + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_converterID_t>, + std::tuple<am_Error_e> + > deregisterConverterStubDispatcher; +/** + * This function returns the ID to the given sinkName. If already a sink is + * registered with this name, it will return the corresponding ID, if not it will + * reserve an ID but not register the sink. The other parameters of the sink will + * be overwritten when the sink is registered. +(at)return E_OK on success, + * E_UNKNOWN on error + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<std::string>, + std::tuple<am_sinkID_t, am_Error_e> + > peekSinkStubDispatcher; +/** + * Registers a sink. If the sink is part of a gateway, the listconnectionFormats + * is copied to the gatewayInformation +(at)return E_OK on succes, + * E_ALREADY_EXISTENT if already registered E_UNKOWN on error + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Sink_s>, + std::tuple<am_sinkID_t, am_Error_e> + > registerSinkStubDispatcher; +/** + * deregisters a sink. +(at)return E_OK on succes, E_NON_EXISTENT if not found + * E_UNKOWN on error + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_sinkID_t>, + std::tuple<am_Error_e> + > deregisterSinkStubDispatcher; +/** + * This function returns the ID to the given sourceName. If already a source is + * registered with this name, it will return the corresponding ID, if not it will + * reserve an ID but not register the source. The other parameters of the source + * will be overwritten when the source is registered. +(at)return E_OK on success, + * E_UNKNOWN on error + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<std::string>, + std::tuple<am_sourceID_t, am_Error_e> + > peekSourceStubDispatcher; +/** + * registers a source. If the source is part of a gateway, the + * listconnectionFormats is copied to the gatewayInformation +(at)return E_OK on + * success, E_UNKNOWN on error, E_ALREADY_EXIST if either name or sourceID + * already exists + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Source_s>, + std::tuple<am_sourceID_t, am_Error_e> + > registerSourceStubDispatcher; +/** + * deregisters a source +(at)return E_OK on succes, E_NON_EXISTENT if not found + * E_UNKOWN on error + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_sourceID_t>, + std::tuple<am_Error_e> + > deregisterSourceStubDispatcher; +/** + * this function registers a crossfader. +(at)return E_OK on succes, + * E_ALREADY_EXISTENT if already registered E_UNKOWN on error + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Crossfader_s>, + std::tuple<am_crossfaderID_t, am_Error_e> + > registerCrossfaderStubDispatcher; +/** + * this function deregisters a crossfader. removes all sources and sinks assiated + * as well. +(at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on + * error + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_crossfaderID_t>, + std::tuple<am_Error_e> + > deregisterCrossfaderStubDispatcher; +/** + * this function peeks a sourceclassID. It is used by the RoutingPlugins to + * determine the SinkClassIDs of a sinkClass. +(at)return E_OK on succes, + * E_DATABASE_ERROR on error + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<std::string>, + std::tuple<am_sourceClass_t, am_Error_e> + > peekSourceClassIDStubDispatcher; +/** + * this function peeks a sourceclassID. It is used by the RoutingPlugins to + * determine the SinkClassIDs of a sinkClass. +(at)return E_OK on succes, + * E_DATABASE_ERROR on error + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<std::string>, + std::tuple<am_sinkClass_t, am_Error_e> + > peekSinkClassIDStubDispatcher; +/** + * is called when a low level interrupt changes it status. + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_sourceID_t, am_InterruptState_e>, + std::tuple<> + > hookInterruptStatusChangeStubDispatcher; +/** + * This hook is called when all elements from a domain are registered. +Is used by + * the Controller to know when all expected domains are finally registered + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_domainID_t>, + std::tuple<> + > hookDomainRegistrationCompleteStubDispatcher; +/** + * is called when a sink changes its availability + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_sinkID_t, am_Availability_s>, + std::tuple<> + > hookSinkAvailablityStatusChangeStubDispatcher; +/** + * is called when a source changes its availability + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_sourceID_t, am_Availability_s>, + std::tuple<> + > hookSourceAvailablityStatusChangeStubDispatcher; +/** + * is called when a domain changes its status. This used for early domains only + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_domainID_t, am_DomainState_e>, + std::tuple<> + > hookDomainStateChangeStubDispatcher; +/** + * is called when the timinginformation (delay) changed for a connection. + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_connectionID_t, am_timeSync_t>, + std::tuple<> + > hookTimingInformationChangedStubDispatcher; +/** + * this function is used to send out all data that has been changed in an early + * state. +(at)return E_OK on success, E_UNKNOWN on error + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_EarlyData_L>, + std::tuple<> + > sendChangedDataStubDispatcher; +/** + * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the + * gatewayID is not valid. + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_gatewayID_t, am_ConnectionFormat_L, am_ConnectionFormat_L, am_Convertion_L>, + std::tuple<am_Error_e> + > updateGatewayStubDispatcher; +/** + * updates data of an converter. (at)return E_OK on success, E_NON_EXISTENT if the + * converterID is not valid. + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_converterID_t, am_ConnectionFormat_L, am_ConnectionFormat_L, am_Convertion_L>, + std::tuple<am_Error_e> + > updateConverterStubDispatcher; +/** + * updates data of an sink. (at)return E_OK on success, E_NON_EXISTENT if the + * sinkID is not valid. + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_sinkID_t, am_sinkClass_t, am_SoundProperty_L, am_ConnectionFormat_L, am_MainSoundProperty_L>, + std::tuple<am_Error_e> + > updateSinkStubDispatcher; +/** + * updates data of an source. (at)return E_OK on success, E_NON_EXISTENT if the + * sourceID in the struct is not valid. +Please note that only the following data + * out of am_Source_s have effect when they are + * changed: +sourceClassID, +listSoundProperties, +listConnectionFormats, + * +listMainSoundProperties + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_sourceID_t, am_sourceClass_t, am_SoundProperty_L, am_ConnectionFormat_L, am_MainSoundProperty_L>, + std::tuple<am_Error_e> + > updateSourceStubDispatcher; +/** + * acknowledges a asyncSetSinkVolumes + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Handle_s, am_Volumes_L, am_Error_e>, + std::tuple<> + > ackSetVolumesStubDispatcher; +/** + * The acknowledge of the SinkNotificationConfiguration + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Handle_s, am_Error_e>, + std::tuple<> + > ackSinkNotificationConfigurationStubDispatcher; +/** + * The acknowledge of the SourceNotificationConfiguration + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_Handle_s, am_Error_e>, + std::tuple<> + > ackSourceNotificationConfigurationStubDispatcher; +/** + * is called whenever a notified value needs to be send + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_sinkID_t, am_NotificationPayload_s>, + std::tuple<> + > hookSinkNotificationDataChangeStubDispatcher; +/** + * is called whenever a notified value needs to be send + */ +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<am_sourceID_t, am_NotificationPayload_s>, + std::tuple<> + > hookSourceNotificationDataChangeStubDispatcher; +static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< + RoutingControlObserverStub, + std::tuple<std::string>, + std::tuple<> + > confirmRoutingRundownStubDispatcher; + + + + + protected: + virtual const char* getMethodsDBusIntrospectionXmlData() const; + + private: + RoutingControlObserverDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_; + CommonAPI::DBus::StubAttributeTable stubAttributeTable_; +}; + +class RoutingControlObserverDBusStubAdapter: public RoutingControlObserverDBusStubAdapterInternal, public std::enable_shared_from_this<RoutingControlObserverDBusStubAdapter> { +public: + RoutingControlObserverDBusStubAdapter( + const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory, + const std::string& commonApiAddress, + const std::string& dbusInterfaceName, + const std::string& dbusBusName, + const std::string& dbusObjectPath, + const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection, + const std::shared_ptr<CommonAPI::StubBase>& stub) : + CommonAPI::DBus::DBusStubAdapter( + factory, + commonApiAddress, + dbusInterfaceName, + dbusBusName, + dbusObjectPath, + dbusConnection, + false), + RoutingControlObserverDBusStubAdapterInternal( + factory, + commonApiAddress, + dbusInterfaceName, + dbusBusName, + dbusObjectPath, + dbusConnection, + stub) { } +}; + +} // namespace am +} // namespace genivi +} // namespace org + +#endif // ORG_GENIVI_AM_Routing_Control_Observer_DBUS_STUB_ADAPTER_H_ |