/* * This file was generated by the CommonAPI Generators. * Used org.genivi.commonapi.core 2.1.6.v20140519. * 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/. */ /** * This class implements everything from Audiomanager -> RoutingAdapter * @author Christian Mueller */ #ifndef ORG_GENIVI_AM_Routing_Control_DBUS_STUB_ADAPTER_H_ #define ORG_GENIVI_AM_Routing_Control_DBUS_STUB_ADAPTER_H_ #include #if !defined (COMMONAPI_INTERNAL_COMPILATION) #define COMMONAPI_INTERNAL_COMPILATION #endif #include #include #include #include #undef COMMONAPI_INTERNAL_COMPILATION namespace org { namespace genivi { namespace am { typedef CommonAPI::DBus::DBusStubAdapterHelper RoutingControlDBusStubAdapterHelper; class RoutingControlDBusStubAdapterInternal: public virtual RoutingControlStubAdapter, public RoutingControlDBusStubAdapterHelper { public: RoutingControlDBusStubAdapterInternal( 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); ~RoutingControlDBusStubAdapterInternal(); virtual const bool hasFreedesktopProperties(); const RoutingControlDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable(); const CommonAPI::DBus::StubAttributeTable& getStubAttributeTable(); void deactivateManagedInstances(); static CommonAPI::DBus::DBusGetAttributeStubDispatcher< RoutingControlStub, CommonAPI::Version > getRoutingControlInterfaceVersionStubDispatcher; /** * aborts an asynchronous action. (at)return E_OK on success, E_UNKNOWN on error, * E_NON_EXISTENT if handle was not found */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlStub, std::tuple, std::tuple<> > asyncAbortStubDispatcher; /** * connects a source to a sink (at)return E_OK on success, E_UNKNOWN on error, * E_WRONG_FORMAT in case am_ConnectionFormat_e does not match */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlStub, std::tuple, std::tuple<> > asyncConnectStubDispatcher; /** * disconnect a connection with given connectionID (at)return E_OK on success, * E_UNKNOWN on error, E_NON_EXISTENT if connection was not found */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlStub, std::tuple, std::tuple<> > asyncDisconnectStubDispatcher; /** * this method is used to set the volume of a sink. This function is used to drive * ramps, to mute or unmute or directly set the value. The difference is made * through the ramptype. (at)return E_OK on success, E_UNKNOWN on error, * E_OUT_OF_RANGE if new volume is out of range */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlStub, std::tuple, std::tuple<> > asyncSetSinkVolumeStubDispatcher; /** * sets the volume of a source. This method is used to set the volume of a sink. * This function is used to drive ramps, to mute or unmute or directly set the * value. The difference is made through the ramptype. (at)return E_OK on * success, E_UNKNOWN on error, E_OUT_OF_RANGE if volume is out of * range. triggers the acknowledge ackSourceVolumeChange */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlStub, std::tuple, std::tuple<> > asyncSetSourceVolumeStubDispatcher; /** * This function is used to set the source state of a particular * source. (at)return E_OK on success, E_UNKNOWN on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlStub, std::tuple, std::tuple<> > asyncSetSourceStateStubDispatcher; /** * this function sets the sinksoundproperty. (at)return E_OK on success, E_UNKNOWN * on error, E_OUT_OF_RANGE in case the propery value is out of range */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlStub, std::tuple, std::tuple<> > asyncSetSinkSoundPropertiesStubDispatcher; /** * this function sets the sinksoundproperty. (at)return E_OK on success, E_UNKNOWN * on error, E_OUT_OF_RANGE in case the propery value is out of range */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlStub, std::tuple, std::tuple<> > asyncSetSinkSoundPropertyStubDispatcher; /** * this function sets the sourcesoundproperty. (at)return E_OK on success, * E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlStub, std::tuple, std::tuple<> > asyncSetSourceSoundPropertiesStubDispatcher; /** * this function sets the sourcesoundproperty. (at)return E_OK on success, * E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlStub, std::tuple, std::tuple<> > asyncSetSourceSoundPropertyStubDispatcher; /** * this function triggers crossfading. (at)return E_OK on success, E_UNKNOWN on * error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlStub, std::tuple, std::tuple<> > asyncCrossFadeStubDispatcher; /** * this function is used for early and late audio functions to set the domain * state (at)return E_OK on success, E_UNKNOWN on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlStub, std::tuple, std::tuple > setDomainStateStubDispatcher; static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlStub, std::tuple, std::tuple<> > asyncSetVolumesStubDispatcher; static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlStub, std::tuple, std::tuple<> > asyncSetSinkNotificationConfigurationStubDispatcher; static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlStub, std::tuple, std::tuple<> > asyncSetSourceNotificationConfigurationStubDispatcher; protected: virtual const char* getMethodsDBusIntrospectionXmlData() const; private: RoutingControlDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_; CommonAPI::DBus::StubAttributeTable stubAttributeTable_; }; class RoutingControlDBusStubAdapter: public RoutingControlDBusStubAdapterInternal, public std::enable_shared_from_this { public: RoutingControlDBusStubAdapter( 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), RoutingControlDBusStubAdapterInternal( factory, commonApiAddress, dbusInterfaceName, dbusBusName, dbusObjectPath, dbusConnection, stub) { } }; } // namespace am } // namespace genivi } // namespace org #endif // ORG_GENIVI_AM_Routing_Control_DBUS_STUB_ADAPTER_H_