diff options
author | Christian Linke <christian.linke@bmw.de> | 2014-11-03 08:46:24 +0100 |
---|---|---|
committer | Christian Linke <christian.linke@bmw.de> | 2014-11-03 18:38:00 +0100 |
commit | c8ba6c38648138ea10641acc2c89ebec543a3ce5 (patch) | |
tree | c90bcc172c359cd20e315f51981d1e1684a0438a /PluginRoutingInterfaceCAPI/src-gen/org | |
parent | 6737f225604b116185225c6647a2c59f1b03ae24 (diff) | |
download | audiomanager-c8ba6c38648138ea10641acc2c89ebec543a3ce5.tar.gz |
* make Audiomanager find and compile with CommonAPI 2.1.6 executable generator. Remove precompiled sources.
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Diffstat (limited to 'PluginRoutingInterfaceCAPI/src-gen/org')
22 files changed, 0 insertions, 12441 deletions
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.cpp deleted file mode 100644 index 161a7b7..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.cpp +++ /dev/null @@ -1,993 +0,0 @@ -/* -* 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/. -*/ -/** - * @author Christian Linke - */ -#include "am.h" - - -namespace org { -namespace genivi { -namespace am { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -am_Route_s::am_Route_s(const am_sourceID_t& sourceIDValue, const am_sinkID_t& sinkIDValue, const am_RoutingElement_L& routeValue): - sourceID(sourceIDValue), - sinkID(sinkIDValue), - route(routeValue) -{ -} - - -bool operator==(const am_Route_s& lhs, const am_Route_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.sourceID == rhs.sourceID && - lhs.sinkID == rhs.sinkID && - lhs.route == rhs.route - ; -} - -void am_Route_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> sourceID; - inputStream >> sinkID; - inputStream >> route; -} - -void am_Route_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << sourceID; - outputStream << sinkID; - outputStream << route; -} - -am_Availability_s::am_Availability_s(const am_Availability_e& availabilityValue, const am_CustomAvailabilityReason_t& availabilityReasonValue): - availability(availabilityValue), - availabilityReason(availabilityReasonValue) -{ -} - - -bool operator==(const am_Availability_s& lhs, const am_Availability_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.availability == rhs.availability && - lhs.availabilityReason == rhs.availabilityReason - ; -} - -void am_Availability_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> availability; - inputStream >> availabilityReason; -} - -void am_Availability_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << availability; - outputStream << availabilityReason; -} - -am_ClassProperty_s::am_ClassProperty_s(const am_CustomClassProperty_t& classPropertyValue, const int16_t& valueValue): - classProperty(classPropertyValue), - value(valueValue) -{ -} - - -bool operator==(const am_ClassProperty_s& lhs, const am_ClassProperty_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.classProperty == rhs.classProperty && - lhs.value == rhs.value - ; -} - -void am_ClassProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> classProperty; - inputStream >> value; -} - -void am_ClassProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << classProperty; - outputStream << value; -} - -am_Crossfader_s::am_Crossfader_s(const am_crossfaderID_t& crossfaderIDValue, const std::string& nameValue, const am_sinkID_t& sinkID_AValue, const am_sinkID_t& sinkID_BValue, const am_sourceID_t& sourceIDValue, const am_HotSink_e& hotSinkValue): - crossfaderID(crossfaderIDValue), - name(nameValue), - sinkID_A(sinkID_AValue), - sinkID_B(sinkID_BValue), - sourceID(sourceIDValue), - hotSink(hotSinkValue) -{ -} - - -bool operator==(const am_Crossfader_s& lhs, const am_Crossfader_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.crossfaderID == rhs.crossfaderID && - lhs.name == rhs.name && - lhs.sinkID_A == rhs.sinkID_A && - lhs.sinkID_B == rhs.sinkID_B && - lhs.sourceID == rhs.sourceID && - lhs.hotSink == rhs.hotSink - ; -} - -void am_Crossfader_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> crossfaderID; - inputStream >> name; - inputStream >> sinkID_A; - inputStream >> sinkID_B; - inputStream >> sourceID; - inputStream >> hotSink; -} - -void am_Crossfader_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << crossfaderID; - outputStream << name; - outputStream << sinkID_A; - outputStream << sinkID_B; - outputStream << sourceID; - outputStream << hotSink; -} - -am_Gateway_s::am_Gateway_s(const am_gatewayID_t& gatewayIDValue, const std::string& nameValue, const am_sinkID_t& sinkIDValue, const am_sourceID_t& sourceIDValue, const am_domainID_t& domainSinkIDValue, const am_domainID_t& domainSourceIDValue, const am_domainID_t& controlDomainIDValue, const am_ConnectionFormat_L& listSourceFormatsValue, const am_ConnectionFormat_L& listSinkFormatsValue, const am_Convertion_L& convertionMatrixValue): - gatewayID(gatewayIDValue), - name(nameValue), - sinkID(sinkIDValue), - sourceID(sourceIDValue), - domainSinkID(domainSinkIDValue), - domainSourceID(domainSourceIDValue), - controlDomainID(controlDomainIDValue), - listSourceFormats(listSourceFormatsValue), - listSinkFormats(listSinkFormatsValue), - convertionMatrix(convertionMatrixValue) -{ -} - - -bool operator==(const am_Gateway_s& lhs, const am_Gateway_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.gatewayID == rhs.gatewayID && - lhs.name == rhs.name && - lhs.sinkID == rhs.sinkID && - lhs.sourceID == rhs.sourceID && - lhs.domainSinkID == rhs.domainSinkID && - lhs.domainSourceID == rhs.domainSourceID && - lhs.controlDomainID == rhs.controlDomainID && - lhs.listSourceFormats == rhs.listSourceFormats && - lhs.listSinkFormats == rhs.listSinkFormats && - lhs.convertionMatrix == rhs.convertionMatrix - ; -} - -void am_Gateway_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> gatewayID; - inputStream >> name; - inputStream >> sinkID; - inputStream >> sourceID; - inputStream >> domainSinkID; - inputStream >> domainSourceID; - inputStream >> controlDomainID; - inputStream >> listSourceFormats; - inputStream >> listSinkFormats; - inputStream >> convertionMatrix; -} - -void am_Gateway_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << gatewayID; - outputStream << name; - outputStream << sinkID; - outputStream << sourceID; - outputStream << domainSinkID; - outputStream << domainSourceID; - outputStream << controlDomainID; - outputStream << listSourceFormats; - outputStream << listSinkFormats; - outputStream << convertionMatrix; -} - -am_RoutingElement_s::am_RoutingElement_s(const am_sourceID_t& sourceIDValue, const am_sinkID_t& sinkIDValue, const am_domainID_t& domainIDValue, const am_CustomConnectionFormat_t& connectionFormatValue): - sourceID(sourceIDValue), - sinkID(sinkIDValue), - domainID(domainIDValue), - connectionFormat(connectionFormatValue) -{ -} - - -bool operator==(const am_RoutingElement_s& lhs, const am_RoutingElement_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.sourceID == rhs.sourceID && - lhs.sinkID == rhs.sinkID && - lhs.domainID == rhs.domainID && - lhs.connectionFormat == rhs.connectionFormat - ; -} - -void am_RoutingElement_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> sourceID; - inputStream >> sinkID; - inputStream >> domainID; - inputStream >> connectionFormat; -} - -void am_RoutingElement_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << sourceID; - outputStream << sinkID; - outputStream << domainID; - outputStream << connectionFormat; -} - -am_SoundProperty_s::am_SoundProperty_s(const am_CustomSoundPropertyType_t& typeValue, const int16_t& valueValue): - type(typeValue), - value(valueValue) -{ -} - - -bool operator==(const am_SoundProperty_s& lhs, const am_SoundProperty_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.type == rhs.type && - lhs.value == rhs.value - ; -} - -void am_SoundProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> type; - inputStream >> value; -} - -void am_SoundProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << type; - outputStream << value; -} - -am_SystemProperty_s::am_SystemProperty_s(const am_CustomSystemPropertyType_t& typeValue, const int16_t& valueValue): - type(typeValue), - value(valueValue) -{ -} - - -bool operator==(const am_SystemProperty_s& lhs, const am_SystemProperty_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.type == rhs.type && - lhs.value == rhs.value - ; -} - -void am_SystemProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> type; - inputStream >> value; -} - -void am_SystemProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << type; - outputStream << value; -} - -am_SinkClass_s::am_SinkClass_s(const am_sinkClass_t& sinkClassIDValue, const std::string& nameValue, const am_ClassProperty_L& listClassPropertiesValue): - sinkClassID(sinkClassIDValue), - name(nameValue), - listClassProperties(listClassPropertiesValue) -{ -} - - -bool operator==(const am_SinkClass_s& lhs, const am_SinkClass_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.sinkClassID == rhs.sinkClassID && - lhs.name == rhs.name && - lhs.listClassProperties == rhs.listClassProperties - ; -} - -void am_SinkClass_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> sinkClassID; - inputStream >> name; - inputStream >> listClassProperties; -} - -void am_SinkClass_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << sinkClassID; - outputStream << name; - outputStream << listClassProperties; -} - -am_SourceClass_s::am_SourceClass_s(const am_sourceClass_t& sourceClassIDValue, const std::string& nameValue, const am_ClassProperty_L& listClassPropertiesValue): - sourceClassID(sourceClassIDValue), - name(nameValue), - listClassProperties(listClassPropertiesValue) -{ -} - - -bool operator==(const am_SourceClass_s& lhs, const am_SourceClass_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.sourceClassID == rhs.sourceClassID && - lhs.name == rhs.name && - lhs.listClassProperties == rhs.listClassProperties - ; -} - -void am_SourceClass_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> sourceClassID; - inputStream >> name; - inputStream >> listClassProperties; -} - -void am_SourceClass_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << sourceClassID; - outputStream << name; - outputStream << listClassProperties; -} - -am_SourceType_s::am_SourceType_s(const am_sourceID_t& sourceIDValue, const std::string& nameValue, const am_Availability_s& availabilityValue, const am_sourceClass_t& sourceClassIDValue): - sourceID(sourceIDValue), - name(nameValue), - availability(availabilityValue), - sourceClassID(sourceClassIDValue) -{ -} - - -bool operator==(const am_SourceType_s& lhs, const am_SourceType_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.sourceID == rhs.sourceID && - lhs.name == rhs.name && - lhs.availability == rhs.availability && - lhs.sourceClassID == rhs.sourceClassID - ; -} - -void am_SourceType_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> sourceID; - inputStream >> name; - inputStream >> availability; - inputStream >> sourceClassID; -} - -void am_SourceType_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << sourceID; - outputStream << name; - outputStream << availability; - outputStream << sourceClassID; -} - -am_SinkType_s::am_SinkType_s(const am_sinkID_t& sinkIDValue, const std::string& nameValue, const am_Availability_s& availabilityValue, const am_mainVolume_t& volumeValue, const am_MuteState_e& muteStateValue, const am_sinkClass_t& sinkClassIDValue): - sinkID(sinkIDValue), - name(nameValue), - availability(availabilityValue), - volume(volumeValue), - muteState(muteStateValue), - sinkClassID(sinkClassIDValue) -{ -} - - -bool operator==(const am_SinkType_s& lhs, const am_SinkType_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.sinkID == rhs.sinkID && - lhs.name == rhs.name && - lhs.availability == rhs.availability && - lhs.volume == rhs.volume && - lhs.muteState == rhs.muteState && - lhs.sinkClassID == rhs.sinkClassID - ; -} - -void am_SinkType_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> sinkID; - inputStream >> name; - inputStream >> availability; - inputStream >> volume; - inputStream >> muteState; - inputStream >> sinkClassID; -} - -void am_SinkType_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << sinkID; - outputStream << name; - outputStream << availability; - outputStream << volume; - outputStream << muteState; - outputStream << sinkClassID; -} - -am_Handle_s::am_Handle_s(const am_Handle_e& handleTypeValue, const uint16_t& handleValue): - handleType(handleTypeValue), - handle(handleValue) -{ -} - - -bool operator==(const am_Handle_s& lhs, const am_Handle_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.handleType == rhs.handleType && - lhs.handle == rhs.handle - ; -} - -void am_Handle_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> handleType; - inputStream >> handle; -} - -void am_Handle_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << handleType; - outputStream << handle; -} - -am_MainSoundProperty_s::am_MainSoundProperty_s(const am_CustomMainSoundPropertyType_t& typeValue, const int16_t& valueValue): - type(typeValue), - value(valueValue) -{ -} - - -bool operator==(const am_MainSoundProperty_s& lhs, const am_MainSoundProperty_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.type == rhs.type && - lhs.value == rhs.value - ; -} - -void am_MainSoundProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> type; - inputStream >> value; -} - -void am_MainSoundProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << type; - outputStream << value; -} - -am_MainConnectionType_s::am_MainConnectionType_s(const am_mainConnectionID_t& mainConnectionIDValue, const am_sourceID_t& sourceIDValue, const am_sinkID_t& sinkIDValue, const am_timeSync_t& delayValue, const am_ConnectionState_e& connectionStateValue): - mainConnectionID(mainConnectionIDValue), - sourceID(sourceIDValue), - sinkID(sinkIDValue), - delay(delayValue), - connectionState(connectionStateValue) -{ -} - - -bool operator==(const am_MainConnectionType_s& lhs, const am_MainConnectionType_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.mainConnectionID == rhs.mainConnectionID && - lhs.sourceID == rhs.sourceID && - lhs.sinkID == rhs.sinkID && - lhs.delay == rhs.delay && - lhs.connectionState == rhs.connectionState - ; -} - -void am_MainConnectionType_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> mainConnectionID; - inputStream >> sourceID; - inputStream >> sinkID; - inputStream >> delay; - inputStream >> connectionState; -} - -void am_MainConnectionType_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << mainConnectionID; - outputStream << sourceID; - outputStream << sinkID; - outputStream << delay; - outputStream << connectionState; -} - -am_MainConnection_s::am_MainConnection_s(const am_mainConnectionID_t& mainConnectionIDValue, const am_ConnectionState_e& connectionStateValue, const am_sinkID_t& sinkIDValue, const am_sourceID_t& sourceIDValue, const am_timeSync_t& delayValue, const am_ConnectionID_L& listConnectionIDValue): - mainConnectionID(mainConnectionIDValue), - connectionState(connectionStateValue), - sinkID(sinkIDValue), - sourceID(sourceIDValue), - delay(delayValue), - listConnectionID(listConnectionIDValue) -{ -} - - -bool operator==(const am_MainConnection_s& lhs, const am_MainConnection_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.mainConnectionID == rhs.mainConnectionID && - lhs.connectionState == rhs.connectionState && - lhs.sinkID == rhs.sinkID && - lhs.sourceID == rhs.sourceID && - lhs.delay == rhs.delay && - lhs.listConnectionID == rhs.listConnectionID - ; -} - -void am_MainConnection_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> mainConnectionID; - inputStream >> connectionState; - inputStream >> sinkID; - inputStream >> sourceID; - inputStream >> delay; - inputStream >> listConnectionID; -} - -void am_MainConnection_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << mainConnectionID; - outputStream << connectionState; - outputStream << sinkID; - outputStream << sourceID; - outputStream << delay; - outputStream << listConnectionID; -} - -am_NotificationPayload_s::am_NotificationPayload_s(const am_CustomNotificationType_t& typeValue, const int16_t& valueValue): - type(typeValue), - value(valueValue) -{ -} - - -bool operator==(const am_NotificationPayload_s& lhs, const am_NotificationPayload_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.type == rhs.type && - lhs.value == rhs.value - ; -} - -void am_NotificationPayload_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> type; - inputStream >> value; -} - -void am_NotificationPayload_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << type; - outputStream << value; -} - -am_NotificationConfiguration_s::am_NotificationConfiguration_s(const am_CustomNotificationType_t& typeValue, const am_NotificationStatus_e& statusValue, const int16_t& parameterValue): - type(typeValue), - status(statusValue), - parameter(parameterValue) -{ -} - - -bool operator==(const am_NotificationConfiguration_s& lhs, const am_NotificationConfiguration_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.type == rhs.type && - lhs.status == rhs.status && - lhs.parameter == rhs.parameter - ; -} - -void am_NotificationConfiguration_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> type; - inputStream >> status; - inputStream >> parameter; -} - -void am_NotificationConfiguration_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << type; - outputStream << status; - outputStream << parameter; -} - -am_Sink_s::am_Sink_s(const am_sinkID_t& sinkIDValue, const std::string& nameValue, const am_domainID_t& domainIDValue, const am_sinkClass_t& sinkClassIDValue, const am_volume_t& volumeValue, const bool& visibleValue, const am_Availability_s& availableValue, const am_MuteState_e& muteStateValue, const am_mainVolume_t& mainVolumeValue, const am_SoundProperty_L& listSoundPropertiesValue, const am_ConnectionFormat_L& listConnectionFormatsValue, const am_MainSoundProperty_L& listMainSoundPropertiesValue, const am_NotificationConfiguration_L& listMainNotificationConfigurationsValue, const am_NotificationConfiguration_L& listNotificationConfigurationsValue): - sinkID(sinkIDValue), - name(nameValue), - domainID(domainIDValue), - sinkClassID(sinkClassIDValue), - volume(volumeValue), - visible(visibleValue), - available(availableValue), - muteState(muteStateValue), - mainVolume(mainVolumeValue), - listSoundProperties(listSoundPropertiesValue), - listConnectionFormats(listConnectionFormatsValue), - listMainSoundProperties(listMainSoundPropertiesValue), - listMainNotificationConfigurations(listMainNotificationConfigurationsValue), - listNotificationConfigurations(listNotificationConfigurationsValue) -{ -} - - -bool operator==(const am_Sink_s& lhs, const am_Sink_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.sinkID == rhs.sinkID && - lhs.name == rhs.name && - lhs.domainID == rhs.domainID && - lhs.sinkClassID == rhs.sinkClassID && - lhs.volume == rhs.volume && - lhs.visible == rhs.visible && - lhs.available == rhs.available && - lhs.muteState == rhs.muteState && - lhs.mainVolume == rhs.mainVolume && - lhs.listSoundProperties == rhs.listSoundProperties && - lhs.listConnectionFormats == rhs.listConnectionFormats && - lhs.listMainSoundProperties == rhs.listMainSoundProperties && - lhs.listMainNotificationConfigurations == rhs.listMainNotificationConfigurations && - lhs.listNotificationConfigurations == rhs.listNotificationConfigurations - ; -} - -void am_Sink_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> sinkID; - inputStream >> name; - inputStream >> domainID; - inputStream >> sinkClassID; - inputStream >> volume; - inputStream >> visible; - inputStream >> available; - inputStream >> muteState; - inputStream >> mainVolume; - inputStream >> listSoundProperties; - inputStream >> listConnectionFormats; - inputStream >> listMainSoundProperties; - inputStream >> listMainNotificationConfigurations; - inputStream >> listNotificationConfigurations; -} - -void am_Sink_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << sinkID; - outputStream << name; - outputStream << domainID; - outputStream << sinkClassID; - outputStream << volume; - outputStream << visible; - outputStream << available; - outputStream << muteState; - outputStream << mainVolume; - outputStream << listSoundProperties; - outputStream << listConnectionFormats; - outputStream << listMainSoundProperties; - outputStream << listMainNotificationConfigurations; - outputStream << listNotificationConfigurations; -} - -am_Source_s::am_Source_s(const am_sourceID_t& sourceIDValue, const am_domainID_t& domainIDValue, const std::string& nameValue, const am_sourceClass_t& sourceClassIDValue, const am_SourceState_e& sourceStateValue, const am_volume_t& volumeValue, const bool& visibleValue, const am_Availability_s& availableValue, const am_InterruptState_e& interruptStateValue, const am_SoundProperty_L& listSoundPropertiesValue, const am_ConnectionFormat_L& listConnectionFormatsValue, const am_MainSoundProperty_L& listMainSoundPropertiesValue, const am_NotificationConfiguration_L& listMainNotificationConfigurationsValue, const am_NotificationConfiguration_L& listNotificationConfigurationsValue): - sourceID(sourceIDValue), - domainID(domainIDValue), - name(nameValue), - sourceClassID(sourceClassIDValue), - sourceState(sourceStateValue), - volume(volumeValue), - visible(visibleValue), - available(availableValue), - interruptState(interruptStateValue), - listSoundProperties(listSoundPropertiesValue), - listConnectionFormats(listConnectionFormatsValue), - listMainSoundProperties(listMainSoundPropertiesValue), - listMainNotificationConfigurations(listMainNotificationConfigurationsValue), - listNotificationConfigurations(listNotificationConfigurationsValue) -{ -} - - -bool operator==(const am_Source_s& lhs, const am_Source_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.sourceID == rhs.sourceID && - lhs.domainID == rhs.domainID && - lhs.name == rhs.name && - lhs.sourceClassID == rhs.sourceClassID && - lhs.sourceState == rhs.sourceState && - lhs.volume == rhs.volume && - lhs.visible == rhs.visible && - lhs.available == rhs.available && - lhs.interruptState == rhs.interruptState && - lhs.listSoundProperties == rhs.listSoundProperties && - lhs.listConnectionFormats == rhs.listConnectionFormats && - lhs.listMainSoundProperties == rhs.listMainSoundProperties && - lhs.listMainNotificationConfigurations == rhs.listMainNotificationConfigurations && - lhs.listNotificationConfigurations == rhs.listNotificationConfigurations - ; -} - -void am_Source_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> sourceID; - inputStream >> domainID; - inputStream >> name; - inputStream >> sourceClassID; - inputStream >> sourceState; - inputStream >> volume; - inputStream >> visible; - inputStream >> available; - inputStream >> interruptState; - inputStream >> listSoundProperties; - inputStream >> listConnectionFormats; - inputStream >> listMainSoundProperties; - inputStream >> listMainNotificationConfigurations; - inputStream >> listNotificationConfigurations; -} - -void am_Source_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << sourceID; - outputStream << domainID; - outputStream << name; - outputStream << sourceClassID; - outputStream << sourceState; - outputStream << volume; - outputStream << visible; - outputStream << available; - outputStream << interruptState; - outputStream << listSoundProperties; - outputStream << listConnectionFormats; - outputStream << listMainSoundProperties; - outputStream << listMainNotificationConfigurations; - outputStream << listNotificationConfigurations; -} - -am_Domain_s::am_Domain_s(const am_domainID_t& domainIDValue, const std::string& nameValue, const std::string& busnameValue, const std::string& nodenameValue, const bool& earlyValue, const bool& completeValue, const am_DomainState_e& stateValue): - domainID(domainIDValue), - name(nameValue), - busname(busnameValue), - nodename(nodenameValue), - early(earlyValue), - complete(completeValue), - state(stateValue) -{ -} - - -bool operator==(const am_Domain_s& lhs, const am_Domain_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.domainID == rhs.domainID && - lhs.name == rhs.name && - lhs.busname == rhs.busname && - lhs.nodename == rhs.nodename && - lhs.early == rhs.early && - lhs.complete == rhs.complete && - lhs.state == rhs.state - ; -} - -void am_Domain_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> domainID; - inputStream >> name; - inputStream >> busname; - inputStream >> nodename; - inputStream >> early; - inputStream >> complete; - inputStream >> state; -} - -void am_Domain_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << domainID; - outputStream << name; - outputStream << busname; - outputStream << nodename; - outputStream << early; - outputStream << complete; - outputStream << state; -} - -am_EarlyData_s::am_EarlyData_s(const am_EarlyDataType_e& typeValue, const am_DataType_u& sinksourceValue, const am_EarlyData_u& dataValue): - type(typeValue), - sinksource(sinksourceValue), - data(dataValue) -{ -} - - -bool operator==(const am_EarlyData_s& lhs, const am_EarlyData_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.type == rhs.type && - lhs.sinksource == rhs.sinksource && - lhs.data == rhs.data - ; -} - -void am_EarlyData_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> type; - inputStream >> sinksource; - inputStream >> data; -} - -void am_EarlyData_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << type; - outputStream << sinksource; - outputStream << data; -} - -am_Connection_s::am_Connection_s(const am_connectionID_t& connectionIDValue, const am_sourceID_t& sourceIDValue, const am_sinkID_t& sinkIDValue, const am_timeSync_t& delayValue, const am_CustomConnectionFormat_t& connectionFormatValue): - connectionID(connectionIDValue), - sourceID(sourceIDValue), - sinkID(sinkIDValue), - delay(delayValue), - connectionFormat(connectionFormatValue) -{ -} - - -bool operator==(const am_Connection_s& lhs, const am_Connection_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.connectionID == rhs.connectionID && - lhs.sourceID == rhs.sourceID && - lhs.sinkID == rhs.sinkID && - lhs.delay == rhs.delay && - lhs.connectionFormat == rhs.connectionFormat - ; -} - -void am_Connection_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> connectionID; - inputStream >> sourceID; - inputStream >> sinkID; - inputStream >> delay; - inputStream >> connectionFormat; -} - -void am_Connection_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << connectionID; - outputStream << sourceID; - outputStream << sinkID; - outputStream << delay; - outputStream << connectionFormat; -} - -am_Volumes_s::am_Volumes_s(const am_VolumeType_e& volumeTypeValue, const am_DataType_u& volumeIDValue, const am_volume_t& volumeValue, const am_CustomRampType_t& rampValue, const am_time_t& timeValue): - volumeType(volumeTypeValue), - volumeID(volumeIDValue), - volume(volumeValue), - ramp(rampValue), - time(timeValue) -{ -} - - -bool operator==(const am_Volumes_s& lhs, const am_Volumes_s& rhs) { - if (&lhs == &rhs) - return true; - - return - lhs.volumeType == rhs.volumeType && - lhs.volumeID == rhs.volumeID && - lhs.volume == rhs.volume && - lhs.ramp == rhs.ramp && - lhs.time == rhs.time - ; -} - -void am_Volumes_s::readFromInputStream(CommonAPI::InputStream& inputStream) { - inputStream >> volumeType; - inputStream >> volumeID; - inputStream >> volume; - inputStream >> ramp; - inputStream >> time; -} - -void am_Volumes_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - outputStream << volumeType; - outputStream << volumeID; - outputStream << volume; - outputStream << ramp; - outputStream << time; -} - - - -} // namespace am -} // namespace genivi -} // namespace org diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.h deleted file mode 100644 index 8996092..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.h +++ /dev/null @@ -1,2447 +0,0 @@ -/* -* 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/. -*/ -/** - * @author Christian Linke - */ -#ifndef ORG_GENIVI_am_H_ -#define ORG_GENIVI_am_H_ - - - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include <CommonAPI/InputStream.h> -#include <CommonAPI/OutputStream.h> -#include <CommonAPI/SerializableStruct.h> -#include <CommonAPI/SerializableVariant.h> -#include <CommonAPI/types.h> -#include <cstdint> -#include <memory> -#include <string> -#include <vector> - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace org { -namespace genivi { - -namespace am { - /** - * a source ID - */ - /** - * a source ID - */ - typedef uint16_t am_sourceID_t; - /** - * a mainConnection ID - */ - /** - * a mainConnection ID - */ - typedef uint16_t am_mainConnectionID_t; - /** - * offset time that is introduced in milli seconds. - */ - /** - * offset time that is introduced in milli seconds. - */ - typedef int16_t am_timeSync_t; - /** - * a sink ID - */ - /** - * a sink ID - */ - typedef uint16_t am_sinkID_t; - /** - * represents the connection state - */ - enum class am_ConnectionState_e: int32_t { - CS_UNKNOWN = 0, - /** - * This means the connection is just building up - */ - CS_CONNECTING = 1, - /** - * the connection is ready to be used - */ - CS_CONNECTED = 2, - /** - * the connection is in the course to be knocked down - */ - CS_DISCONNECTING = 3, - /** - * only relevant for connectionStatechanged. Is send after the connection was - * removed - */ - CS_DISCONNECTED = 4, - /** - * this means the connection is still build up but unused at the moment - */ - CS_SUSPENDED = 5, - CS_MAX - }; - - // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1 - struct am_ConnectionState_eComparator; - /** - * this type holds all information of connections relevant to the HMI - */ - /** - * this type holds all information of connections relevant to the HMI - */ - struct am_MainConnectionType_s: CommonAPI::SerializableStruct { - /** - * the ID of the mainconnection - */ - am_mainConnectionID_t mainConnectionID; - /** - * the sourceID where the connection starts - */ - am_sourceID_t sourceID; - /** - * the sinkID where the connection ends - */ - am_sinkID_t sinkID; - /** - * the delay of the mainconnection - */ - am_timeSync_t delay; - /** - * the current connection state - */ - am_ConnectionState_e connectionState; - - am_MainConnectionType_s() = default; - am_MainConnectionType_s(const am_mainConnectionID_t& mainConnectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_timeSync_t& delay, const am_ConnectionState_e& connectionState); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeInt16Type(); - typeOutputStream.writeInt32Type(); - } - }; - typedef std::vector<am_MainConnectionType_s> am_MainConnection_L; - /** - * product specific identifier of property - */ - /** - * product specific identifier of property - */ - typedef uint16_t am_CustomClassProperty_t; - /** - * describes class properties - */ - /** - * describes class properties - */ - struct am_ClassProperty_s: CommonAPI::SerializableStruct { - /** - * the property as enum - */ - am_CustomClassProperty_t classProperty; - /** - * the value of the property - */ - int16_t value; - - am_ClassProperty_s() = default; - am_ClassProperty_s(const am_CustomClassProperty_t& classProperty, const int16_t& value); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeInt16Type(); - } - }; - typedef std::vector<am_ClassProperty_s> am_ClassProperty_L; - typedef uint16_t am_sinkClass_t; - /** - * struct describing sinkclasses - */ - /** - * struct describing sinkclasses - */ - struct am_SinkClass_s: CommonAPI::SerializableStruct { - /** - * the ID of the sinkClass - */ - am_sinkClass_t sinkClassID; - /** - * the name of the sinkClass - must be unique in the system - */ - std::string name; - /** - * the list of the class properties. These are pairs of a project specific enum - * describing the type of the value and an integer holding the real value. - */ - am_ClassProperty_L listClassProperties; - - am_SinkClass_s() = default; - am_SinkClass_s(const am_sinkClass_t& sinkClassID, const std::string& name, const am_ClassProperty_L& listClassProperties); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeStringType(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.beginWriteStructType(); - typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type(); - typeOutputStream.endWriteStructType(); - typeOutputStream.endWriteVectorType(); - } - }; - typedef std::vector<am_SinkClass_s> am_SinkClass_L; - /** - * This is the volume presented on the command interface. It is in the duty of the - * Controller to change the volumes given here into meaningful values on the - * routing interface. - The range of this type is customer specific. - */ - /** - * This is the volume presented on the command interface. It is in the duty of the - * Controller to change the volumes given here into meaningful values on the - * routing interface. - The range of this type is customer specific. - */ - typedef int16_t am_mainVolume_t; - /** - * This project specific value gives the information about reason for reason for - * Source/Sink change - */ - /** - * This project specific value gives the information about reason for reason for - * Source/Sink change - */ - typedef uint16_t am_CustomAvailabilityReason_t; - /** - * with the help of this enum, sinks and sources can report their availability - * state - */ - enum class am_Availability_e: int32_t { - /** - * default - */ - A_UNKNOWN = 0, - /** - * The source / sink is available - */ - A_AVAILABLE = 1, - /** - * the source / sink is not available - */ - A_UNAVAILABLE = 2, - A_MAX - }; - - // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1 - struct am_Availability_eComparator; - enum class am_MuteState_e: int32_t { - /** - * default - */ - MS_UNKNOWN = 0, - /** - * the source / sink is muted - */ - MS_MUTED = 1, - /** - * the source / sink is unmuted - */ - MS_UNMUTED = 2, - MS_MAX - }; - - // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1 - struct am_MuteState_eComparator; - /** - * this describes the availability of a sink or a source together with the latest - * change - */ - /** - * this describes the availability of a sink or a source together with the latest - * change - */ - struct am_Availability_s: CommonAPI::SerializableStruct { - /** - * the current availability state - */ - am_Availability_e availability; - /** - * the reason for the last change. This can be used to trigger events that deal - * with state changes. - */ - am_CustomAvailabilityReason_t availabilityReason; - - am_Availability_s() = default; - am_Availability_s(const am_Availability_e& availability, const am_CustomAvailabilityReason_t& availabilityReason); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeInt32Type(); - typeOutputStream.writeUInt16Type(); - } - }; - /** - * this type holds all information of sinks relevant to the HMI - */ - /** - * this type holds all information of sinks relevant to the HMI - */ - struct am_SinkType_s: CommonAPI::SerializableStruct { - /** - * This is the ID of the sink, it is unique in the system. There are 2 ways, ID - * can be created: either it is assigned during the registration process (in a - * dynamic context, uniqueness will be ensured by the AudioManagerDaemon), or it - * is a fixed (the project has to ensure the uniqueness of the ID). - */ - am_sinkID_t sinkID; - /** - * The name of the sink. Must be unique in the whole system. - */ - std::string name; - /** - * This attribute reflects the availability of the sink. There are several reasons - * why a sink could be not available for the moment: for example the shutdown of - * a sink because of overtemperature or over- & undervoltage. The - * availability consists of two pieces of information: - - Availablility: the - * status itself, can be A_AVAILABLE, A_UNAVAILABLE or A_UNKNOWN - - * AvailabilityReason: this informs about the last reason for a change in - * availability. The reasons itself are product specific. - */ - am_Availability_s availability; - /** - * This is the representation of the Volume for the commandInterface. It is used - * by the HMI to set the volume of a sink, the AudioManagerController has to - * transform this into real source and sink volumes. - */ - am_mainVolume_t volume; - am_MuteState_e muteState; - /** - * The sinkClassID references to a sinkClass. With the help of classification, - * rules can be setup to define the system behaviour. - */ - am_sinkClass_t sinkClassID; - - am_SinkType_s() = default; - am_SinkType_s(const am_sinkID_t& sinkID, const std::string& name, const am_Availability_s& availability, const am_mainVolume_t& volume, const am_MuteState_e& muteState, const am_sinkClass_t& sinkClassID); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeStringType(); - typeOutputStream.beginWriteStructType(); - typeOutputStream.writeInt32Type();typeOutputStream.writeUInt16Type(); - typeOutputStream.endWriteStructType(); - typeOutputStream.writeInt16Type(); - typeOutputStream.writeInt32Type(); - typeOutputStream.writeUInt16Type(); - } - }; - typedef std::vector<am_SinkType_s> am_SinkType_L; - typedef uint16_t am_sourceClass_t; - /** - * struct describing source classes - */ - /** - * struct describing source classes - */ - struct am_SourceClass_s: CommonAPI::SerializableStruct { - /** - * the source ID - */ - am_sourceClass_t sourceClassID; - /** - * the name of the sourceClass - must be unique in the system - */ - std::string name; - /** - * the list of the class properties. These are pairs of a project specific enum - * describing the type of the value and an integer holding the real value. - */ - am_ClassProperty_L listClassProperties; - - am_SourceClass_s() = default; - am_SourceClass_s(const am_sourceClass_t& sourceClassID, const std::string& name, const am_ClassProperty_L& listClassProperties); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeStringType(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.beginWriteStructType(); - typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type(); - typeOutputStream.endWriteStructType(); - typeOutputStream.endWriteVectorType(); - } - }; - typedef std::vector<am_SourceClass_s> am_SourceClass_L; - /** - * this type holds all information of sources relevant to the HMI - */ - /** - * this type holds all information of sources relevant to the HMI - */ - struct am_SourceType_s: CommonAPI::SerializableStruct { - /** - * This is the ID of the source, it is unique in the system. There are 2 ways, ID - * can be created: either it is assigned during the registration process (in a - * dynamic context, uniqueness will be ensured by the AudioManagerDaemon), or it - * is a fixed (the project has to ensure the uniqueness of the ID). - */ - am_sourceID_t sourceID; - /** - * The name of the source. Must be unique in the whole system. - */ - std::string name; - /** - * the availability of the source - */ - am_Availability_s availability; - /** - * the sourceClassID, indicates the class the source is in. This information can - * be used by the Controller to implement different behaviour for different - * classes. - */ - am_sourceClass_t sourceClassID; - - am_SourceType_s() = default; - am_SourceType_s(const am_sourceID_t& sourceID, const std::string& name, const am_Availability_s& availability, const am_sourceClass_t& sourceClassID); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeStringType(); - typeOutputStream.beginWriteStructType(); - typeOutputStream.writeInt32Type();typeOutputStream.writeUInt16Type(); - typeOutputStream.endWriteStructType(); - typeOutputStream.writeUInt16Type(); - } - }; - typedef std::vector<am_SourceType_s> am_SourceType_L; - /** - * describes the different system properties. Project specific - */ - /** - * describes the different system properties. Project specific - */ - typedef uint16_t am_CustomSystemPropertyType_t; - /** - * struct describing system properties - */ - /** - * struct describing system properties - */ - struct am_SystemProperty_s: CommonAPI::SerializableStruct { - /** - * the type that is set - */ - am_CustomSystemPropertyType_t type; - /** - * the value - */ - int16_t value; - - am_SystemProperty_s() = default; - am_SystemProperty_s(const am_CustomSystemPropertyType_t& type, const int16_t& value); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeInt16Type(); - } - }; - typedef std::vector<am_SystemProperty_s> am_SystemProperty_L; - /** - * a connection ID - */ - /** - * a connection ID - */ - typedef uint16_t am_connectionID_t; - typedef std::vector<am_connectionID_t> am_ConnectionID_L; - /** - * The unit is 0.1 db steps,The smallest value -3000 (=AM_MUTE). The minimum and - * maximum can be limited by actual project. - */ - /** - * The unit is 0.1 db steps,The smallest value -3000 (=AM_MUTE). The minimum and - * maximum can be limited by actual project. - */ - typedef int16_t am_volume_t; - /** - * Project specific sound properties. - */ - /** - * Project specific sound properties. - */ - typedef uint16_t am_CustomSoundPropertyType_t; - /** - * This enum characterizes the data of the EarlyData_t - */ - enum class am_EarlyDataType_e: int32_t { - /** - * default - */ - ES_UNKNOWN = 0, - /** - * the source volume - */ - ED_SOURCE_VOLUME = 1, - /** - * the sink volume - */ - ED_SINK_VOLUME = 2, - /** - * a source property - */ - ED_SOURCE_PROPERTY = 3, - /** - * a sink property - */ - ED_SINK_PROPERTY = 4, - ED_MAX - }; - - // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1 - struct am_EarlyDataType_eComparator; - /** - * struct describing the sound property - */ - /** - * struct describing the sound property - */ - struct am_SoundProperty_s: CommonAPI::SerializableStruct { - /** - * the type of the property - a project specific enum - */ - am_CustomSoundPropertyType_t type; - /** - * the actual value of the property - */ - int16_t value; - - am_SoundProperty_s() = default; - am_SoundProperty_s(const am_CustomSoundPropertyType_t& type, const int16_t& value); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeInt16Type(); - } - }; - /** - * data type depends of am_EarlyDataType_e: - volume_t in case of ED_SOURCE_VOLUME, - * ED_SINK_VOLUME - soundProperty_t in case of ED_SOURCE_PROPERTY, - * ED_SINK_PROPERTY - */ - /** - * data type depends of am_EarlyDataType_e: - volume_t in case of ED_SOURCE_VOLUME, - * ED_SINK_VOLUME - soundProperty_t in case of ED_SOURCE_PROPERTY, - * ED_SINK_PROPERTY - */ - typedef CommonAPI::Variant<am_volume_t, am_SoundProperty_s> am_EarlyData_u; - /** - * data type depends of am_EarlyDataType_e: - sourceID in case of ED_SOURCE_VOLUME, - * ED_SOURCE_PROPERTY - sinkID in case of ED_SINK_VOLUME, ED_SINK_PROPERTY - */ - /** - * data type depends of am_EarlyDataType_e: - sourceID in case of ED_SOURCE_VOLUME, - * ED_SOURCE_PROPERTY - sinkID in case of ED_SINK_VOLUME, ED_SINK_PROPERTY - */ - typedef CommonAPI::Variant<am_sinkID_t, am_sourceID_t> am_DataType_u; - struct am_EarlyData_s: CommonAPI::SerializableStruct { - am_EarlyDataType_e type; - am_DataType_u sinksource; - am_EarlyData_u data; - - am_EarlyData_s() = default; - am_EarlyData_s(const am_EarlyDataType_e& type, const am_DataType_u& sinksource, const am_EarlyData_u& data); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeInt32Type(); - typeOutputStream.writeVariantType(); - typeOutputStream.writeVariantType(); - } - }; - typedef std::vector<am_EarlyData_s> am_EarlyData_L; - /** - * Here are all SoundProperties that can be set via the CommandInterface. Product - * specific - */ - /** - * Here are all SoundProperties that can be set via the CommandInterface. Product - * specific - */ - typedef uint16_t am_CustomMainSoundPropertyType_t; - /** - * struct describung mainsound property - */ - /** - * struct describung mainsound property - */ - struct am_MainSoundProperty_s: CommonAPI::SerializableStruct { - /** - * the type of the property - */ - am_CustomMainSoundPropertyType_t type; - /** - * the actual value - */ - int16_t value; - - am_MainSoundProperty_s() = default; - am_MainSoundProperty_s(const am_CustomMainSoundPropertyType_t& type, const int16_t& value); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeInt16Type(); - } - }; - typedef std::vector<am_MainSoundProperty_s> am_MainSoundProperty_L; - /** - * gives the type of the Notification. - */ - /** - * gives the type of the Notification. - */ - typedef uint16_t am_CustomNotificationType_t; - enum class am_NotificationStatus_e: int32_t { - NS_UNKNOWN = 0, - /** - * No notification, the function is turned off - */ - NS_OFF = 1, - /** - * Periodic notifications are sent out. The period in ms is given by - * am_NotificationParameter - */ - NS_PERIODIC = 2, - /** - * The notification is sent out when the minimum given by am_NotificationParameter - * is reached. - */ - NS_MINIMUM = 3, - /** - * The notification is sent out when the maximum given by am_NotificationParameter - * is reached. - */ - NS_MAXIMUM = 4, - /** - * The notification is sent out when a change happened. The Resolution of the - * change is defined by am_NotificationParameter. - */ - NS_CHANGE_ = 5, - NS_MAX - }; - - // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1 - struct am_NotificationStatus_eComparator; - /** - * This struct holds information about the configuration for notifications - */ - /** - * This struct holds information about the configuration for notifications - */ - struct am_NotificationConfiguration_s: CommonAPI::SerializableStruct { - /** - * The notification type of the notification - */ - am_CustomNotificationType_t type; - /** - * The Notification status. This can be periodic, min/max value based or even off - * for example - */ - am_NotificationStatus_e status; - /** - * This gives additional information to the notification status. - Relation - * between notification status and the value: - NS_PERIODIC - the period in - * ms - NS_MINIMUM - the minimum value that triggers the notification - NS_MAXIMUM - * - the maximum value that triggers the notifcation - NS_CHANGE - the resolution - * of the change value - */ - int16_t parameter; - - am_NotificationConfiguration_s() = default; - am_NotificationConfiguration_s(const am_CustomNotificationType_t& type, const am_NotificationStatus_e& status, const int16_t& parameter); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeInt32Type(); - typeOutputStream.writeInt16Type(); - } - }; - typedef std::vector<am_NotificationConfiguration_s> am_NotificationConfiguration_L; - /** - * a domain ID - */ - /** - * a domain ID - */ - typedef uint16_t am_domainID_t; - /** - * This project specific value classifies the format in which data is exchanged - * within a connection. - */ - /** - * This project specific value classifies the format in which data is exchanged - * within a connection. - */ - typedef uint16_t am_CustomConnectionFormat_t; - /** - * This represents one "hopp" in a route - */ - /** - * This represents one "hopp" in a route - */ - struct am_RoutingElement_s: CommonAPI::SerializableStruct { - /** - * the source ID - */ - am_sourceID_t sourceID; - /** - * the sinkID - */ - am_sinkID_t sinkID; - /** - * the domainID the routeElement is in - */ - am_domainID_t domainID; - /** - * the connectionformat that is used for the route - */ - am_CustomConnectionFormat_t connectionFormat; - - am_RoutingElement_s() = default; - am_RoutingElement_s(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_domainID_t& domainID, const am_CustomConnectionFormat_t& connectionFormat); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - } - }; - typedef std::vector<am_RoutingElement_s> am_RoutingElement_L; - typedef std::vector<am_SoundProperty_s> am_SoundProperty_L; - /** - * time in ms! - */ - /** - * time in ms! - */ - typedef int16_t am_time_t; - /** - * For products, different ramp types can be defined here. - It is in the - * responsibility of the product to make sure that the routing plugins are aware - * of the ramp types used. - */ - /** - * For products, different ramp types can be defined here. - It is in the - * responsibility of the product to make sure that the routing plugins are aware - * of the ramp types used. - */ - typedef uint16_t am_CustomRampType_t; - /** - * This datatype determines if a sourceID or a sinkID is used in the union - * following - */ - enum class am_VolumeType_e: int32_t { - VT_UNKNOWN = 0, - /** - * the following type is a sink - */ - VT_SINK = 1, - /** - * the following type is a source - */ - VT_SOURCE = 2, - VT_MAX - }; - - // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1 - struct am_VolumeType_eComparator; - /** - * This types describe a mixed description for source and sinks volumes. - */ - /** - * This types describe a mixed description for source and sinks volumes. - */ - struct am_Volumes_s: CommonAPI::SerializableStruct { - /** - * describes the type of the volume: source or sink. - */ - am_VolumeType_e volumeType; - /** - * either sourceID or sinkID - */ - am_DataType_u volumeID; - /** - * The volume - */ - am_volume_t volume; - /** - * the ramp that shall be driven - */ - am_CustomRampType_t ramp; - /** - * the time for the ramp - */ - am_time_t time; - - am_Volumes_s() = default; - am_Volumes_s(const am_VolumeType_e& volumeType, const am_DataType_u& volumeID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeInt32Type(); - typeOutputStream.writeVariantType(); - typeOutputStream.writeInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeInt16Type(); - } - }; - typedef std::vector<am_Volumes_s> am_Volumes_L; - typedef std::vector<am_CustomConnectionFormat_t> am_ConnectionFormat_L; - typedef bool am_bool_t; - typedef std::vector<am_bool_t> am_Convertion_L; - /** - * a gateway ID - */ - /** - * a gateway ID - */ - typedef uint16_t am_gatewayID_t; - /** - * a crossfader ID - */ - /** - * a crossfader ID - */ - typedef uint16_t am_crossfaderID_t; - /** - * speed - */ - /** - * speed - */ - typedef uint16_t am_speed_t; - /** - * describes the active sink of a crossfader. - */ - enum class am_HotSink_e: int32_t { - /** - * default - */ - HS_UNKNOWN = 0, - /** - * sinkA is active - */ - HS_SINKA = 1, - /** - * sinkB is active - */ - HS_SINKB = 2, - /** - * the crossfader is in the transition state - */ - HS_INTERMEDIATE = 3, - HS_MAX - }; - - // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1 - struct am_HotSink_eComparator; - enum class am_DomainState_e: int32_t { - /** - * default - */ - DS_UNKNOWN = 0, - /** - * the domain is controlled by the daemon - */ - DS_CONTROLLED = 1, - /** - * the domain is independent starting up - */ - DS_INDEPENDENT_STARTUP = 1, - /** - * the domain is independent running down - */ - DS_INDEPENDENT_RUNDOWN = 2, - DS_MAX - }; - - // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1 - struct am_DomainState_eComparator; - /** - * the errors of the audiomanager. All possible errors are in here. This enum is - * used widely as return parameter. - */ - enum class am_Error_e: int32_t { - /** - * no error - positive reply - */ - E_OK = 0, - /** - * default - */ - E_UNKNOWN = 1, - /** - * value out of range - */ - E_OUT_OF_RANGE = 2, - /** - * not used - */ - E_NOT_USED = 3, - /** - * a database error occurred - */ - E_DATABASE_ERROR = 4, - /** - * the desired object already exists - */ - E_ALREADY_EXISTS = 5, - /** - * there is no change - */ - E_NO_CHANGE = 6, - /** - * the desired action is not possible - */ - E_NOT_POSSIBLE = 7, - /** - * the desired object is non existent - */ - E_NON_EXISTENT = 8, - /** - * the asynchronous action was aborted - */ - E_ABORTED = 9, - /** - * This error is returned in case a connect is issued with a connectionFormat that - * cannot be selected for the connection. This could be either due to the - * capabilities of a source or a sink or gateway compatibilities for example - */ - E_WRONG_FORMAT = 10, - E_MAX - }; - - // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1 - struct am_Error_eComparator; - enum class am_InterruptState_e: int32_t { - /** - * default - */ - IS_UNKNOWN = 0, - /** - * the interrupt state is off - no interrupt - */ - IS_OFF = 1, - /** - * the interrupt state is interrupted - the interrupt is active - */ - IS_INTERRUPTED = 2, - IS_MAX - }; - - // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1 - struct am_InterruptState_eComparator; - /** - * This enumeration is used to define the type of the action that is correlated to - * a handle. - */ - enum class am_Handle_e: int32_t { - H_UNKNOWN = 0, - H_CONNECT = 1, - H_DISCONNECT = 2, - H_SETSOURCESTATE = 3, - H_SETSINKVOLUME = 4, - H_SETSOURCEVOLUME = 5, - H_SETSINKSOUNDPROPERTY = 6, - H_SETSOURCESOUNDPROPERTY = 7, - H_SETSINKSOUNDPROPERTIES = 8, - H_SETSOURCESOUNDPROPERTIES = 9, - H_CROSSFADE = 10, - H_SETVOLUMES = 11, - H_SETSINKNOTIFICATION = 12, - H_SETSOURCENOTIFICATION = 13, - H_MAX - }; - - // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1 - struct am_Handle_eComparator; - /** - * The source state reflects the state of the source - */ - enum class am_SourceState_e: int32_t { - SS_UNKNNOWN = 0, - /** - * The source can be activly heared - */ - SS_ON = 1, - /** - * The source cannot be heared - */ - SS_OFF = 2, - /** - * The source is paused. Meaning it cannot be heared but should be prepared to - * play again soon. - */ - SS_PAUSED = 3, - SS_MAX - }; - - // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1 - struct am_SourceState_eComparator; - /** - * This enum describes the ready state of the routing part - */ - enum class am_RoutingReady_e: int32_t { - RR_UNKNOWN = 0, - RR_READY = 1, - RR_RUNDOWN = 2 - }; - - // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1 - struct am_RoutingReady_eComparator; - /** - * a list of routing elements that lead from source to sink - */ - /** - * a list of routing elements that lead from source to sink - */ - struct am_Route_s: CommonAPI::SerializableStruct { - /** - * the sourceID where the route starts - */ - am_sourceID_t sourceID; - /** - * the sinkID where the route ends - */ - am_sinkID_t sinkID; - /** - * the actual route as list of routing elements - */ - am_RoutingElement_L route; - - am_Route_s() = default; - am_Route_s(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_RoutingElement_L& route); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.beginWriteStructType(); - typeOutputStream.writeUInt16Type();typeOutputStream.writeUInt16Type();typeOutputStream.writeUInt16Type();typeOutputStream.writeUInt16Type(); - typeOutputStream.endWriteStructType(); - typeOutputStream.endWriteVectorType(); - } - }; - /** - * This struct describes the attribiutes of a crossfader. - */ - /** - * This struct describes the attribiutes of a crossfader. - */ - struct am_Crossfader_s: CommonAPI::SerializableStruct { - /** - * This is the ID of the crossfader, it is unique in the system. There are 2 ways, - * ID can be created: either it is assigned during the registration process (in a - * dynamic context, uniqueness will be ensured by the AudioManager daemon), or it - * is a fixed (the project has to ensure the uniqueness of the ID). - */ - am_crossfaderID_t crossfaderID; - /** - * The name of the crossfader. Must be unique in the whole system. - */ - std::string name; - /** - * The sinkID of the SinkA. Sinks shall be registered before registering the - * crossfader. - */ - am_sinkID_t sinkID_A; - /** - * The sinkID of the SinkB. Sinks shall be registered before registering the - * crossfader. - */ - am_sinkID_t sinkID_B; - /** - * The sourceID of the crossfader source. The source shall be registered before - * the crossfader. - */ - am_sourceID_t sourceID; - /** - * This enum can have 3 states: - - HS_SINKA sinkA is the current hot one, - * sinkB is not audible - HS_SINKB sinkB is the current hot one, sinkB is not - * audible - HS_INTERMEDIATE the fader is stuck in between a cross-fading - * action. This could be due to an abort or an error. Before using the - * crossfader, it must be set to either HS_SINKA or HS_SINKB. - */ - am_HotSink_e hotSink; - - am_Crossfader_s() = default; - am_Crossfader_s(const am_crossfaderID_t& crossfaderID, const std::string& name, const am_sinkID_t& sinkID_A, const am_sinkID_t& sinkID_B, const am_sourceID_t& sourceID, const am_HotSink_e& hotSink); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeStringType(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeInt32Type(); - } - }; - /** - * This struct describes the attributes of a gateway. - */ - /** - * This struct describes the attributes of a gateway. - */ - struct am_Gateway_s: CommonAPI::SerializableStruct { - /** - * This is the ID of the gateway, it is unique in the system. There are 2 ways, ID - * can be created: either it is assigned during the registration process (in a - * dynamic context, uniqueness will be ensured by the AudioManagerDaemon), or it - * is a fixed (the project has to ensure the uniqueness of the ID). - */ - am_gatewayID_t gatewayID; - /** - * The name of the gateway. Must be unique in the whole system. - */ - std::string name; - /** - * The sinkID of the gateway sink-end. The sink is a full blown sink with - * connectionFormats, sinkClassIDs etc... It makes sense to register the sinks of - * a gateway as non-visible. Care needs to be taken that the connectionsFormats - * match with the ones in the conversionMatrix. If the sink is located in the - * controllingDomain, the ID needs to be retrieved by registering the sink before - * registering the gateway. In case the sink is in a different domain, the ID - * needs to be retrieved via peeking. - */ - am_sinkID_t sinkID; - /** - * The sourceID of the gateway sink-end. The sink is a full blown source with - * connectionFormats, sinkClassIDs etc... It makes sense to register the sources - * of a gateway as non-visible. Care needs to be taken that the - * connectionsFormats match with the ones in the conversionMatrix. If the source - * is located in the controllingDomain, the ID needs to be retrieved by - * registering the source before registering the gateway. In case the source is - * in a different domain, the ID needs to be retrieved via peeking. - */ - am_sourceID_t sourceID; - /** - * The ID of the sink. If the domain is the same like the controlling domain, the - * ID is known due to registration. If the domain is different, the ID needs to - * be retrieved via peeking. - */ - am_domainID_t domainSinkID; - /** - * The ID of the source. If the domain is the same like the controlling domain, - * the ID is known due to registration. If the domain is different, the ID needs - * to be retrieved via peeking. - */ - am_domainID_t domainSourceID; - /** - * This is the ID of the domain that registers the gateway. - */ - am_domainID_t controlDomainID; - /** - * This is the list of available formats on the source side of the gateway. It is - * not defined during the gateway registration but copied from the source - * registration. - */ - am_ConnectionFormat_L listSourceFormats; - /** - * This is the list of available formats on the sink side of the gateway. It is - * not defined during the gateway registration but copied from the sink - * registration. - */ - am_ConnectionFormat_L listSinkFormats; - /** - * This is matrix holding information about the conversion capability of the - * gateway, it's length is defined by the length(listSinkFormats) x - * length(listSourceFormats). - If a SinkFormat can be converted into a - * SourceFormat, the vector will hold a 1, if no conversion is possible, a - * 0. - The data is stored row orientated, where the rows are related to the - * sinksFormats and the columns to the sourceFormats. The first value will hold - * the conversion information from the first sourceFormat to the first sinkFormat - * for example and the seventh value the information about the 3rd sinkFormat to - * the 1st sourceFormat in case we would have 3 sourceFormats. - */ - am_Convertion_L convertionMatrix; - - am_Gateway_s() = default; - am_Gateway_s(const am_gatewayID_t& gatewayID, const std::string& name, const am_sinkID_t& sinkID, const am_sourceID_t& sourceID, const am_domainID_t& domainSinkID, const am_domainID_t& domainSourceID, const am_domainID_t& controlDomainID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeStringType(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.endWriteVectorType(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.endWriteVectorType(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.writeBoolType(); - typeOutputStream.endWriteVectorType(); - } - }; - /** - * a handle is used for asynchronous operations and is uniquely assigned for each - * of this operations - */ - /** - * a handle is used for asynchronous operations and is uniquely assigned for each - * of this operations - */ - struct am_Handle_s: CommonAPI::SerializableStruct { - /** - * the handletype - */ - am_Handle_e handleType; - /** - * the handle as value - */ - uint16_t handle; - - am_Handle_s() = default; - am_Handle_s(const am_Handle_e& handleType, const uint16_t& handle); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeInt32Type(); - typeOutputStream.writeUInt16Type(); - } - }; - /** - * struct that holds attribiutes of a mainconnection - */ - /** - * struct that holds attribiutes of a mainconnection - */ - struct am_MainConnection_s: CommonAPI::SerializableStruct { - /** - * the assigned ID - */ - am_mainConnectionID_t mainConnectionID; - /** - * the current connection state - */ - am_ConnectionState_e connectionState; - /** - * the sinkID - */ - am_sinkID_t sinkID; - /** - * the sourceID - */ - am_sourceID_t sourceID; - /** - * the delay of the connection - */ - am_timeSync_t delay; - /** - * the list of sub connection IDs the mainconnection consists of - */ - am_ConnectionID_L listConnectionID; - - am_MainConnection_s() = default; - am_MainConnection_s(const am_mainConnectionID_t& mainConnectionID, const am_ConnectionState_e& connectionState, const am_sinkID_t& sinkID, const am_sourceID_t& sourceID, const am_timeSync_t& delay, const am_ConnectionID_L& listConnectionID); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeInt32Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeInt16Type(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.endWriteVectorType(); - } - }; - /** - * This struct holds the payload of a notification. - */ - /** - * This struct holds the payload of a notification. - */ - struct am_NotificationPayload_s: CommonAPI::SerializableStruct { - /** - * This defines the notification type - */ - am_CustomNotificationType_t type; - /** - * This is finally the value of the notification. It's meaning depends on the - * notificationType - */ - int16_t value; - - am_NotificationPayload_s() = default; - am_NotificationPayload_s(const am_CustomNotificationType_t& type, const int16_t& value); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeInt16Type(); - } - }; - /** - * This struct describes the attribiutes of a sink - */ - /** - * This struct describes the attribiutes of a sink - */ - struct am_Sink_s: CommonAPI::SerializableStruct { - /** - * This is the ID of the sink, it is unique in the system. There are 2 ways, ID - * can be created: either it is assigned during the registration process (in a - * dynamic context, uniqueness will be ensured by the AudioManagerDaemon), or it - * is a fixed (the project has to ensure the uniqueness of the ID). - */ - am_sinkID_t sinkID; - /** - * The name of the sink. Must be unique in the whole system. - */ - std::string name; - /** - * The domainID is the domain the sink belongs to. A sink can only be in one - * domain. - */ - am_domainID_t domainID; - /** - * The sinkClassID references to a sinkClass. With the help of classification, - * rules can be setup to define the system behaviour. - */ - am_sinkClass_t sinkClassID; - /** - * This is the volume of the sink. It is set by the AudioManagerController. - */ - am_volume_t volume; - /** - * This Boolean flag indicates whether a sink is visible to the commandInterface - * or not. If the User must have the possibility to choose the source in the HMI, - * it must be visible. But there are also good reasons for invisible sinks, for - * example if the sink is part of a crossfader or gateway. HMI relevant changes - * in visible sinks will be automatically reported by the daemon to the - * commandInterface. - */ - bool visible; - /** - * This attribute reflects the availability of the sink. There are several reasons - * why a sink could be not available for the moment: for example the shutdown of - * a sink because of overtemperature or over- & undervoltage. The - * availability consists of two pieces of information: - - Availablility: the - * status itself, can be A_AVAILABLE, A_UNAVAILABLE or A_UNKNOWN - - * AvailabilityReason: this informs about the last reason for a change in - * availability. The reasons itself are product specific. - */ - am_Availability_s available; - /** - * This attribute reflects the muteState of the sink. The information is not the - * "real" state of the sink, but the HMI representation for he commandInterface - * controlled by the AudioManagerController. - */ - am_MuteState_e muteState; - /** - * This is the representation of the Volume for the commandInterface. It is used - * by the HMI to set the volume of a sink, the AudioManagerController has to - * transform this into real source and sink volumes. - */ - am_mainVolume_t mainVolume; - /** - * This is the list of soundProperties, that the sink is capable of. The - * soundProperties itself are project specific. For sinks, a possible - * soundProperty could be for example settings. - */ - am_SoundProperty_L listSoundProperties; - /** - * This list holds information about the formats that the Source is capable of - * supporting when delivering audio. - */ - am_ConnectionFormat_L listConnectionFormats; - /** - * This is the list of the available mainSoundProperties. The principle is the - * same than with soundProperties, but they are only visible to the - * CommandInterface. - */ - am_MainSoundProperty_L listMainSoundProperties; - /** - * This is the list of the MainNotificationConfigurations. These notifications - * work on the level of command interface. - */ - am_NotificationConfiguration_L listMainNotificationConfigurations; - /** - * This is the list of the NotificationConfigurations. These notifications work on - * the level of RoutingPlugins. - */ - am_NotificationConfiguration_L listNotificationConfigurations; - - am_Sink_s() = default; - am_Sink_s(const am_sinkID_t& sinkID, const std::string& name, const am_domainID_t& domainID, const am_sinkClass_t& sinkClassID, const am_volume_t& volume, const bool& visible, const am_Availability_s& available, const am_MuteState_e& muteState, const am_mainVolume_t& mainVolume, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, const am_NotificationConfiguration_L& listMainNotificationConfigurations, const am_NotificationConfiguration_L& listNotificationConfigurations); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeStringType(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeInt16Type(); - typeOutputStream.writeBoolType(); - typeOutputStream.beginWriteStructType(); - typeOutputStream.writeInt32Type();typeOutputStream.writeUInt16Type(); - typeOutputStream.endWriteStructType(); - typeOutputStream.writeInt32Type(); - typeOutputStream.writeInt16Type(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.beginWriteStructType(); - typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type(); - typeOutputStream.endWriteStructType(); - typeOutputStream.endWriteVectorType(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.endWriteVectorType(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.beginWriteStructType(); - typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type(); - typeOutputStream.endWriteStructType(); - typeOutputStream.endWriteVectorType(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.beginWriteStructType(); - typeOutputStream.writeUInt16Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type(); - typeOutputStream.endWriteStructType(); - typeOutputStream.endWriteVectorType(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.beginWriteStructType(); - typeOutputStream.writeUInt16Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type(); - typeOutputStream.endWriteStructType(); - typeOutputStream.endWriteVectorType(); - } - }; - /** - * This struct describes the attribiutes of a source - */ - /** - * This struct describes the attribiutes of a source - */ - struct am_Source_s: CommonAPI::SerializableStruct { - /** - * This is the ID of the source, it is unique in the system. There are 2 ways, ID - * can be created: either it is assigned during the registration process (in a - * dynamic context, uniqueness will be ensured by the AudioManagerDaemon), or it - * is a fixed (the project has to ensure the uniqueness of the ID). - */ - am_sourceID_t sourceID; - /** - * The domainID is the domain the source belongs to. A source can only be in one - * domain. - */ - am_domainID_t domainID; - /** - * The name of the source. Must be unique in the whole system. - */ - std::string name; - /** - * the sourceClassID, indicates the class the source is in. This information can - * be used by the Controller to implement different behaviour for different - * classes. - */ - am_sourceClass_t sourceClassID; - /** - * The source state is an indication towards the source if it is actively heard or - * not. The source can use this information to implement features like automatic - * spin down of CD's in case the CD is not the active source or AF following of a - * tuner that is not actively heard. The source state is set by the - * AudioManagerController.There are 3 possible states: - - SS_ON: the source - * is active - SS_OFF: the source is off - SS_PAUSED: the source is paused - * and not active. - */ - am_SourceState_e sourceState; - /** - * This is the volume of the source. It is set by the AudioManagerController. It - * is used to adopt different audiolevels in a system and mixing of sources (e.g. - * navigation hints & music). - */ - am_volume_t volume; - /** - * This Boolean flag indicates whether a source is visible to the commandInterface - * or not. If the User must have the possibility to choose the source in the HMI, - * it must be visible. But there are also good reasons for invisible sources, for - * example if the source is part of a crossfader or gateway. HMI relevant changes - * in visible sources will be automatically reported by the daemon to the - * commandInterface. - */ - bool visible; - /** - * This attribute reflects the availability of the source. There are several - * reasons why a source could be not available for the moment. For example a CD - * player which has no CD entered in the slot can be unavailable, or a USB player - * with no or unreadable stick attached. Other scenarios involve the shutdown of - * a source because of overtemperature or over- & undervoltage. The - * availability consists of two informations: - - Availablility: the status - * itself, can be A_AVAILABLE, A_UNAVAILABLE or A_UNKNOWN - - * AvailabilityReason: this informs about the last reason for a change in - * availability. The reasons itself are product specific. - */ - am_Availability_s available; - /** - * Some special sources can have special behaviors, the are so called "Low Level - * Interrupts". Here the current status is documented. The information can be - * used by the AudioManagerController to react to the changes by for example - * lowering the volume of the mainSources. The two states are - - IS_OFF: the - * interrupt is not active at the moment - IS_INTERRUPTED: the interrupt is - * playing at the moment. - */ - am_InterruptState_e interruptState; - /** - * This is the list of soundProperties, that the source is capable of. The - * soundProperties itself are project specific. For sources, a possible - * soundProperty could be navigation volume offset, for example. - */ - am_SoundProperty_L listSoundProperties; - /** - * This list holds information about the formats that the Source is capable of - * supporting when delivering audio. - */ - am_ConnectionFormat_L listConnectionFormats; - /** - * This is the list of the available mainSoundProperties. The principle is the - * same than with soundProperties, but they are only visible to the - * CommandInterface. - */ - am_MainSoundProperty_L listMainSoundProperties; - /** - * The list of MainNotificationConfigurations. These notifications work on the - * level of CommandInterface. - */ - am_NotificationConfiguration_L listMainNotificationConfigurations; - /** - * The list of MainNotificationConfigurations. These notifications work on the - * level of RoutingInterface. - */ - am_NotificationConfiguration_L listNotificationConfigurations; - - am_Source_s() = default; - am_Source_s(const am_sourceID_t& sourceID, const am_domainID_t& domainID, const std::string& name, const am_sourceClass_t& sourceClassID, const am_SourceState_e& sourceState, const am_volume_t& volume, const bool& visible, const am_Availability_s& available, const am_InterruptState_e& interruptState, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, const am_NotificationConfiguration_L& listMainNotificationConfigurations, const am_NotificationConfiguration_L& listNotificationConfigurations); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeStringType(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeInt32Type(); - typeOutputStream.writeInt16Type(); - typeOutputStream.writeBoolType(); - typeOutputStream.beginWriteStructType(); - typeOutputStream.writeInt32Type();typeOutputStream.writeUInt16Type(); - typeOutputStream.endWriteStructType(); - typeOutputStream.writeInt32Type(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.beginWriteStructType(); - typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type(); - typeOutputStream.endWriteStructType(); - typeOutputStream.endWriteVectorType(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.endWriteVectorType(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.beginWriteStructType(); - typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type(); - typeOutputStream.endWriteStructType(); - typeOutputStream.endWriteVectorType(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.beginWriteStructType(); - typeOutputStream.writeUInt16Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type(); - typeOutputStream.endWriteStructType(); - typeOutputStream.endWriteVectorType(); - typeOutputStream.beginWriteVectorType(); - typeOutputStream.beginWriteStructType(); - typeOutputStream.writeUInt16Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type(); - typeOutputStream.endWriteStructType(); - typeOutputStream.endWriteVectorType(); - } - }; - /** - * This struct describes the attribiutes of a domain - */ - /** - * This struct describes the attribiutes of a domain - */ - struct am_Domain_s: CommonAPI::SerializableStruct { - /** - * the domain ID - */ - am_domainID_t domainID; - /** - * the name of the domain - */ - std::string name; - /** - * the busname. This is equal to a plugin name and is used to dispatch messages to - * the elements of a plugin - */ - std::string busname; - /** - * the name of the node - */ - std::string nodename; - /** - * indicated if the domain is independent at startup or not - */ - bool early; - /** - * indicates if the domain registration is complete or not - */ - bool complete; - /** - * the current domain state - */ - am_DomainState_e state; - - am_Domain_s() = default; - am_Domain_s(const am_domainID_t& domainID, const std::string& name, const std::string& busname, const std::string& nodename, const bool& early, const bool& complete, const am_DomainState_e& state); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeStringType(); - typeOutputStream.writeStringType(); - typeOutputStream.writeStringType(); - typeOutputStream.writeBoolType(); - typeOutputStream.writeBoolType(); - typeOutputStream.writeInt32Type(); - } - }; - /** - * a connection - */ - /** - * a connection - */ - struct am_Connection_s: CommonAPI::SerializableStruct { - /** - * the assigned ID - */ - am_connectionID_t connectionID; - /** - * the source the audio flows from - */ - am_sourceID_t sourceID; - /** - * the sink the audio flows to - */ - am_sinkID_t sinkID; - /** - * the delay of the conneciton - */ - am_timeSync_t delay; - /** - * the used connectionformat - */ - am_CustomConnectionFormat_t connectionFormat; - - am_Connection_s() = default; - am_Connection_s(const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_timeSync_t& delay, const am_CustomConnectionFormat_t& connectionFormat); - - - virtual void readFromInputStream(CommonAPI::InputStream& inputStream); - virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const; - - static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) { - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeUInt16Type(); - typeOutputStream.writeInt16Type(); - typeOutputStream.writeUInt16Type(); - } - }; - -inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_Availability_e& enumValue) { - return inputStream.readEnumValue<int32_t>(enumValue); -} - -inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_Availability_e& enumValue) { - return outputStream.writeEnumValue(static_cast<int32_t>(enumValue)); -} - -struct am_Availability_eComparator { - inline bool operator()(const am_Availability_e& lhs, const am_Availability_e& rhs) const { - return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs); - } -}; - -inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_HotSink_e& enumValue) { - return inputStream.readEnumValue<int32_t>(enumValue); -} - -inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_HotSink_e& enumValue) { - return outputStream.writeEnumValue(static_cast<int32_t>(enumValue)); -} - -struct am_HotSink_eComparator { - inline bool operator()(const am_HotSink_e& lhs, const am_HotSink_e& rhs) const { - return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs); - } -}; - -inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_ConnectionState_e& enumValue) { - return inputStream.readEnumValue<int32_t>(enumValue); -} - -inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_ConnectionState_e& enumValue) { - return outputStream.writeEnumValue(static_cast<int32_t>(enumValue)); -} - -struct am_ConnectionState_eComparator { - inline bool operator()(const am_ConnectionState_e& lhs, const am_ConnectionState_e& rhs) const { - return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs); - } -}; - -inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_DomainState_e& enumValue) { - return inputStream.readEnumValue<int32_t>(enumValue); -} - -inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_DomainState_e& enumValue) { - return outputStream.writeEnumValue(static_cast<int32_t>(enumValue)); -} - -struct am_DomainState_eComparator { - inline bool operator()(const am_DomainState_e& lhs, const am_DomainState_e& rhs) const { - return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs); - } -}; - -inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_EarlyDataType_e& enumValue) { - return inputStream.readEnumValue<int32_t>(enumValue); -} - -inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_EarlyDataType_e& enumValue) { - return outputStream.writeEnumValue(static_cast<int32_t>(enumValue)); -} - -struct am_EarlyDataType_eComparator { - inline bool operator()(const am_EarlyDataType_e& lhs, const am_EarlyDataType_e& rhs) const { - return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs); - } -}; - -inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_Error_e& enumValue) { - return inputStream.readEnumValue<int32_t>(enumValue); -} - -inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_Error_e& enumValue) { - return outputStream.writeEnumValue(static_cast<int32_t>(enumValue)); -} - -struct am_Error_eComparator { - inline bool operator()(const am_Error_e& lhs, const am_Error_e& rhs) const { - return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs); - } -}; - -inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_MuteState_e& enumValue) { - return inputStream.readEnumValue<int32_t>(enumValue); -} - -inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_MuteState_e& enumValue) { - return outputStream.writeEnumValue(static_cast<int32_t>(enumValue)); -} - -struct am_MuteState_eComparator { - inline bool operator()(const am_MuteState_e& lhs, const am_MuteState_e& rhs) const { - return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs); - } -}; - -inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_InterruptState_e& enumValue) { - return inputStream.readEnumValue<int32_t>(enumValue); -} - -inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_InterruptState_e& enumValue) { - return outputStream.writeEnumValue(static_cast<int32_t>(enumValue)); -} - -struct am_InterruptState_eComparator { - inline bool operator()(const am_InterruptState_e& lhs, const am_InterruptState_e& rhs) const { - return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs); - } -}; - -inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_VolumeType_e& enumValue) { - return inputStream.readEnumValue<int32_t>(enumValue); -} - -inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_VolumeType_e& enumValue) { - return outputStream.writeEnumValue(static_cast<int32_t>(enumValue)); -} - -struct am_VolumeType_eComparator { - inline bool operator()(const am_VolumeType_e& lhs, const am_VolumeType_e& rhs) const { - return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs); - } -}; - -inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_NotificationStatus_e& enumValue) { - return inputStream.readEnumValue<int32_t>(enumValue); -} - -inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_NotificationStatus_e& enumValue) { - return outputStream.writeEnumValue(static_cast<int32_t>(enumValue)); -} - -struct am_NotificationStatus_eComparator { - inline bool operator()(const am_NotificationStatus_e& lhs, const am_NotificationStatus_e& rhs) const { - return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs); - } -}; - -inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_Handle_e& enumValue) { - return inputStream.readEnumValue<int32_t>(enumValue); -} - -inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_Handle_e& enumValue) { - return outputStream.writeEnumValue(static_cast<int32_t>(enumValue)); -} - -struct am_Handle_eComparator { - inline bool operator()(const am_Handle_e& lhs, const am_Handle_e& rhs) const { - return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs); - } -}; - -inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_SourceState_e& enumValue) { - return inputStream.readEnumValue<int32_t>(enumValue); -} - -inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_SourceState_e& enumValue) { - return outputStream.writeEnumValue(static_cast<int32_t>(enumValue)); -} - -struct am_SourceState_eComparator { - inline bool operator()(const am_SourceState_e& lhs, const am_SourceState_e& rhs) const { - return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs); - } -}; - -inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_RoutingReady_e& enumValue) { - return inputStream.readEnumValue<int32_t>(enumValue); -} - -inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_RoutingReady_e& enumValue) { - return outputStream.writeEnumValue(static_cast<int32_t>(enumValue)); -} - -struct am_RoutingReady_eComparator { - inline bool operator()(const am_RoutingReady_e& lhs, const am_RoutingReady_e& rhs) const { - return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs); - } -}; - -bool operator==(const am_Route_s& lhs, const am_Route_s& rhs); -inline bool operator!=(const am_Route_s& lhs, const am_Route_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_Availability_s& lhs, const am_Availability_s& rhs); -inline bool operator!=(const am_Availability_s& lhs, const am_Availability_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_ClassProperty_s& lhs, const am_ClassProperty_s& rhs); -inline bool operator!=(const am_ClassProperty_s& lhs, const am_ClassProperty_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_Crossfader_s& lhs, const am_Crossfader_s& rhs); -inline bool operator!=(const am_Crossfader_s& lhs, const am_Crossfader_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_Gateway_s& lhs, const am_Gateway_s& rhs); -inline bool operator!=(const am_Gateway_s& lhs, const am_Gateway_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_RoutingElement_s& lhs, const am_RoutingElement_s& rhs); -inline bool operator!=(const am_RoutingElement_s& lhs, const am_RoutingElement_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_SoundProperty_s& lhs, const am_SoundProperty_s& rhs); -inline bool operator!=(const am_SoundProperty_s& lhs, const am_SoundProperty_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_SystemProperty_s& lhs, const am_SystemProperty_s& rhs); -inline bool operator!=(const am_SystemProperty_s& lhs, const am_SystemProperty_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_SinkClass_s& lhs, const am_SinkClass_s& rhs); -inline bool operator!=(const am_SinkClass_s& lhs, const am_SinkClass_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_SourceClass_s& lhs, const am_SourceClass_s& rhs); -inline bool operator!=(const am_SourceClass_s& lhs, const am_SourceClass_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_SourceType_s& lhs, const am_SourceType_s& rhs); -inline bool operator!=(const am_SourceType_s& lhs, const am_SourceType_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_SinkType_s& lhs, const am_SinkType_s& rhs); -inline bool operator!=(const am_SinkType_s& lhs, const am_SinkType_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_Handle_s& lhs, const am_Handle_s& rhs); -inline bool operator!=(const am_Handle_s& lhs, const am_Handle_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_MainSoundProperty_s& lhs, const am_MainSoundProperty_s& rhs); -inline bool operator!=(const am_MainSoundProperty_s& lhs, const am_MainSoundProperty_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_MainConnectionType_s& lhs, const am_MainConnectionType_s& rhs); -inline bool operator!=(const am_MainConnectionType_s& lhs, const am_MainConnectionType_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_MainConnection_s& lhs, const am_MainConnection_s& rhs); -inline bool operator!=(const am_MainConnection_s& lhs, const am_MainConnection_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_NotificationPayload_s& lhs, const am_NotificationPayload_s& rhs); -inline bool operator!=(const am_NotificationPayload_s& lhs, const am_NotificationPayload_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_NotificationConfiguration_s& lhs, const am_NotificationConfiguration_s& rhs); -inline bool operator!=(const am_NotificationConfiguration_s& lhs, const am_NotificationConfiguration_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_Sink_s& lhs, const am_Sink_s& rhs); -inline bool operator!=(const am_Sink_s& lhs, const am_Sink_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_Source_s& lhs, const am_Source_s& rhs); -inline bool operator!=(const am_Source_s& lhs, const am_Source_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_Domain_s& lhs, const am_Domain_s& rhs); -inline bool operator!=(const am_Domain_s& lhs, const am_Domain_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_EarlyData_s& lhs, const am_EarlyData_s& rhs); -inline bool operator!=(const am_EarlyData_s& lhs, const am_EarlyData_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_Connection_s& lhs, const am_Connection_s& rhs); -inline bool operator!=(const am_Connection_s& lhs, const am_Connection_s& rhs) { - return !(lhs == rhs); -} -bool operator==(const am_Volumes_s& lhs, const am_Volumes_s& rhs); -inline bool operator!=(const am_Volumes_s& lhs, const am_Volumes_s& rhs) { - return !(lhs == rhs); -} - - -static inline const char* getTypeCollectionName() { - static const char* typeCollectionName = "org.genivi.am"; - return typeCollectionName; -} - -inline CommonAPI::Version getTypeCollectionVersion() { - return CommonAPI::Version(1, 0); -} - -} // namespace am - -} // namespace genivi -} // namespace org - -namespace CommonAPI { - - template<> - struct BasicTypeWriter<org::genivi::am::am_Availability_e> { - inline static void writeType (CommonAPI::TypeOutputStream& typeStream) { - typeStream.writeInt32EnumType(); - } - }; - - template<> - struct InputStreamVectorHelper<org::genivi::am::am_Availability_e> { - static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_Availability_e>& vectorValue) { - inputStream.beginReadInt32EnumVector(); - } - }; - - template <> - struct OutputStreamVectorHelper<org::genivi::am::am_Availability_e> { - static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_Availability_e>& vectorValue) { - outputStream.beginWriteInt32EnumVector(vectorValue.size()); - } - }; - template<> - struct BasicTypeWriter<org::genivi::am::am_HotSink_e> { - inline static void writeType (CommonAPI::TypeOutputStream& typeStream) { - typeStream.writeInt32EnumType(); - } - }; - - template<> - struct InputStreamVectorHelper<org::genivi::am::am_HotSink_e> { - static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_HotSink_e>& vectorValue) { - inputStream.beginReadInt32EnumVector(); - } - }; - - template <> - struct OutputStreamVectorHelper<org::genivi::am::am_HotSink_e> { - static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_HotSink_e>& vectorValue) { - outputStream.beginWriteInt32EnumVector(vectorValue.size()); - } - }; - template<> - struct BasicTypeWriter<org::genivi::am::am_ConnectionState_e> { - inline static void writeType (CommonAPI::TypeOutputStream& typeStream) { - typeStream.writeInt32EnumType(); - } - }; - - template<> - struct InputStreamVectorHelper<org::genivi::am::am_ConnectionState_e> { - static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_ConnectionState_e>& vectorValue) { - inputStream.beginReadInt32EnumVector(); - } - }; - - template <> - struct OutputStreamVectorHelper<org::genivi::am::am_ConnectionState_e> { - static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_ConnectionState_e>& vectorValue) { - outputStream.beginWriteInt32EnumVector(vectorValue.size()); - } - }; - template<> - struct BasicTypeWriter<org::genivi::am::am_DomainState_e> { - inline static void writeType (CommonAPI::TypeOutputStream& typeStream) { - typeStream.writeInt32EnumType(); - } - }; - - template<> - struct InputStreamVectorHelper<org::genivi::am::am_DomainState_e> { - static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_DomainState_e>& vectorValue) { - inputStream.beginReadInt32EnumVector(); - } - }; - - template <> - struct OutputStreamVectorHelper<org::genivi::am::am_DomainState_e> { - static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_DomainState_e>& vectorValue) { - outputStream.beginWriteInt32EnumVector(vectorValue.size()); - } - }; - template<> - struct BasicTypeWriter<org::genivi::am::am_EarlyDataType_e> { - inline static void writeType (CommonAPI::TypeOutputStream& typeStream) { - typeStream.writeInt32EnumType(); - } - }; - - template<> - struct InputStreamVectorHelper<org::genivi::am::am_EarlyDataType_e> { - static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_EarlyDataType_e>& vectorValue) { - inputStream.beginReadInt32EnumVector(); - } - }; - - template <> - struct OutputStreamVectorHelper<org::genivi::am::am_EarlyDataType_e> { - static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_EarlyDataType_e>& vectorValue) { - outputStream.beginWriteInt32EnumVector(vectorValue.size()); - } - }; - template<> - struct BasicTypeWriter<org::genivi::am::am_Error_e> { - inline static void writeType (CommonAPI::TypeOutputStream& typeStream) { - typeStream.writeInt32EnumType(); - } - }; - - template<> - struct InputStreamVectorHelper<org::genivi::am::am_Error_e> { - static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_Error_e>& vectorValue) { - inputStream.beginReadInt32EnumVector(); - } - }; - - template <> - struct OutputStreamVectorHelper<org::genivi::am::am_Error_e> { - static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_Error_e>& vectorValue) { - outputStream.beginWriteInt32EnumVector(vectorValue.size()); - } - }; - template<> - struct BasicTypeWriter<org::genivi::am::am_MuteState_e> { - inline static void writeType (CommonAPI::TypeOutputStream& typeStream) { - typeStream.writeInt32EnumType(); - } - }; - - template<> - struct InputStreamVectorHelper<org::genivi::am::am_MuteState_e> { - static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_MuteState_e>& vectorValue) { - inputStream.beginReadInt32EnumVector(); - } - }; - - template <> - struct OutputStreamVectorHelper<org::genivi::am::am_MuteState_e> { - static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_MuteState_e>& vectorValue) { - outputStream.beginWriteInt32EnumVector(vectorValue.size()); - } - }; - template<> - struct BasicTypeWriter<org::genivi::am::am_InterruptState_e> { - inline static void writeType (CommonAPI::TypeOutputStream& typeStream) { - typeStream.writeInt32EnumType(); - } - }; - - template<> - struct InputStreamVectorHelper<org::genivi::am::am_InterruptState_e> { - static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_InterruptState_e>& vectorValue) { - inputStream.beginReadInt32EnumVector(); - } - }; - - template <> - struct OutputStreamVectorHelper<org::genivi::am::am_InterruptState_e> { - static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_InterruptState_e>& vectorValue) { - outputStream.beginWriteInt32EnumVector(vectorValue.size()); - } - }; - template<> - struct BasicTypeWriter<org::genivi::am::am_VolumeType_e> { - inline static void writeType (CommonAPI::TypeOutputStream& typeStream) { - typeStream.writeInt32EnumType(); - } - }; - - template<> - struct InputStreamVectorHelper<org::genivi::am::am_VolumeType_e> { - static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_VolumeType_e>& vectorValue) { - inputStream.beginReadInt32EnumVector(); - } - }; - - template <> - struct OutputStreamVectorHelper<org::genivi::am::am_VolumeType_e> { - static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_VolumeType_e>& vectorValue) { - outputStream.beginWriteInt32EnumVector(vectorValue.size()); - } - }; - template<> - struct BasicTypeWriter<org::genivi::am::am_NotificationStatus_e> { - inline static void writeType (CommonAPI::TypeOutputStream& typeStream) { - typeStream.writeInt32EnumType(); - } - }; - - template<> - struct InputStreamVectorHelper<org::genivi::am::am_NotificationStatus_e> { - static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_NotificationStatus_e>& vectorValue) { - inputStream.beginReadInt32EnumVector(); - } - }; - - template <> - struct OutputStreamVectorHelper<org::genivi::am::am_NotificationStatus_e> { - static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_NotificationStatus_e>& vectorValue) { - outputStream.beginWriteInt32EnumVector(vectorValue.size()); - } - }; - template<> - struct BasicTypeWriter<org::genivi::am::am_Handle_e> { - inline static void writeType (CommonAPI::TypeOutputStream& typeStream) { - typeStream.writeInt32EnumType(); - } - }; - - template<> - struct InputStreamVectorHelper<org::genivi::am::am_Handle_e> { - static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_Handle_e>& vectorValue) { - inputStream.beginReadInt32EnumVector(); - } - }; - - template <> - struct OutputStreamVectorHelper<org::genivi::am::am_Handle_e> { - static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_Handle_e>& vectorValue) { - outputStream.beginWriteInt32EnumVector(vectorValue.size()); - } - }; - template<> - struct BasicTypeWriter<org::genivi::am::am_SourceState_e> { - inline static void writeType (CommonAPI::TypeOutputStream& typeStream) { - typeStream.writeInt32EnumType(); - } - }; - - template<> - struct InputStreamVectorHelper<org::genivi::am::am_SourceState_e> { - static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_SourceState_e>& vectorValue) { - inputStream.beginReadInt32EnumVector(); - } - }; - - template <> - struct OutputStreamVectorHelper<org::genivi::am::am_SourceState_e> { - static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_SourceState_e>& vectorValue) { - outputStream.beginWriteInt32EnumVector(vectorValue.size()); - } - }; - template<> - struct BasicTypeWriter<org::genivi::am::am_RoutingReady_e> { - inline static void writeType (CommonAPI::TypeOutputStream& typeStream) { - typeStream.writeInt32EnumType(); - } - }; - - template<> - struct InputStreamVectorHelper<org::genivi::am::am_RoutingReady_e> { - static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_RoutingReady_e>& vectorValue) { - inputStream.beginReadInt32EnumVector(); - } - }; - - template <> - struct OutputStreamVectorHelper<org::genivi::am::am_RoutingReady_e> { - static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_RoutingReady_e>& vectorValue) { - outputStream.beginWriteInt32EnumVector(vectorValue.size()); - } - }; - -} - - -namespace std { - //Hash for am_Availability_e - template<> - struct hash<org::genivi::am::am_Availability_e> { - inline size_t operator()(const org::genivi::am::am_Availability_e& am_Availability_e) const { - return static_cast<int32_t>(am_Availability_e); - } - }; - //Hash for am_HotSink_e - template<> - struct hash<org::genivi::am::am_HotSink_e> { - inline size_t operator()(const org::genivi::am::am_HotSink_e& am_HotSink_e) const { - return static_cast<int32_t>(am_HotSink_e); - } - }; - //Hash for am_ConnectionState_e - template<> - struct hash<org::genivi::am::am_ConnectionState_e> { - inline size_t operator()(const org::genivi::am::am_ConnectionState_e& am_ConnectionState_e) const { - return static_cast<int32_t>(am_ConnectionState_e); - } - }; - //Hash for am_DomainState_e - template<> - struct hash<org::genivi::am::am_DomainState_e> { - inline size_t operator()(const org::genivi::am::am_DomainState_e& am_DomainState_e) const { - return static_cast<int32_t>(am_DomainState_e); - } - }; - //Hash for am_EarlyDataType_e - template<> - struct hash<org::genivi::am::am_EarlyDataType_e> { - inline size_t operator()(const org::genivi::am::am_EarlyDataType_e& am_EarlyDataType_e) const { - return static_cast<int32_t>(am_EarlyDataType_e); - } - }; - //Hash for am_Error_e - template<> - struct hash<org::genivi::am::am_Error_e> { - inline size_t operator()(const org::genivi::am::am_Error_e& am_Error_e) const { - return static_cast<int32_t>(am_Error_e); - } - }; - //Hash for am_MuteState_e - template<> - struct hash<org::genivi::am::am_MuteState_e> { - inline size_t operator()(const org::genivi::am::am_MuteState_e& am_MuteState_e) const { - return static_cast<int32_t>(am_MuteState_e); - } - }; - //Hash for am_InterruptState_e - template<> - struct hash<org::genivi::am::am_InterruptState_e> { - inline size_t operator()(const org::genivi::am::am_InterruptState_e& am_InterruptState_e) const { - return static_cast<int32_t>(am_InterruptState_e); - } - }; - //Hash for am_VolumeType_e - template<> - struct hash<org::genivi::am::am_VolumeType_e> { - inline size_t operator()(const org::genivi::am::am_VolumeType_e& am_VolumeType_e) const { - return static_cast<int32_t>(am_VolumeType_e); - } - }; - //Hash for am_NotificationStatus_e - template<> - struct hash<org::genivi::am::am_NotificationStatus_e> { - inline size_t operator()(const org::genivi::am::am_NotificationStatus_e& am_NotificationStatus_e) const { - return static_cast<int32_t>(am_NotificationStatus_e); - } - }; - //Hash for am_Handle_e - template<> - struct hash<org::genivi::am::am_Handle_e> { - inline size_t operator()(const org::genivi::am::am_Handle_e& am_Handle_e) const { - return static_cast<int32_t>(am_Handle_e); - } - }; - //Hash for am_SourceState_e - template<> - struct hash<org::genivi::am::am_SourceState_e> { - inline size_t operator()(const org::genivi::am::am_SourceState_e& am_SourceState_e) const { - return static_cast<int32_t>(am_SourceState_e); - } - }; - //Hash for am_RoutingReady_e - template<> - struct hash<org::genivi::am::am_RoutingReady_e> { - inline size_t operator()(const org::genivi::am::am_RoutingReady_e& am_RoutingReady_e) const { - return static_cast<int32_t>(am_RoutingReady_e); - } - }; -} - -#endif // ORG_GENIVI_am_H_ diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControl.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControl.h deleted file mode 100644 index 5cb6ccb..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControl.h +++ /dev/null @@ -1,65 +0,0 @@ -/* -* 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/. -*/ -/** - * This class implements everything from Audiomanager -> RoutingAdapter - * @author Christian Mueller - */ -#ifndef ORG_GENIVI_AM_Routing_Control_H_ -#define ORG_GENIVI_AM_Routing_Control_H_ - - - - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include <CommonAPI/types.h> - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace org { -namespace genivi { -namespace am { - -class RoutingControl { - public: - virtual ~RoutingControl() { } - - static inline const char* getInterfaceId(); - static inline CommonAPI::Version getInterfaceVersion(); -}; - -const char* RoutingControl::getInterfaceId() { - static const char* interfaceId = "org.genivi.am.RoutingControl"; - return interfaceId; -} - -CommonAPI::Version RoutingControl::getInterfaceVersion() { - return CommonAPI::Version(1, 0); -} - - -} // namespace am -} // namespace genivi -} // namespace org - -namespace CommonAPI { - -} - - -namespace std { - //hashes for types - - //hashes for error types -} - -#endif // ORG_GENIVI_AM_Routing_Control_H_ diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusProxy.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusProxy.cpp deleted file mode 100644 index e32836f..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusProxy.cpp +++ /dev/null @@ -1,409 +0,0 @@ -/* -* 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/. -*/ -/** - * This class implements everything from Audiomanager -> RoutingAdapter - * @author Christian Mueller - */ -#include "RoutingControlDBusProxy.h" - -namespace org { -namespace genivi { -namespace am { - -std::shared_ptr<CommonAPI::DBus::DBusProxy> createRoutingControlDBusProxy( - const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory, - const std::string& commonApiAddress, - const std::string& interfaceName, - const std::string& busName, - const std::string& objectPath, - const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection) { - return std::make_shared<RoutingControlDBusProxy>(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection); -} - -__attribute__((constructor)) void registerRoutingControlDBusProxy(void) { - CommonAPI::DBus::DBusFactory::registerProxyFactoryMethod(RoutingControl::getInterfaceId(), - &createRoutingControlDBusProxy); -} - -RoutingControlDBusProxy::RoutingControlDBusProxy( - const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory, - const std::string& commonApiAddress, - const std::string& interfaceName, - const std::string& busName, - const std::string& objectPath, - const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection): - CommonAPI::DBus::DBusProxy(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyconnection) - { - } - - - -/** - * aborts an asynchronous action. -(at)return E_OK on success, E_UNKNOWN on error, - * E_NON_EXISTENT if handle was not found - */ -void RoutingControlDBusProxy::asyncAbort(const am_Handle_s& handle, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "asyncAbort", - "(iq)", - handle, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncAbortAsync(const am_Handle_s& handle, AsyncAbortAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "asyncAbort", - "(iq)", - handle, - std::move(callback)); -} -/** - * connects a source to a sink -(at)return E_OK on success, E_UNKNOWN on error, - * E_WRONG_FORMAT in case am_CustomConnectionFormat_t does not match - */ -void RoutingControlDBusProxy::asyncConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_CustomConnectionFormat_t& connectionFormat, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t, am_sourceID_t, am_sinkID_t, am_CustomConnectionFormat_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "asyncConnect", - "(iq)qqqq", - handle, connectionID, sourceID, sinkID, connectionFormat, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_CustomConnectionFormat_t& connectionFormat, AsyncConnectAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t, am_sourceID_t, am_sinkID_t, am_CustomConnectionFormat_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "asyncConnect", - "(iq)qqqq", - handle, connectionID, sourceID, sinkID, connectionFormat, - std::move(callback)); -} -/** - * disconnect a connection with given connectionID -(at)return E_OK on success, - * E_UNKNOWN on error, E_NON_EXISTENT if connection was not found - */ -void RoutingControlDBusProxy::asyncDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "asyncDisconnect", - "(iq)q", - handle, connectionID, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, AsyncDisconnectAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "asyncDisconnect", - "(iq)q", - handle, connectionID, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlDBusProxy::asyncSetSinkVolume(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_volume_t, am_CustomRampType_t, am_time_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "asyncSetSinkVolume", - "(iq)qnqn", - handle, sinkID, volume, ramp, time, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSinkVolumeAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, AsyncSetSinkVolumeAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_volume_t, am_CustomRampType_t, am_time_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "asyncSetSinkVolume", - "(iq)qnqn", - handle, sinkID, volume, ramp, time, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlDBusProxy::asyncSetSourceVolume(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_volume_t, am_CustomRampType_t, am_time_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "asyncSetSourceVolume", - "(iq)qnqn", - handle, sourceID, volume, ramp, time, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSourceVolumeAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, AsyncSetSourceVolumeAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_volume_t, am_CustomRampType_t, am_time_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "asyncSetSourceVolume", - "(iq)qnqn", - handle, sourceID, volume, ramp, time, - std::move(callback)); -} -/** - * This function is used to set the source state of a particular - * source. -(at)return E_OK on success, E_UNKNOWN on error - */ -void RoutingControlDBusProxy::asyncSetSourceState(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_SourceState_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "asyncSetSourceState", - "(iq)qi", - handle, sourceID, state, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSourceStateAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, AsyncSetSourceStateAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_SourceState_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "asyncSetSourceState", - "(iq)qi", - handle, sourceID, state, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlDBusProxy::asyncSetSinkSoundProperties(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_SoundProperty_L>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "asyncSetSinkSoundProperties", - "(iq)qa(qn)", - handle, sinkID, listSoundProperties, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, AsyncSetSinkSoundPropertiesAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_SoundProperty_L>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "asyncSetSinkSoundProperties", - "(iq)qa(qn)", - handle, sinkID, listSoundProperties, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlDBusProxy::asyncSetSinkSoundProperty(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_SoundProperty_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "asyncSetSinkSoundProperty", - "(iq)q(qn)", - handle, sinkID, soundProperty, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, AsyncSetSinkSoundPropertyAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_SoundProperty_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "asyncSetSinkSoundProperty", - "(iq)q(qn)", - handle, sinkID, soundProperty, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlDBusProxy::asyncSetSourceSoundProperties(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_SoundProperty_L>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "asyncSetSourceSoundProperties", - "(iq)qa(qn)", - handle, sourceID, listSoundProperties, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, AsyncSetSourceSoundPropertiesAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_SoundProperty_L>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "asyncSetSourceSoundProperties", - "(iq)qa(qn)", - handle, sourceID, listSoundProperties, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlDBusProxy::asyncSetSourceSoundProperty(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_SoundProperty_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "asyncSetSourceSoundProperty", - "(iq)q(qn)", - handle, sourceID, soundProperty, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, AsyncSetSourceSoundPropertyAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_SoundProperty_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "asyncSetSourceSoundProperty", - "(iq)q(qn)", - handle, sourceID, soundProperty, - std::move(callback)); -} -/** - * this function triggers crossfading. -(at)return E_OK on success, E_UNKNOWN on - * error - */ -void RoutingControlDBusProxy::asyncCrossFade(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_CustomRampType_t& rampType, const am_time_t& time, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_crossfaderID_t, am_HotSink_e, am_CustomRampType_t, am_time_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "asyncCrossFade", - "(iq)qiqn", - handle, crossfaderID, hotSink, rampType, time, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncCrossFadeAsync(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_CustomRampType_t& rampType, const am_time_t& time, AsyncCrossFadeAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_crossfaderID_t, am_HotSink_e, am_CustomRampType_t, am_time_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "asyncCrossFade", - "(iq)qiqn", - handle, crossfaderID, hotSink, rampType, time, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlDBusProxy::setDomainState(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_DomainState_e>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply( - *this, - "setDomainState", - "qi", - domainID, domainState, - callStatus - , error); -} -std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::setDomainStateAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, SetDomainStateAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_DomainState_e>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync( - *this, - "setDomainState", - "qi", - domainID, domainState, - std::move(callback)); -} -void RoutingControlDBusProxy::asyncSetVolumes(const am_Handle_s& handle, const am_Volumes_L& volumes, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Volumes_L>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "asyncSetVolumes", - "(iq)a(i(yv)nqn)", - handle, volumes, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& volumes, AsyncSetVolumesAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Volumes_L>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "asyncSetVolumes", - "(iq)a(i(yv)nqn)", - handle, volumes, - std::move(callback)); -} -void RoutingControlDBusProxy::asyncSetSinkNotificationConfiguration(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_NotificationConfiguration_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "asyncSetSinkNotificationConfiguration", - "(iq)q(qin)", - handle, sinkID, notificationConfiguration, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSinkNotificationConfigurationAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_NotificationConfiguration_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "asyncSetSinkNotificationConfiguration", - "(iq)q(qin)", - handle, sinkID, notificationConfiguration, - std::move(callback)); -} -void RoutingControlDBusProxy::asyncSetSourceNotificationConfiguration(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_NotificationConfiguration_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "asyncSetSourceNotificationConfiguration", - "(iq)q(qin)", - handle, sourceID, notificationConfiguration, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSourceNotificationConfigurationAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_NotificationConfiguration_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "asyncSetSourceNotificationConfiguration", - "(iq)q(qin)", - handle, sourceID, notificationConfiguration, - std::move(callback)); -} - - - -void RoutingControlDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const { - ownVersionMajor = 1; - ownVersionMinor = 0; -} - -} // namespace am -} // namespace genivi -} // namespace org diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusProxy.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusProxy.h deleted file mode 100644 index f9036d4..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusProxy.h +++ /dev/null @@ -1,159 +0,0 @@ -/* -* 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/. -*/ -/** - * This class implements everything from Audiomanager -> RoutingAdapter - * @author Christian Mueller - */ -#ifndef ORG_GENIVI_AM_Routing_Control_DBUS_PROXY_H_ -#define ORG_GENIVI_AM_Routing_Control_DBUS_PROXY_H_ - -#include <org/genivi/am/RoutingControlProxyBase.h> - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include <CommonAPI/DBus/DBusFactory.h> -#include <CommonAPI/DBus/DBusProxy.h> - -#undef COMMONAPI_INTERNAL_COMPILATION - -#include <string> - -namespace org { -namespace genivi { -namespace am { - -class RoutingControlDBusProxy: virtual public RoutingControlProxyBase, virtual public CommonAPI::DBus::DBusProxy { - public: - RoutingControlDBusProxy( - const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory, - const std::string& commonApiAddress, - const std::string& interfaceName, - const std::string& busName, - const std::string& objectPath, - const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection); - - virtual ~RoutingControlDBusProxy() { } - - - - /** - * aborts an asynchronous action. - (at)return E_OK on success, E_UNKNOWN on error, - * E_NON_EXISTENT if handle was not found - */ - virtual void asyncAbort(const am_Handle_s& handle, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> asyncAbortAsync(const am_Handle_s& handle, AsyncAbortAsyncCallback callback); - /** - * connects a source to a sink - (at)return E_OK on success, E_UNKNOWN on error, - * E_WRONG_FORMAT in case am_CustomConnectionFormat_t does not match - */ - virtual void asyncConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_CustomConnectionFormat_t& connectionFormat, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> asyncConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_CustomConnectionFormat_t& connectionFormat, AsyncConnectAsyncCallback callback); - /** - * disconnect a connection with given connectionID - (at)return E_OK on success, - * E_UNKNOWN on error, E_NON_EXISTENT if connection was not found - */ - virtual void asyncDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> asyncDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, AsyncDisconnectAsyncCallback callback); - /** - * 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 - */ - virtual void asyncSetSinkVolume(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> asyncSetSinkVolumeAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, AsyncSetSinkVolumeAsyncCallback callback); - /** - * 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 - */ - virtual void asyncSetSourceVolume(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> asyncSetSourceVolumeAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, AsyncSetSourceVolumeAsyncCallback callback); - /** - * This function is used to set the source state of a particular - * source. - (at)return E_OK on success, E_UNKNOWN on error - */ - virtual void asyncSetSourceState(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> asyncSetSourceStateAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, AsyncSetSourceStateAsyncCallback callback); - /** - * 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 - */ - virtual void asyncSetSinkSoundProperties(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, AsyncSetSinkSoundPropertiesAsyncCallback callback); - /** - * 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 - */ - virtual void asyncSetSinkSoundProperty(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, AsyncSetSinkSoundPropertyAsyncCallback callback); - /** - * 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 - */ - virtual void asyncSetSourceSoundProperties(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, AsyncSetSourceSoundPropertiesAsyncCallback callback); - /** - * 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 - */ - virtual void asyncSetSourceSoundProperty(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, AsyncSetSourceSoundPropertyAsyncCallback callback); - /** - * this function triggers crossfading. - (at)return E_OK on success, E_UNKNOWN on - * error - */ - virtual void asyncCrossFade(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_CustomRampType_t& rampType, const am_time_t& time, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> asyncCrossFadeAsync(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_CustomRampType_t& rampType, const am_time_t& time, AsyncCrossFadeAsyncCallback callback); - /** - * 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 - */ - virtual void setDomainState(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> setDomainStateAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, SetDomainStateAsyncCallback callback); - virtual void asyncSetVolumes(const am_Handle_s& handle, const am_Volumes_L& volumes, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> asyncSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& volumes, AsyncSetVolumesAsyncCallback callback); - virtual void asyncSetSinkNotificationConfiguration(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> asyncSetSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSinkNotificationConfigurationAsyncCallback callback); - virtual void asyncSetSourceNotificationConfiguration(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> asyncSetSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSourceNotificationConfigurationAsyncCallback callback); - - - virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const; - - private: - - -}; - - - -} // namespace am -} // namespace genivi -} // namespace org - -#endif // ORG_GENIVI_AM_Routing_Control_DBUS_PROXY_H_ diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.cpp deleted file mode 100644 index 8563781..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.cpp +++ /dev/null @@ -1,467 +0,0 @@ -/* -* 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 "RoutingControlDBusStubAdapter.h" -#include <org/genivi/am/RoutingControl.h> - -namespace org { -namespace genivi { -namespace am { - -std::shared_ptr<CommonAPI::DBus::DBusStubAdapter> createRoutingControlDBusStubAdapter( - const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory, - const std::string& commonApiAddress, - const std::string& interfaceName, - const std::string& busName, - const std::string& objectPath, - const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection, - const std::shared_ptr<CommonAPI::StubBase>& stubBase) { - return std::make_shared<RoutingControlDBusStubAdapter>(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection, stubBase); -} - -__attribute__((constructor)) void registerRoutingControlDBusStubAdapter(void) { - CommonAPI::DBus::DBusFactory::registerAdapterFactoryMethod(RoutingControl::getInterfaceId(), - &createRoutingControlDBusStubAdapter); -} - - - -RoutingControlDBusStubAdapterInternal::~RoutingControlDBusStubAdapterInternal() { - deactivateManagedInstances(); - RoutingControlDBusStubAdapterHelper::deinit(); -} - -void RoutingControlDBusStubAdapterInternal::deactivateManagedInstances() { -} - -const char* RoutingControlDBusStubAdapterInternal::getMethodsDBusIntrospectionXmlData() const { - static const std::string introspectionData = - "<method name=\"getInterfaceVersion\">\n" - "<arg name=\"value\" type=\"uu\" direction=\"out\" />" - "</method>\n" - /** - * aborts an asynchronous action. - (at)return E_OK on success, E_UNKNOWN on error, - * E_NON_EXISTENT if handle was not found - */ - "<method name=\"asyncAbort\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "</method>\n" - /** - * connects a source to a sink - (at)return E_OK on success, E_UNKNOWN on error, - * E_WRONG_FORMAT in case am_CustomConnectionFormat_t does not match - */ - "<method name=\"asyncConnect\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"connectionID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"connectionFormat\" type=\"q\" direction=\"in\" />\n" - "</method>\n" - /** - * disconnect a connection with given connectionID - (at)return E_OK on success, - * E_UNKNOWN on error, E_NON_EXISTENT if connection was not found - */ - "<method name=\"asyncDisconnect\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"connectionID\" type=\"q\" direction=\"in\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"asyncSetSinkVolume\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n" - "<arg name=\"ramp\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"time\" type=\"n\" direction=\"in\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"asyncSetSourceVolume\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n" - "<arg name=\"ramp\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"time\" type=\"n\" direction=\"in\" />\n" - "</method>\n" - /** - * This function is used to set the source state of a particular - * source. - (at)return E_OK on success, E_UNKNOWN on error - */ - "<method name=\"asyncSetSourceState\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"state\" type=\"i\" direction=\"in\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"asyncSetSinkSoundProperties\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"listSoundProperties\" type=\"a(qn)\" direction=\"in\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"asyncSetSinkSoundProperty\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"soundProperty\" type=\"(qn)\" direction=\"in\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"asyncSetSourceSoundProperties\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"listSoundProperties\" type=\"a(qn)\" direction=\"in\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"asyncSetSourceSoundProperty\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"soundProperty\" type=\"(qn)\" direction=\"in\" />\n" - "</method>\n" - /** - * this function triggers crossfading. - (at)return E_OK on success, E_UNKNOWN on - * error - */ - "<method name=\"asyncCrossFade\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"crossfaderID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"hotSink\" type=\"i\" direction=\"in\" />\n" - "<arg name=\"rampType\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"time\" type=\"n\" direction=\"in\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"setDomainState\">\n" - "<arg name=\"domainID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"domainState\" type=\"i\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - "<method name=\"asyncSetVolumes\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"volumes\" type=\"a(i(yv)nqn)\" direction=\"in\" />\n" - "</method>\n" - "<method name=\"asyncSetSinkNotificationConfiguration\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"notificationConfiguration\" type=\"(qin)\" direction=\"in\" />\n" - "</method>\n" - "<method name=\"asyncSetSourceNotificationConfiguration\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"notificationConfiguration\" type=\"(qin)\" direction=\"in\" />\n" - "</method>\n" - - ; - return introspectionData.c_str(); -} - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - RoutingControlStub, - CommonAPI::Version - > getRoutingControlInterfaceVersionStubDispatcher(&RoutingControlStub::getInterfaceVersion, "uu"); - - -/** - * 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<am_Handle_s>, - std::tuple<> - > asyncAbortStubDispatcher(&RoutingControlStub::asyncAbort, ""); -/** - * connects a source to a sink -(at)return E_OK on success, E_UNKNOWN on error, - * E_WRONG_FORMAT in case am_CustomConnectionFormat_t does not match - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlStub, - std::tuple<am_Handle_s, am_connectionID_t, am_sourceID_t, am_sinkID_t, am_CustomConnectionFormat_t>, - std::tuple<> - > asyncConnectStubDispatcher(&RoutingControlStub::asyncConnect, ""); -/** - * 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<am_Handle_s, am_connectionID_t>, - std::tuple<> - > asyncDisconnectStubDispatcher(&RoutingControlStub::asyncDisconnect, ""); -/** - * 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<am_Handle_s, am_sinkID_t, am_volume_t, am_CustomRampType_t, am_time_t>, - std::tuple<> - > asyncSetSinkVolumeStubDispatcher(&RoutingControlStub::asyncSetSinkVolume, ""); -/** - * 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<am_Handle_s, am_sourceID_t, am_volume_t, am_CustomRampType_t, am_time_t>, - std::tuple<> - > asyncSetSourceVolumeStubDispatcher(&RoutingControlStub::asyncSetSourceVolume, ""); -/** - * 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<am_Handle_s, am_sourceID_t, am_SourceState_e>, - std::tuple<> - > asyncSetSourceStateStubDispatcher(&RoutingControlStub::asyncSetSourceState, ""); -/** - * 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<am_Handle_s, am_sinkID_t, am_SoundProperty_L>, - std::tuple<> - > asyncSetSinkSoundPropertiesStubDispatcher(&RoutingControlStub::asyncSetSinkSoundProperties, ""); -/** - * 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<am_Handle_s, am_sinkID_t, am_SoundProperty_s>, - std::tuple<> - > asyncSetSinkSoundPropertyStubDispatcher(&RoutingControlStub::asyncSetSinkSoundProperty, ""); -/** - * 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<am_Handle_s, am_sourceID_t, am_SoundProperty_L>, - std::tuple<> - > asyncSetSourceSoundPropertiesStubDispatcher(&RoutingControlStub::asyncSetSourceSoundProperties, ""); -/** - * 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<am_Handle_s, am_sourceID_t, am_SoundProperty_s>, - std::tuple<> - > asyncSetSourceSoundPropertyStubDispatcher(&RoutingControlStub::asyncSetSourceSoundProperty, ""); -/** - * this function triggers crossfading. -(at)return E_OK on success, E_UNKNOWN on - * error - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlStub, - std::tuple<am_Handle_s, am_crossfaderID_t, am_HotSink_e, am_CustomRampType_t, am_time_t>, - std::tuple<> - > asyncCrossFadeStubDispatcher(&RoutingControlStub::asyncCrossFade, ""); -/** - * 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<am_domainID_t, am_DomainState_e>, - std::tuple<am_Error_e> - > setDomainStateStubDispatcher(&RoutingControlStub::setDomainState, "i"); -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlStub, - std::tuple<am_Handle_s, am_Volumes_L>, - std::tuple<> - > asyncSetVolumesStubDispatcher(&RoutingControlStub::asyncSetVolumes, ""); -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlStub, - std::tuple<am_Handle_s, am_sinkID_t, am_NotificationConfiguration_s>, - std::tuple<> - > asyncSetSinkNotificationConfigurationStubDispatcher(&RoutingControlStub::asyncSetSinkNotificationConfiguration, ""); -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlStub, - std::tuple<am_Handle_s, am_sourceID_t, am_NotificationConfiguration_s>, - std::tuple<> - > asyncSetSourceNotificationConfigurationStubDispatcher(&RoutingControlStub::asyncSetSourceNotificationConfiguration, ""); - - - -const RoutingControlDBusStubAdapterHelper::StubDispatcherTable& RoutingControlDBusStubAdapterInternal::getStubDispatcherTable() { - return stubDispatcherTable_; -} - - -RoutingControlDBusStubAdapterInternal::RoutingControlDBusStubAdapterInternal( - 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), - RoutingControlDBusStubAdapterHelper( - factory, - commonApiAddress, - dbusInterfaceName, - dbusBusName, - dbusObjectPath, - dbusConnection, - std::dynamic_pointer_cast<RoutingControlStub>(stub), - false), - stubDispatcherTable_({ - /** - * aborts an asynchronous action. - (at)return E_OK on success, E_UNKNOWN on error, - * E_NON_EXISTENT if handle was not found - */ - { { "asyncAbort", "(iq)" }, &org::genivi::am::asyncAbortStubDispatcher }, - /** - * connects a source to a sink - (at)return E_OK on success, E_UNKNOWN on error, - * E_WRONG_FORMAT in case am_CustomConnectionFormat_t does not match - */ - { { "asyncConnect", "(iq)qqqq" }, &org::genivi::am::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 - */ - { { "asyncDisconnect", "(iq)q" }, &org::genivi::am::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 - */ - { { "asyncSetSinkVolume", "(iq)qnqn" }, &org::genivi::am::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 - */ - { { "asyncSetSourceVolume", "(iq)qnqn" }, &org::genivi::am::asyncSetSourceVolumeStubDispatcher }, - /** - * This function is used to set the source state of a particular - * source. - (at)return E_OK on success, E_UNKNOWN on error - */ - { { "asyncSetSourceState", "(iq)qi" }, &org::genivi::am::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 - */ - { { "asyncSetSinkSoundProperties", "(iq)qa(qn)" }, &org::genivi::am::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 - */ - { { "asyncSetSinkSoundProperty", "(iq)q(qn)" }, &org::genivi::am::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 - */ - { { "asyncSetSourceSoundProperties", "(iq)qa(qn)" }, &org::genivi::am::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 - */ - { { "asyncSetSourceSoundProperty", "(iq)q(qn)" }, &org::genivi::am::asyncSetSourceSoundPropertyStubDispatcher }, - /** - * this function triggers crossfading. - (at)return E_OK on success, E_UNKNOWN on - * error - */ - { { "asyncCrossFade", "(iq)qiqn" }, &org::genivi::am::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 - */ - { { "setDomainState", "qi" }, &org::genivi::am::setDomainStateStubDispatcher }, - { { "asyncSetVolumes", "(iq)a(i(yv)nqn)" }, &org::genivi::am::asyncSetVolumesStubDispatcher }, - { { "asyncSetSinkNotificationConfiguration", "(iq)q(qin)" }, &org::genivi::am::asyncSetSinkNotificationConfigurationStubDispatcher }, - { { "asyncSetSourceNotificationConfiguration", "(iq)q(qin)" }, &org::genivi::am::asyncSetSourceNotificationConfigurationStubDispatcher } - }) { - - stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &org::genivi::am::getRoutingControlInterfaceVersionStubDispatcher }); -} - -} // namespace am -} // namespace genivi -} // namespace org diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.h deleted file mode 100644 index 5f73bcb..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.h +++ /dev/null @@ -1,96 +0,0 @@ -/* -* 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/. -*/ -/** - * 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 <org/genivi/am/RoutingControlStub.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<RoutingControlStub> RoutingControlDBusStubAdapterHelper; - -class RoutingControlDBusStubAdapterInternal: public RoutingControlStubAdapter, public RoutingControlDBusStubAdapterHelper { - public: - RoutingControlDBusStubAdapterInternal( - 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); - - ~RoutingControlDBusStubAdapterInternal(); - - - - - const RoutingControlDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable(); - - void deactivateManagedInstances(); - - - protected: - virtual const char* getMethodsDBusIntrospectionXmlData() const; - - private: - RoutingControlDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_; -}; - -class RoutingControlDBusStubAdapter: public RoutingControlDBusStubAdapterInternal, public std::enable_shared_from_this<RoutingControlDBusStubAdapter> { -public: - RoutingControlDBusStubAdapter( - 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), - RoutingControlDBusStubAdapterInternal( - factory, - commonApiAddress, - dbusInterfaceName, - dbusBusName, - dbusObjectPath, - dbusConnection, - stub) { } -}; - -} // namespace am -} // namespace genivi -} // namespace org - -#endif // ORG_GENIVI_AM_Routing_Control_DBUS_STUB_ADAPTER_H_ diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserver.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserver.h deleted file mode 100644 index 4fe3ad8..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserver.h +++ /dev/null @@ -1,65 +0,0 @@ -/* -* 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/. -*/ -/** - * Routing Receive sendInterface description. - * @author Christian Mueller - */ -#ifndef ORG_GENIVI_AM_Routing_Control_Observer_H_ -#define ORG_GENIVI_AM_Routing_Control_Observer_H_ - - - - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include <CommonAPI/types.h> - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace org { -namespace genivi { -namespace am { - -class RoutingControlObserver { - public: - virtual ~RoutingControlObserver() { } - - static inline const char* getInterfaceId(); - static inline CommonAPI::Version getInterfaceVersion(); -}; - -const char* RoutingControlObserver::getInterfaceId() { - static const char* interfaceId = "org.genivi.am.RoutingControlObserver"; - return interfaceId; -} - -CommonAPI::Version RoutingControlObserver::getInterfaceVersion() { - return CommonAPI::Version(0, 1); -} - - -} // namespace am -} // namespace genivi -} // namespace org - -namespace CommonAPI { - -} - - -namespace std { - //hashes for types - - //hashes for error types -} - -#endif // ORG_GENIVI_AM_Routing_Control_Observer_H_ diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusProxy.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusProxy.cpp deleted file mode 100644 index 9da10db..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusProxy.cpp +++ /dev/null @@ -1,1068 +0,0 @@ -/* -* 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/. -*/ -/** - * Routing Receive sendInterface description. - * @author Christian Mueller - */ -#include "RoutingControlObserverDBusProxy.h" - -namespace org { -namespace genivi { -namespace am { - -std::shared_ptr<CommonAPI::DBus::DBusProxy> createRoutingControlObserverDBusProxy( - const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory, - const std::string& commonApiAddress, - const std::string& interfaceName, - const std::string& busName, - const std::string& objectPath, - const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection) { - return std::make_shared<RoutingControlObserverDBusProxy>(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection); -} - -__attribute__((constructor)) void registerRoutingControlObserverDBusProxy(void) { - CommonAPI::DBus::DBusFactory::registerProxyFactoryMethod(RoutingControlObserver::getInterfaceId(), - &createRoutingControlObserverDBusProxy); -} - -RoutingControlObserverDBusProxy::RoutingControlObserverDBusProxy( - const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory, - const std::string& commonApiAddress, - const std::string& interfaceName, - const std::string& busName, - const std::string& objectPath, - const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection): - CommonAPI::DBus::DBusProxy(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyconnection) -,routingReady_(*this, "onRoutingReadyAttributeChanged", "i", "getRoutingReadyAttribute") - { - } - -RoutingControlObserverDBusProxy::RoutingReadyAttribute& RoutingControlObserverDBusProxy::getRoutingReadyAttribute() { - return routingReady_; -} - - -/** - * acknowledges a asyncConnect - */ -void RoutingControlObserverDBusProxy::ackConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "ackConnect", - "(iq)qi", - handle, connectionID, error, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckConnectAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "ackConnect", - "(iq)qi", - handle, connectionID, error, - std::move(callback)); -} -/** - * acknowledges a asyncDisconnect - */ -void RoutingControlObserverDBusProxy::ackDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "ackDisconnect", - "(iq)qi", - handle, connectionID, error, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckDisconnectAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "ackDisconnect", - "(iq)qi", - handle, connectionID, error, - std::move(callback)); -} -/** - * acknowledges a asyncsetSinkVolume - */ -void RoutingControlObserverDBusProxy::ackSetSinkVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_volume_t, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "ackSetSinkVolumeChange", - "(iq)ni", - handle, volume, error, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSinkVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSinkVolumeChangeAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_volume_t, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "ackSetSinkVolumeChange", - "(iq)ni", - handle, volume, error, - std::move(callback)); -} -/** - * acknowledges a asyncsetSourceVolume - */ -void RoutingControlObserverDBusProxy::ackSetSourceVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_volume_t, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "ackSetSourceVolumeChange", - "(iq)ni", - handle, volume, error, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSourceVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSourceVolumeChangeAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_volume_t, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "ackSetSourceVolumeChange", - "(iq)ni", - handle, volume, error, - std::move(callback)); -} -/** - * acknowlegde for asyncSetSourceState - */ -void RoutingControlObserverDBusProxy::ackSetSourceState(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "ackSetSourceState", - "(iq)i", - handle, error, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSourceStateAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceStateAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "ackSetSourceState", - "(iq)i", - handle, error, - std::move(callback)); -} -/** - * acknowledges asyncSetSinkSoundProperties - */ -void RoutingControlObserverDBusProxy::ackSetSinkSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "ackSetSinkSoundProperties", - "(iq)i", - handle, error, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertiesAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "ackSetSinkSoundProperties", - "(iq)i", - handle, error, - std::move(callback)); -} -/** - * acknowledges asyncSetSinkSoundProperty - */ -void RoutingControlObserverDBusProxy::ackSetSinkSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "ackSetSinkSoundProperty", - "(iq)i", - handle, error, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertyAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "ackSetSinkSoundProperty", - "(iq)i", - handle, error, - std::move(callback)); -} -/** - * acknowledges asyncSetSourceSoundProperties - */ -void RoutingControlObserverDBusProxy::ackSetSourceSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "ackSetSourceSoundProperties", - "(iq)i", - handle, error, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertiesAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "ackSetSourceSoundProperties", - "(iq)i", - handle, error, - std::move(callback)); -} -/** - * acknowledges asyncSetSourceSoundProperty - */ -void RoutingControlObserverDBusProxy::ackSetSourceSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "ackSetSourceSoundProperty", - "(iq)i", - handle, error, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertyAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "ackSetSourceSoundProperty", - "(iq)i", - handle, error, - std::move(callback)); -} -/** - * acknowledges asyncCrossFade - */ -void RoutingControlObserverDBusProxy::ackCrossFading(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_HotSink_e, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "ackCrossFading", - "(iq)ii", - handle, hotSink, error, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackCrossFadingAsync(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, AckCrossFadingAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_HotSink_e, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "ackCrossFading", - "(iq)ii", - handle, hotSink, error, - std::move(callback)); -} -/** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ -void RoutingControlObserverDBusProxy::ackSourceVolumeTick(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_volume_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "ackSourceVolumeTick", - "(iq)qn", - handle, sourceID, volume, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSourceVolumeTickAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, AckSourceVolumeTickAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_volume_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "ackSourceVolumeTick", - "(iq)qn", - handle, sourceID, volume, - std::move(callback)); -} -/** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ -void RoutingControlObserverDBusProxy::ackSinkVolumeTick(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_volume_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "ackSinkVolumeTick", - "(iq)qn", - handle, sinkID, volume, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSinkVolumeTickAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, AckSinkVolumeTickAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_volume_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "ackSinkVolumeTick", - "(iq)qn", - handle, sinkID, volume, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlObserverDBusProxy::peekDomain(const std::string& name, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>, - CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_Error_e> >::callMethodWithReply( - *this, - "peekDomain", - "s", - name, - callStatus - , domainID, error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::peekDomainAsync(const std::string& name, PeekDomainAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>, - CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_Error_e> >::callMethodAsync( - *this, - "peekDomain", - "s", - name, - std::move(callback)); -} -/** - * registers a domain -(at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ -void RoutingControlObserverDBusProxy::registerDomain(const am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnInterface, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Domain_s, std::string, std::string>, - CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_Error_e> >::callMethodWithReply( - *this, - "registerDomain", - "(qsssbbi)ss", - domainData, returnBusname, returnInterface, - callStatus - , domainID, error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::registerDomainAsync(const am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnInterface, RegisterDomainAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Domain_s, std::string, std::string>, - CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_Error_e> >::callMethodAsync( - *this, - "registerDomain", - "(qsssbbi)ss", - domainData, returnBusname, returnInterface, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlObserverDBusProxy::deregisterDomain(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply( - *this, - "deregisterDomain", - "q", - domainID, - callStatus - , error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::deregisterDomainAsync(const am_domainID_t& domainID, DeregisterDomainAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync( - *this, - "deregisterDomain", - "q", - domainID, - std::move(callback)); -} -/** - * registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ -void RoutingControlObserverDBusProxy::registerGateway(const am_Gateway_s& gatewayData, CommonAPI::CallStatus& callStatus, am_gatewayID_t& gatewayID, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Gateway_s>, - CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t, am_Error_e> >::callMethodWithReply( - *this, - "registerGateway", - "(qsqqqqqaqaqab)", - gatewayData, - callStatus - , gatewayID, error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::registerGatewayAsync(const am_Gateway_s& gatewayData, RegisterGatewayAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Gateway_s>, - CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t, am_Error_e> >::callMethodAsync( - *this, - "registerGateway", - "(qsqqqqqaqaqab)", - gatewayData, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlObserverDBusProxy::deregisterGateway(const am_gatewayID_t& gatewayID, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply( - *this, - "deregisterGateway", - "q", - gatewayID, - callStatus - , error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::deregisterGatewayAsync(const am_gatewayID_t& gatewayID, DeregisterGatewayAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync( - *this, - "deregisterGateway", - "q", - gatewayID, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlObserverDBusProxy::peekSink(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>, - CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Error_e> >::callMethodWithReply( - *this, - "peekSink", - "s", - name, - callStatus - , sinkID, error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::peekSinkAsync(const std::string& name, PeekSinkAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>, - CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Error_e> >::callMethodAsync( - *this, - "peekSink", - "s", - name, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlObserverDBusProxy::registerSink(const am_Sink_s& sinkData, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Sink_s>, - CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Error_e> >::callMethodWithReply( - *this, - "registerSink", - "(qsqqnb(iq)ina(qn)aqa(qn)a(qin)a(qin))", - sinkData, - callStatus - , sinkID, error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::registerSinkAsync(const am_Sink_s& sinkData, RegisterSinkAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Sink_s>, - CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Error_e> >::callMethodAsync( - *this, - "registerSink", - "(qsqqnb(iq)ina(qn)aqa(qn)a(qin)a(qin))", - sinkData, - std::move(callback)); -} -/** - * deregisters a sink. -(at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ -void RoutingControlObserverDBusProxy::deregisterSink(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply( - *this, - "deregisterSink", - "q", - sinkID, - callStatus - , error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::deregisterSinkAsync(const am_sinkID_t& sinkID, DeregisterSinkAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync( - *this, - "deregisterSink", - "q", - sinkID, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlObserverDBusProxy::peekSource(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>, - CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Error_e> >::callMethodWithReply( - *this, - "peekSource", - "s", - name, - callStatus - , sourceID, error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::peekSourceAsync(const std::string& name, PeekSourceAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>, - CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Error_e> >::callMethodAsync( - *this, - "peekSource", - "s", - name, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlObserverDBusProxy::registerSource(const am_Source_s& sourceData, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Source_s>, - CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Error_e> >::callMethodWithReply( - *this, - "registerSource", - "(qqsqinb(iq)ia(qn)aqa(qn)a(qin)a(qin))", - sourceData, - callStatus - , sourceID, error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::registerSourceAsync(const am_Source_s& sourceData, RegisterSourceAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Source_s>, - CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Error_e> >::callMethodAsync( - *this, - "registerSource", - "(qqsqinb(iq)ia(qn)aqa(qn)a(qin)a(qin))", - sourceData, - std::move(callback)); -} -/** - * deregisters a source -(at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ -void RoutingControlObserverDBusProxy::deregisterSource(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply( - *this, - "deregisterSource", - "q", - sourceID, - callStatus - , error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::deregisterSourceAsync(const am_sourceID_t& sourceID, DeregisterSourceAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync( - *this, - "deregisterSource", - "q", - sourceID, - std::move(callback)); -} -/** - * this function registers a crossfader. -(at)return E_OK on succes, - * E_ALREADY_EXISTENT if already registered E_UNKOWN on error - */ -void RoutingControlObserverDBusProxy::registerCrossfader(const am_Crossfader_s& crossfaderData, CommonAPI::CallStatus& callStatus, am_crossfaderID_t& crossfaderID, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Crossfader_s>, - CommonAPI::DBus::DBusSerializableArguments<am_crossfaderID_t, am_Error_e> >::callMethodWithReply( - *this, - "registerCrossfader", - "(qsqqqi)", - crossfaderData, - callStatus - , crossfaderID, error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::registerCrossfaderAsync(const am_Crossfader_s& crossfaderData, RegisterCrossfaderAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Crossfader_s>, - CommonAPI::DBus::DBusSerializableArguments<am_crossfaderID_t, am_Error_e> >::callMethodAsync( - *this, - "registerCrossfader", - "(qsqqqi)", - crossfaderData, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlObserverDBusProxy::deregisterCrossfader(const am_crossfaderID_t& crossfaderID, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_crossfaderID_t>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply( - *this, - "deregisterCrossfader", - "q", - crossfaderID, - callStatus - , error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::deregisterCrossfaderAsync(const am_crossfaderID_t& crossfaderID, DeregisterCrossfaderAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_crossfaderID_t>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync( - *this, - "deregisterCrossfader", - "q", - crossfaderID, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlObserverDBusProxy::peekSourceClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceClass_t& sourceClassID, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>, - CommonAPI::DBus::DBusSerializableArguments<am_sourceClass_t, am_Error_e> >::callMethodWithReply( - *this, - "peekSourceClassID", - "s", - name, - callStatus - , sourceClassID, error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::peekSourceClassIDAsync(const std::string& name, PeekSourceClassIDAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>, - CommonAPI::DBus::DBusSerializableArguments<am_sourceClass_t, am_Error_e> >::callMethodAsync( - *this, - "peekSourceClassID", - "s", - name, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlObserverDBusProxy::peekSinkClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkClass_t& sinkClassID, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>, - CommonAPI::DBus::DBusSerializableArguments<am_sinkClass_t, am_Error_e> >::callMethodWithReply( - *this, - "peekSinkClassID", - "s", - name, - callStatus - , sinkClassID, error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::peekSinkClassIDAsync(const std::string& name, PeekSinkClassIDAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>, - CommonAPI::DBus::DBusSerializableArguments<am_sinkClass_t, am_Error_e> >::callMethodAsync( - *this, - "peekSinkClassID", - "s", - name, - std::move(callback)); -} -/** - * is called when a low level interrupt changes it status. - */ -void RoutingControlObserverDBusProxy::hookInterruptStatusChange(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_InterruptState_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "hookInterruptStatusChange", - "qi", - sourceID, interruptState, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookInterruptStatusChangeAsync(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, HookInterruptStatusChangeAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_InterruptState_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "hookInterruptStatusChange", - "qi", - sourceID, interruptState, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlObserverDBusProxy::hookDomainRegistrationComplete(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "hookDomainRegistrationComplete", - "q", - domainID, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookDomainRegistrationCompleteAsync(const am_domainID_t& domainID, HookDomainRegistrationCompleteAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "hookDomainRegistrationComplete", - "q", - domainID, - std::move(callback)); -} -/** - * is called when a sink changes its availability - */ -void RoutingControlObserverDBusProxy::hookSinkAvailablityStatusChange(const am_sinkID_t& sinkID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Availability_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "hookSinkAvailablityStatusChange", - "q(iq)", - sinkID, availability, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookSinkAvailablityStatusChangeAsync(const am_sinkID_t& sinkID, const am_Availability_s& availability, HookSinkAvailablityStatusChangeAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Availability_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "hookSinkAvailablityStatusChange", - "q(iq)", - sinkID, availability, - std::move(callback)); -} -/** - * is called when a source changes its availability - */ -void RoutingControlObserverDBusProxy::hookSourceAvailablityStatusChange(const am_sourceID_t& sourceID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Availability_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "hookSourceAvailablityStatusChange", - "q(iq)", - sourceID, availability, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookSourceAvailablityStatusChangeAsync(const am_sourceID_t& sourceID, const am_Availability_s& availability, HookSourceAvailablityStatusChangeAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Availability_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "hookSourceAvailablityStatusChange", - "q(iq)", - sourceID, availability, - std::move(callback)); -} -/** - * is called when a domain changes its status. This used for early domains only - */ -void RoutingControlObserverDBusProxy::hookDomainStateChange(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_DomainState_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "hookDomainStateChange", - "qi", - domainID, domainState, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookDomainStateChangeAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, HookDomainStateChangeAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_DomainState_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "hookDomainStateChange", - "qi", - domainID, domainState, - std::move(callback)); -} -/** - * is called when the timinginformation (delay) changed for a connection. - */ -void RoutingControlObserverDBusProxy::hookTimingInformationChanged(const am_connectionID_t& connectionID, const am_timeSync_t& delay, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_connectionID_t, am_timeSync_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "hookTimingInformationChanged", - "qn", - connectionID, delay, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookTimingInformationChangedAsync(const am_connectionID_t& connectionID, const am_timeSync_t& delay, HookTimingInformationChangedAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_connectionID_t, am_timeSync_t>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "hookTimingInformationChanged", - "qn", - connectionID, delay, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlObserverDBusProxy::sendChangedData(const am_EarlyData_L& earlyData, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_EarlyData_L>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "sendChangedData", - "a(i(yv)(yv))", - earlyData, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::sendChangedDataAsync(const am_EarlyData_L& earlyData, SendChangedDataAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_EarlyData_L>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "sendChangedData", - "a(i(yv)(yv))", - earlyData, - std::move(callback)); -} -/** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * gatewayID is not valid. - */ -void RoutingControlObserverDBusProxy::updateGateway(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t, am_ConnectionFormat_L, am_ConnectionFormat_L, am_Convertion_L>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply( - *this, - "updateGateway", - "qaqaqab", - gatewayID, listSourceFormats, listSinkFormats, convertionMatrix, - callStatus - , error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::updateGatewayAsync(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, UpdateGatewayAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t, am_ConnectionFormat_L, am_ConnectionFormat_L, am_Convertion_L>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync( - *this, - "updateGateway", - "qaqaqab", - gatewayID, listSourceFormats, listSinkFormats, convertionMatrix, - std::move(callback)); -} -/** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * sinkID is not valid. - */ -void RoutingControlObserverDBusProxy::updateSink(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_sinkClass_t, am_SoundProperty_L, am_ConnectionFormat_L, am_MainSoundProperty_L>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply( - *this, - "updateSink", - "qqa(qn)aqa(qn)", - sinkID, sinkClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties, - callStatus - , error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::updateSinkAsync(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSinkAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_sinkClass_t, am_SoundProperty_L, am_ConnectionFormat_L, am_MainSoundProperty_L>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync( - *this, - "updateSink", - "qqa(qn)aqa(qn)", - sinkID, sinkClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties, - std::move(callback)); -} -/** - * 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 - */ -void RoutingControlObserverDBusProxy::updateSource(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_sourceClass_t, am_SoundProperty_L, am_ConnectionFormat_L, am_MainSoundProperty_L>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply( - *this, - "updateSource", - "qqa(qn)aqa(qn)", - sourceID, sourceClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties, - callStatus - , error); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::updateSourceAsync(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSourceAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_sourceClass_t, am_SoundProperty_L, am_ConnectionFormat_L, am_MainSoundProperty_L>, - CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync( - *this, - "updateSource", - "qqa(qn)aqa(qn)", - sourceID, sourceClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties, - std::move(callback)); -} -/** - * acknowledges a asyncSetSinkVolumes - */ -void RoutingControlObserverDBusProxy::ackSetVolumes(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Volumes_L, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "ackSetVolumes", - "(iq)a(i(yv)nqn)i", - handle, listvolumes, error, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, AckSetVolumesAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Volumes_L, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "ackSetVolumes", - "(iq)a(i(yv)nqn)i", - handle, listvolumes, error, - std::move(callback)); -} -/** - * The acknowledge of the SinkNotificationConfiguration - */ -void RoutingControlObserverDBusProxy::ackSinkNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "ackSinkNotificationConfiguration", - "(iq)i", - handle, error, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSinkNotificationConfigurationAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "ackSinkNotificationConfiguration", - "(iq)i", - handle, error, - std::move(callback)); -} -/** - * The acknowledge of the SourceNotificationConfiguration - */ -void RoutingControlObserverDBusProxy::ackSourceNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "ackSourceNotificationConfiguration", - "(iq)i", - handle, error, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSourceNotificationConfigurationAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "ackSourceNotificationConfiguration", - "(iq)i", - handle, error, - std::move(callback)); -} -/** - * is called whenever a notified value needs to be send - */ -void RoutingControlObserverDBusProxy::hookSinkNotificationDataChange(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_NotificationPayload_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "hookSinkNotificationDataChange", - "q(qn)", - sinkID, payload, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookSinkNotificationDataChangeAsync(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, HookSinkNotificationDataChangeAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_NotificationPayload_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "hookSinkNotificationDataChange", - "q(qn)", - sinkID, payload, - std::move(callback)); -} -/** - * is called whenever a notified value needs to be send - */ -void RoutingControlObserverDBusProxy::hookSourceNotificationDataChange(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_NotificationPayload_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "hookSourceNotificationDataChange", - "q(qn)", - sourceID, payload, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookSourceNotificationDataChangeAsync(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, HookSourceNotificationDataChangeAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_NotificationPayload_s>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "hookSourceNotificationDataChange", - "q(qn)", - sourceID, payload, - std::move(callback)); -} -void RoutingControlObserverDBusProxy::confirmRoutingRundown(const std::string& domainName, CommonAPI::CallStatus& callStatus) { - CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( - *this, - "confirmRoutingRundown", - "s", - domainName, - callStatus - ); -} -std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::confirmRoutingRundownAsync(const std::string& domainName, ConfirmRoutingRundownAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>, - CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( - *this, - "confirmRoutingRundown", - "s", - domainName, - std::move(callback)); -} - - - -void RoutingControlObserverDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const { - ownVersionMajor = 0; - ownVersionMinor = 1; -} - -} // namespace am -} // namespace genivi -} // namespace org diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusProxy.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusProxy.h deleted file mode 100644 index 81d8885..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusProxy.h +++ /dev/null @@ -1,341 +0,0 @@ -/* -* 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/. -*/ -/** - * Routing Receive sendInterface description. - * @author Christian Mueller - */ -#ifndef ORG_GENIVI_AM_Routing_Control_Observer_DBUS_PROXY_H_ -#define ORG_GENIVI_AM_Routing_Control_Observer_DBUS_PROXY_H_ - -#include <org/genivi/am/RoutingControlObserverProxyBase.h> - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include <CommonAPI/DBus/DBusFactory.h> -#include <CommonAPI/DBus/DBusProxy.h> -#include <CommonAPI/DBus/DBusAttribute.h> - -#undef COMMONAPI_INTERNAL_COMPILATION - -#include <string> - -namespace org { -namespace genivi { -namespace am { - -class RoutingControlObserverDBusProxy: virtual public RoutingControlObserverProxyBase, virtual public CommonAPI::DBus::DBusProxy { - public: - RoutingControlObserverDBusProxy( - const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory, - const std::string& commonApiAddress, - const std::string& interfaceName, - const std::string& busName, - const std::string& objectPath, - const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection); - - virtual ~RoutingControlObserverDBusProxy() { } - - virtual RoutingReadyAttribute& getRoutingReadyAttribute(); - - - /** - * acknowledges a asyncConnect - */ - virtual void ackConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> ackConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckConnectAsyncCallback callback); - /** - * acknowledges a asyncDisconnect - */ - virtual void ackDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> ackDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckDisconnectAsyncCallback callback); - /** - * acknowledges a asyncsetSinkVolume - */ - virtual void ackSetSinkVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> ackSetSinkVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSinkVolumeChangeAsyncCallback callback); - /** - * acknowledges a asyncsetSourceVolume - */ - virtual void ackSetSourceVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> ackSetSourceVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSourceVolumeChangeAsyncCallback callback); - /** - * acknowlegde for asyncSetSourceState - */ - virtual void ackSetSourceState(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> ackSetSourceStateAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceStateAsyncCallback callback); - /** - * acknowledges asyncSetSinkSoundProperties - */ - virtual void ackSetSinkSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertiesAsyncCallback callback); - /** - * acknowledges asyncSetSinkSoundProperty - */ - virtual void ackSetSinkSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertyAsyncCallback callback); - /** - * acknowledges asyncSetSourceSoundProperties - */ - virtual void ackSetSourceSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertiesAsyncCallback callback); - /** - * acknowledges asyncSetSourceSoundProperty - */ - virtual void ackSetSourceSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertyAsyncCallback callback); - /** - * acknowledges asyncCrossFade - */ - virtual void ackCrossFading(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> ackCrossFadingAsync(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, AckCrossFadingAsyncCallback callback); - /** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ - virtual void ackSourceVolumeTick(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> ackSourceVolumeTickAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, AckSourceVolumeTickAsyncCallback callback); - /** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ - virtual void ackSinkVolumeTick(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> ackSinkVolumeTickAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, AckSinkVolumeTickAsyncCallback callback); - /** - * 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 - */ - virtual void peekDomain(const std::string& name, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> peekDomainAsync(const std::string& name, PeekDomainAsyncCallback callback); - /** - * registers a domain - (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ - virtual void registerDomain(const am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnInterface, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> registerDomainAsync(const am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnInterface, RegisterDomainAsyncCallback callback); - /** - * 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 - */ - virtual void deregisterDomain(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> deregisterDomainAsync(const am_domainID_t& domainID, DeregisterDomainAsyncCallback callback); - /** - * registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ - virtual void registerGateway(const am_Gateway_s& gatewayData, CommonAPI::CallStatus& callStatus, am_gatewayID_t& gatewayID, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> registerGatewayAsync(const am_Gateway_s& gatewayData, RegisterGatewayAsyncCallback callback); - /** - * 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 - */ - virtual void deregisterGateway(const am_gatewayID_t& gatewayID, CommonAPI::CallStatus& callStatus, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> deregisterGatewayAsync(const am_gatewayID_t& gatewayID, DeregisterGatewayAsyncCallback callback); - /** - * 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 - */ - virtual void peekSink(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> peekSinkAsync(const std::string& name, PeekSinkAsyncCallback callback); - /** - * 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 - */ - virtual void registerSink(const am_Sink_s& sinkData, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> registerSinkAsync(const am_Sink_s& sinkData, RegisterSinkAsyncCallback callback); - /** - * deregisters a sink. - (at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ - virtual void deregisterSink(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> deregisterSinkAsync(const am_sinkID_t& sinkID, DeregisterSinkAsyncCallback callback); - /** - * 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 - */ - virtual void peekSource(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> peekSourceAsync(const std::string& name, PeekSourceAsyncCallback callback); - /** - * 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 - */ - virtual void registerSource(const am_Source_s& sourceData, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> registerSourceAsync(const am_Source_s& sourceData, RegisterSourceAsyncCallback callback); - /** - * deregisters a source - (at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ - virtual void deregisterSource(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> deregisterSourceAsync(const am_sourceID_t& sourceID, DeregisterSourceAsyncCallback callback); - /** - * this function registers a crossfader. - (at)return E_OK on succes, - * E_ALREADY_EXISTENT if already registered E_UNKOWN on error - */ - virtual void registerCrossfader(const am_Crossfader_s& crossfaderData, CommonAPI::CallStatus& callStatus, am_crossfaderID_t& crossfaderID, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> registerCrossfaderAsync(const am_Crossfader_s& crossfaderData, RegisterCrossfaderAsyncCallback callback); - /** - * 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 - */ - virtual void deregisterCrossfader(const am_crossfaderID_t& crossfaderID, CommonAPI::CallStatus& callStatus, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> deregisterCrossfaderAsync(const am_crossfaderID_t& crossfaderID, DeregisterCrossfaderAsyncCallback callback); - /** - * 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 - */ - virtual void peekSourceClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceClass_t& sourceClassID, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> peekSourceClassIDAsync(const std::string& name, PeekSourceClassIDAsyncCallback callback); - /** - * 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 - */ - virtual void peekSinkClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkClass_t& sinkClassID, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> peekSinkClassIDAsync(const std::string& name, PeekSinkClassIDAsyncCallback callback); - /** - * is called when a low level interrupt changes it status. - */ - virtual void hookInterruptStatusChange(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> hookInterruptStatusChangeAsync(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, HookInterruptStatusChangeAsyncCallback callback); - /** - * 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 - */ - virtual void hookDomainRegistrationComplete(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> hookDomainRegistrationCompleteAsync(const am_domainID_t& domainID, HookDomainRegistrationCompleteAsyncCallback callback); - /** - * is called when a sink changes its availability - */ - virtual void hookSinkAvailablityStatusChange(const am_sinkID_t& sinkID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> hookSinkAvailablityStatusChangeAsync(const am_sinkID_t& sinkID, const am_Availability_s& availability, HookSinkAvailablityStatusChangeAsyncCallback callback); - /** - * is called when a source changes its availability - */ - virtual void hookSourceAvailablityStatusChange(const am_sourceID_t& sourceID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> hookSourceAvailablityStatusChangeAsync(const am_sourceID_t& sourceID, const am_Availability_s& availability, HookSourceAvailablityStatusChangeAsyncCallback callback); - /** - * is called when a domain changes its status. This used for early domains only - */ - virtual void hookDomainStateChange(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> hookDomainStateChangeAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, HookDomainStateChangeAsyncCallback callback); - /** - * is called when the timinginformation (delay) changed for a connection. - */ - virtual void hookTimingInformationChanged(const am_connectionID_t& connectionID, const am_timeSync_t& delay, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> hookTimingInformationChangedAsync(const am_connectionID_t& connectionID, const am_timeSync_t& delay, HookTimingInformationChangedAsyncCallback callback); - /** - * 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 - */ - virtual void sendChangedData(const am_EarlyData_L& earlyData, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> sendChangedDataAsync(const am_EarlyData_L& earlyData, SendChangedDataAsyncCallback callback); - /** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * gatewayID is not valid. - */ - virtual void updateGateway(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, CommonAPI::CallStatus& callStatus, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> updateGatewayAsync(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, UpdateGatewayAsyncCallback callback); - /** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * sinkID is not valid. - */ - virtual void updateSink(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> updateSinkAsync(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSinkAsyncCallback callback); - /** - * 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 - */ - virtual void updateSource(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error); - virtual std::future<CommonAPI::CallStatus> updateSourceAsync(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSourceAsyncCallback callback); - /** - * acknowledges a asyncSetSinkVolumes - */ - virtual void ackSetVolumes(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> ackSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, AckSetVolumesAsyncCallback callback); - /** - * The acknowledge of the SinkNotificationConfiguration - */ - virtual void ackSinkNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> ackSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSinkNotificationConfigurationAsyncCallback callback); - /** - * The acknowledge of the SourceNotificationConfiguration - */ - virtual void ackSourceNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> ackSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSourceNotificationConfigurationAsyncCallback callback); - /** - * is called whenever a notified value needs to be send - */ - virtual void hookSinkNotificationDataChange(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> hookSinkNotificationDataChangeAsync(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, HookSinkNotificationDataChangeAsyncCallback callback); - /** - * is called whenever a notified value needs to be send - */ - virtual void hookSourceNotificationDataChange(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> hookSourceNotificationDataChangeAsync(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, HookSourceNotificationDataChangeAsyncCallback callback); - virtual void confirmRoutingRundown(const std::string& domainName, CommonAPI::CallStatus& callStatus); - virtual std::future<CommonAPI::CallStatus> confirmRoutingRundownAsync(const std::string& domainName, ConfirmRoutingRundownAsyncCallback callback); - - - virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const; - - private: - CommonAPI::DBus::DBusObservableAttribute<CommonAPI::DBus::DBusReadonlyAttribute<RoutingReadyAttribute>> routingReady_; - - -}; - - - -} // namespace am -} // namespace genivi -} // namespace org - -#endif // ORG_GENIVI_AM_Routing_Control_Observer_DBUS_PROXY_H_ diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.cpp deleted file mode 100644 index 4c8053d..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.cpp +++ /dev/null @@ -1,1165 +0,0 @@ -/* -* 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 "RoutingControlObserverDBusStubAdapter.h" -#include <org/genivi/am/RoutingControlObserver.h> - -namespace org { -namespace genivi { -namespace am { - -std::shared_ptr<CommonAPI::DBus::DBusStubAdapter> createRoutingControlObserverDBusStubAdapter( - const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory, - const std::string& commonApiAddress, - const std::string& interfaceName, - const std::string& busName, - const std::string& objectPath, - const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection, - const std::shared_ptr<CommonAPI::StubBase>& stubBase) { - return std::make_shared<RoutingControlObserverDBusStubAdapter>(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection, stubBase); -} - -__attribute__((constructor)) void registerRoutingControlObserverDBusStubAdapter(void) { - CommonAPI::DBus::DBusFactory::registerAdapterFactoryMethod(RoutingControlObserver::getInterfaceId(), - &createRoutingControlObserverDBusStubAdapter); -} - - - -RoutingControlObserverDBusStubAdapterInternal::~RoutingControlObserverDBusStubAdapterInternal() { - deactivateManagedInstances(); - RoutingControlObserverDBusStubAdapterHelper::deinit(); -} - -void RoutingControlObserverDBusStubAdapterInternal::deactivateManagedInstances() { -} - -const char* RoutingControlObserverDBusStubAdapterInternal::getMethodsDBusIntrospectionXmlData() const { - static const std::string introspectionData = - "<method name=\"getInterfaceVersion\">\n" - "<arg name=\"value\" type=\"uu\" direction=\"out\" />" - "</method>\n" - "<method name=\"getRoutingReadyAttribute\">\n" - "<arg name=\"value\" type=\"i\" direction=\"out\" />" - "</method>\n" - "<signal name=\"onRoutingReadyAttributeChanged\">\n" - "<arg name=\"changedValue\" type=\"i\" />\n" - "</signal>\n" - /** - * acknowledges a asyncConnect - */ - "<method name=\"ackConnect\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"connectionID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"in\" />\n" - "</method>\n" - /** - * acknowledges a asyncDisconnect - */ - "<method name=\"ackDisconnect\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"connectionID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"in\" />\n" - "</method>\n" - /** - * acknowledges a asyncsetSinkVolume - */ - "<method name=\"ackSetSinkVolumeChange\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"in\" />\n" - "</method>\n" - /** - * acknowledges a asyncsetSourceVolume - */ - "<method name=\"ackSetSourceVolumeChange\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"in\" />\n" - "</method>\n" - /** - * acknowlegde for asyncSetSourceState - */ - "<method name=\"ackSetSourceState\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"in\" />\n" - "</method>\n" - /** - * acknowledges asyncSetSinkSoundProperties - */ - "<method name=\"ackSetSinkSoundProperties\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"in\" />\n" - "</method>\n" - /** - * acknowledges asyncSetSinkSoundProperty - */ - "<method name=\"ackSetSinkSoundProperty\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"in\" />\n" - "</method>\n" - /** - * acknowledges asyncSetSourceSoundProperties - */ - "<method name=\"ackSetSourceSoundProperties\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"in\" />\n" - "</method>\n" - /** - * acknowledges asyncSetSourceSoundProperty - */ - "<method name=\"ackSetSourceSoundProperty\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"in\" />\n" - "</method>\n" - /** - * acknowledges asyncCrossFade - */ - "<method name=\"ackCrossFading\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"hotSink\" type=\"i\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"in\" />\n" - "</method>\n" - /** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ - "<method name=\"ackSourceVolumeTick\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n" - "</method>\n" - /** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ - "<method name=\"ackSinkVolumeTick\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"peekDomain\">\n" - "<arg name=\"name\" type=\"s\" direction=\"in\" />\n" - "<arg name=\"domainID\" type=\"q\" direction=\"out\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * registers a domain - (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ - "<method name=\"registerDomain\">\n" - "<arg name=\"domainData\" type=\"(qsssbbi)\" direction=\"in\" />\n" - "<arg name=\"returnBusname\" type=\"s\" direction=\"in\" />\n" - "<arg name=\"returnInterface\" type=\"s\" direction=\"in\" />\n" - "<arg name=\"domainID\" type=\"q\" direction=\"out\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"deregisterDomain\">\n" - "<arg name=\"domainID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ - "<method name=\"registerGateway\">\n" - "<arg name=\"gatewayData\" type=\"(qsqqqqqaqaqab)\" direction=\"in\" />\n" - "<arg name=\"gatewayID\" type=\"q\" direction=\"out\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"deregisterGateway\">\n" - "<arg name=\"gatewayID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"peekSink\">\n" - "<arg name=\"name\" type=\"s\" direction=\"in\" />\n" - "<arg name=\"sinkID\" type=\"q\" direction=\"out\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"registerSink\">\n" - "<arg name=\"sinkData\" type=\"(qsqqnb(iq)ina(qn)aqa(qn)a(qin)a(qin))\" direction=\"in\" />\n" - "<arg name=\"sinkID\" type=\"q\" direction=\"out\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * deregisters a sink. - (at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ - "<method name=\"deregisterSink\">\n" - "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"peekSource\">\n" - "<arg name=\"name\" type=\"s\" direction=\"in\" />\n" - "<arg name=\"sourceID\" type=\"q\" direction=\"out\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"registerSource\">\n" - "<arg name=\"sourceData\" type=\"(qqsqinb(iq)ia(qn)aqa(qn)a(qin)a(qin))\" direction=\"in\" />\n" - "<arg name=\"sourceID\" type=\"q\" direction=\"out\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * deregisters a source - (at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ - "<method name=\"deregisterSource\">\n" - "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * this function registers a crossfader. - (at)return E_OK on succes, - * E_ALREADY_EXISTENT if already registered E_UNKOWN on error - */ - "<method name=\"registerCrossfader\">\n" - "<arg name=\"crossfaderData\" type=\"(qsqqqi)\" direction=\"in\" />\n" - "<arg name=\"crossfaderID\" type=\"q\" direction=\"out\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"deregisterCrossfader\">\n" - "<arg name=\"crossfaderID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"peekSourceClassID\">\n" - "<arg name=\"name\" type=\"s\" direction=\"in\" />\n" - "<arg name=\"sourceClassID\" type=\"q\" direction=\"out\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"peekSinkClassID\">\n" - "<arg name=\"name\" type=\"s\" direction=\"in\" />\n" - "<arg name=\"sinkClassID\" type=\"q\" direction=\"out\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * is called when a low level interrupt changes it status. - */ - "<method name=\"hookInterruptStatusChange\">\n" - "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"interruptState\" type=\"i\" direction=\"in\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"hookDomainRegistrationComplete\">\n" - "<arg name=\"domainID\" type=\"q\" direction=\"in\" />\n" - "</method>\n" - /** - * is called when a sink changes its availability - */ - "<method name=\"hookSinkAvailablityStatusChange\">\n" - "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"availability\" type=\"(iq)\" direction=\"in\" />\n" - "</method>\n" - /** - * is called when a source changes its availability - */ - "<method name=\"hookSourceAvailablityStatusChange\">\n" - "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"availability\" type=\"(iq)\" direction=\"in\" />\n" - "</method>\n" - /** - * is called when a domain changes its status. This used for early domains only - */ - "<method name=\"hookDomainStateChange\">\n" - "<arg name=\"domainID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"domainState\" type=\"i\" direction=\"in\" />\n" - "</method>\n" - /** - * is called when the timinginformation (delay) changed for a connection. - */ - "<method name=\"hookTimingInformationChanged\">\n" - "<arg name=\"connectionID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"delay\" type=\"n\" direction=\"in\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"sendChangedData\">\n" - "<arg name=\"earlyData\" type=\"a(i(yv)(yv))\" direction=\"in\" />\n" - "</method>\n" - /** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * gatewayID is not valid. - */ - "<method name=\"updateGateway\">\n" - "<arg name=\"gatewayID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"listSourceFormats\" type=\"aq\" direction=\"in\" />\n" - "<arg name=\"listSinkFormats\" type=\"aq\" direction=\"in\" />\n" - "<arg name=\"convertionMatrix\" type=\"ab\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * sinkID is not valid. - */ - "<method name=\"updateSink\">\n" - "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"sinkClassID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"listSoundProperties\" type=\"a(qn)\" direction=\"in\" />\n" - "<arg name=\"listConnectionFormats\" type=\"aq\" direction=\"in\" />\n" - "<arg name=\"listMainSoundProperties\" type=\"a(qn)\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * 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 - */ - "<method name=\"updateSource\">\n" - "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"sourceClassID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"listSoundProperties\" type=\"a(qn)\" direction=\"in\" />\n" - "<arg name=\"listConnectionFormats\" type=\"aq\" direction=\"in\" />\n" - "<arg name=\"listMainSoundProperties\" type=\"a(qn)\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"out\" />\n" - "</method>\n" - /** - * acknowledges a asyncSetSinkVolumes - */ - "<method name=\"ackSetVolumes\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"listvolumes\" type=\"a(i(yv)nqn)\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"in\" />\n" - "</method>\n" - /** - * The acknowledge of the SinkNotificationConfiguration - */ - "<method name=\"ackSinkNotificationConfiguration\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"in\" />\n" - "</method>\n" - /** - * The acknowledge of the SourceNotificationConfiguration - */ - "<method name=\"ackSourceNotificationConfiguration\">\n" - "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n" - "<arg name=\"error\" type=\"i\" direction=\"in\" />\n" - "</method>\n" - /** - * is called whenever a notified value needs to be send - */ - "<method name=\"hookSinkNotificationDataChange\">\n" - "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"payload\" type=\"(qn)\" direction=\"in\" />\n" - "</method>\n" - /** - * is called whenever a notified value needs to be send - */ - "<method name=\"hookSourceNotificationDataChange\">\n" - "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n" - "<arg name=\"payload\" type=\"(qn)\" direction=\"in\" />\n" - "</method>\n" - "<method name=\"confirmRoutingRundown\">\n" - "<arg name=\"domainName\" type=\"s\" direction=\"in\" />\n" - "</method>\n" - - ; - return introspectionData.c_str(); -} - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - RoutingControlObserverStub, - CommonAPI::Version - > getRoutingControlObserverInterfaceVersionStubDispatcher(&RoutingControlObserverStub::getInterfaceVersion, "uu"); - -/** - * 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(&RoutingControlObserverStub::getRoutingReadyAttribute, "i"); - - -/** - * acknowledges a asyncConnect - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlObserverStub, - std::tuple<am_Handle_s, am_connectionID_t, am_Error_e>, - std::tuple<> - > ackConnectStubDispatcher(&RoutingControlObserverStub::ackConnect, ""); -/** - * acknowledges a asyncDisconnect - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlObserverStub, - std::tuple<am_Handle_s, am_connectionID_t, am_Error_e>, - std::tuple<> - > ackDisconnectStubDispatcher(&RoutingControlObserverStub::ackDisconnect, ""); -/** - * acknowledges a asyncsetSinkVolume - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlObserverStub, - std::tuple<am_Handle_s, am_volume_t, am_Error_e>, - std::tuple<> - > ackSetSinkVolumeChangeStubDispatcher(&RoutingControlObserverStub::ackSetSinkVolumeChange, ""); -/** - * acknowledges a asyncsetSourceVolume - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlObserverStub, - std::tuple<am_Handle_s, am_volume_t, am_Error_e>, - std::tuple<> - > ackSetSourceVolumeChangeStubDispatcher(&RoutingControlObserverStub::ackSetSourceVolumeChange, ""); -/** - * acknowlegde for asyncSetSourceState - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlObserverStub, - std::tuple<am_Handle_s, am_Error_e>, - std::tuple<> - > ackSetSourceStateStubDispatcher(&RoutingControlObserverStub::ackSetSourceState, ""); -/** - * acknowledges asyncSetSinkSoundProperties - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlObserverStub, - std::tuple<am_Handle_s, am_Error_e>, - std::tuple<> - > ackSetSinkSoundPropertiesStubDispatcher(&RoutingControlObserverStub::ackSetSinkSoundProperties, ""); -/** - * acknowledges asyncSetSinkSoundProperty - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlObserverStub, - std::tuple<am_Handle_s, am_Error_e>, - std::tuple<> - > ackSetSinkSoundPropertyStubDispatcher(&RoutingControlObserverStub::ackSetSinkSoundProperty, ""); -/** - * acknowledges asyncSetSourceSoundProperties - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlObserverStub, - std::tuple<am_Handle_s, am_Error_e>, - std::tuple<> - > ackSetSourceSoundPropertiesStubDispatcher(&RoutingControlObserverStub::ackSetSourceSoundProperties, ""); -/** - * acknowledges asyncSetSourceSoundProperty - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlObserverStub, - std::tuple<am_Handle_s, am_Error_e>, - std::tuple<> - > ackSetSourceSoundPropertyStubDispatcher(&RoutingControlObserverStub::ackSetSourceSoundProperty, ""); -/** - * acknowledges asyncCrossFade - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlObserverStub, - std::tuple<am_Handle_s, am_HotSink_e, am_Error_e>, - std::tuple<> - > ackCrossFadingStubDispatcher(&RoutingControlObserverStub::ackCrossFading, ""); -/** - * 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(&RoutingControlObserverStub::ackSourceVolumeTick, ""); -/** - * 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(&RoutingControlObserverStub::ackSinkVolumeTick, ""); -/** - * 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(&RoutingControlObserverStub::peekDomain, "qi"); -/** - * 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(&RoutingControlObserverStub::registerDomain, "qi"); -/** - * 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(&RoutingControlObserverStub::deregisterDomain, "i"); -/** - * 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(&RoutingControlObserverStub::registerGateway, "qi"); -/** - * 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(&RoutingControlObserverStub::deregisterGateway, "i"); -/** - * 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(&RoutingControlObserverStub::peekSink, "qi"); -/** - * 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(&RoutingControlObserverStub::registerSink, "qi"); -/** - * 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(&RoutingControlObserverStub::deregisterSink, "i"); -/** - * 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(&RoutingControlObserverStub::peekSource, "qi"); -/** - * 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(&RoutingControlObserverStub::registerSource, "qi"); -/** - * 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(&RoutingControlObserverStub::deregisterSource, "i"); -/** - * 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(&RoutingControlObserverStub::registerCrossfader, "qi"); -/** - * 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(&RoutingControlObserverStub::deregisterCrossfader, "i"); -/** - * 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(&RoutingControlObserverStub::peekSourceClassID, "qi"); -/** - * 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(&RoutingControlObserverStub::peekSinkClassID, "qi"); -/** - * 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(&RoutingControlObserverStub::hookInterruptStatusChange, ""); -/** - * 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(&RoutingControlObserverStub::hookDomainRegistrationComplete, ""); -/** - * is called when a sink changes its availability - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlObserverStub, - std::tuple<am_sinkID_t, am_Availability_s>, - std::tuple<> - > hookSinkAvailablityStatusChangeStubDispatcher(&RoutingControlObserverStub::hookSinkAvailablityStatusChange, ""); -/** - * is called when a source changes its availability - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlObserverStub, - std::tuple<am_sourceID_t, am_Availability_s>, - std::tuple<> - > hookSourceAvailablityStatusChangeStubDispatcher(&RoutingControlObserverStub::hookSourceAvailablityStatusChange, ""); -/** - * 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(&RoutingControlObserverStub::hookDomainStateChange, ""); -/** - * 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(&RoutingControlObserverStub::hookTimingInformationChanged, ""); -/** - * 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(&RoutingControlObserverStub::sendChangedData, ""); -/** - * 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(&RoutingControlObserverStub::updateGateway, "i"); -/** - * updates data of an gateway. (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(&RoutingControlObserverStub::updateSink, "i"); -/** - * 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(&RoutingControlObserverStub::updateSource, "i"); -/** - * acknowledges a asyncSetSinkVolumes - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlObserverStub, - std::tuple<am_Handle_s, am_Volumes_L, am_Error_e>, - std::tuple<> - > ackSetVolumesStubDispatcher(&RoutingControlObserverStub::ackSetVolumes, ""); -/** - * The acknowledge of the SinkNotificationConfiguration - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlObserverStub, - std::tuple<am_Handle_s, am_Error_e>, - std::tuple<> - > ackSinkNotificationConfigurationStubDispatcher(&RoutingControlObserverStub::ackSinkNotificationConfiguration, ""); -/** - * The acknowledge of the SourceNotificationConfiguration - */ -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlObserverStub, - std::tuple<am_Handle_s, am_Error_e>, - std::tuple<> - > ackSourceNotificationConfigurationStubDispatcher(&RoutingControlObserverStub::ackSourceNotificationConfiguration, ""); -/** - * 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(&RoutingControlObserverStub::hookSinkNotificationDataChange, ""); -/** - * 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(&RoutingControlObserverStub::hookSourceNotificationDataChange, ""); -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RoutingControlObserverStub, - std::tuple<std::string>, - std::tuple<> - > confirmRoutingRundownStubDispatcher(&RoutingControlObserverStub::confirmRoutingRundown, ""); - -/** - * 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 RoutingControlObserverDBusStubAdapterInternal::fireRoutingReadyAttributeChanged(const am_RoutingReady_e& value) { - CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_RoutingReady_e>> - ::sendSignal( - *this, - "onRoutingReadyAttributeChanged", - "i", - value - ); -} - - -const RoutingControlObserverDBusStubAdapterHelper::StubDispatcherTable& RoutingControlObserverDBusStubAdapterInternal::getStubDispatcherTable() { - return stubDispatcherTable_; -} - - -RoutingControlObserverDBusStubAdapterInternal::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): - CommonAPI::DBus::DBusStubAdapter( - factory, - commonApiAddress, - dbusInterfaceName, - dbusBusName, - dbusObjectPath, - dbusConnection, - false), - RoutingControlObserverDBusStubAdapterHelper( - factory, - commonApiAddress, - dbusInterfaceName, - dbusBusName, - dbusObjectPath, - dbusConnection, - std::dynamic_pointer_cast<RoutingControlObserverStub>(stub), - false), - stubDispatcherTable_({ - /** - * 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. - */ - { { "getRoutingReadyAttribute", "" }, &org::genivi::am::getRoutingReadyAttributeStubDispatcher } - , - /** - * acknowledges a asyncConnect - */ - { { "ackConnect", "(iq)qi" }, &org::genivi::am::ackConnectStubDispatcher }, - /** - * acknowledges a asyncDisconnect - */ - { { "ackDisconnect", "(iq)qi" }, &org::genivi::am::ackDisconnectStubDispatcher }, - /** - * acknowledges a asyncsetSinkVolume - */ - { { "ackSetSinkVolumeChange", "(iq)ni" }, &org::genivi::am::ackSetSinkVolumeChangeStubDispatcher }, - /** - * acknowledges a asyncsetSourceVolume - */ - { { "ackSetSourceVolumeChange", "(iq)ni" }, &org::genivi::am::ackSetSourceVolumeChangeStubDispatcher }, - /** - * acknowlegde for asyncSetSourceState - */ - { { "ackSetSourceState", "(iq)i" }, &org::genivi::am::ackSetSourceStateStubDispatcher }, - /** - * acknowledges asyncSetSinkSoundProperties - */ - { { "ackSetSinkSoundProperties", "(iq)i" }, &org::genivi::am::ackSetSinkSoundPropertiesStubDispatcher }, - /** - * acknowledges asyncSetSinkSoundProperty - */ - { { "ackSetSinkSoundProperty", "(iq)i" }, &org::genivi::am::ackSetSinkSoundPropertyStubDispatcher }, - /** - * acknowledges asyncSetSourceSoundProperties - */ - { { "ackSetSourceSoundProperties", "(iq)i" }, &org::genivi::am::ackSetSourceSoundPropertiesStubDispatcher }, - /** - * acknowledges asyncSetSourceSoundProperty - */ - { { "ackSetSourceSoundProperty", "(iq)i" }, &org::genivi::am::ackSetSourceSoundPropertyStubDispatcher }, - /** - * acknowledges asyncCrossFade - */ - { { "ackCrossFading", "(iq)ii" }, &org::genivi::am::ackCrossFadingStubDispatcher }, - /** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ - { { "ackSourceVolumeTick", "(iq)qn" }, &org::genivi::am::ackSourceVolumeTickStubDispatcher }, - /** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ - { { "ackSinkVolumeTick", "(iq)qn" }, &org::genivi::am::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 - */ - { { "peekDomain", "s" }, &org::genivi::am::peekDomainStubDispatcher }, - /** - * registers a domain - (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ - { { "registerDomain", "(qsssbbi)ss" }, &org::genivi::am::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 - */ - { { "deregisterDomain", "q" }, &org::genivi::am::deregisterDomainStubDispatcher }, - /** - * registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ - { { "registerGateway", "(qsqqqqqaqaqab)" }, &org::genivi::am::registerGatewayStubDispatcher }, - /** - * 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 - */ - { { "deregisterGateway", "q" }, &org::genivi::am::deregisterGatewayStubDispatcher }, - /** - * 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 - */ - { { "peekSink", "s" }, &org::genivi::am::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 - */ - { { "registerSink", "(qsqqnb(iq)ina(qn)aqa(qn)a(qin)a(qin))" }, &org::genivi::am::registerSinkStubDispatcher }, - /** - * deregisters a sink. - (at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ - { { "deregisterSink", "q" }, &org::genivi::am::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 - */ - { { "peekSource", "s" }, &org::genivi::am::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 - */ - { { "registerSource", "(qqsqinb(iq)ia(qn)aqa(qn)a(qin)a(qin))" }, &org::genivi::am::registerSourceStubDispatcher }, - /** - * deregisters a source - (at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ - { { "deregisterSource", "q" }, &org::genivi::am::deregisterSourceStubDispatcher }, - /** - * this function registers a crossfader. - (at)return E_OK on succes, - * E_ALREADY_EXISTENT if already registered E_UNKOWN on error - */ - { { "registerCrossfader", "(qsqqqi)" }, &org::genivi::am::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 - */ - { { "deregisterCrossfader", "q" }, &org::genivi::am::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 - */ - { { "peekSourceClassID", "s" }, &org::genivi::am::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 - */ - { { "peekSinkClassID", "s" }, &org::genivi::am::peekSinkClassIDStubDispatcher }, - /** - * is called when a low level interrupt changes it status. - */ - { { "hookInterruptStatusChange", "qi" }, &org::genivi::am::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 - */ - { { "hookDomainRegistrationComplete", "q" }, &org::genivi::am::hookDomainRegistrationCompleteStubDispatcher }, - /** - * is called when a sink changes its availability - */ - { { "hookSinkAvailablityStatusChange", "q(iq)" }, &org::genivi::am::hookSinkAvailablityStatusChangeStubDispatcher }, - /** - * is called when a source changes its availability - */ - { { "hookSourceAvailablityStatusChange", "q(iq)" }, &org::genivi::am::hookSourceAvailablityStatusChangeStubDispatcher }, - /** - * is called when a domain changes its status. This used for early domains only - */ - { { "hookDomainStateChange", "qi" }, &org::genivi::am::hookDomainStateChangeStubDispatcher }, - /** - * is called when the timinginformation (delay) changed for a connection. - */ - { { "hookTimingInformationChanged", "qn" }, &org::genivi::am::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 - */ - { { "sendChangedData", "a(i(yv)(yv))" }, &org::genivi::am::sendChangedDataStubDispatcher }, - /** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * gatewayID is not valid. - */ - { { "updateGateway", "qaqaqab" }, &org::genivi::am::updateGatewayStubDispatcher }, - /** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * sinkID is not valid. - */ - { { "updateSink", "qqa(qn)aqa(qn)" }, &org::genivi::am::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 - */ - { { "updateSource", "qqa(qn)aqa(qn)" }, &org::genivi::am::updateSourceStubDispatcher }, - /** - * acknowledges a asyncSetSinkVolumes - */ - { { "ackSetVolumes", "(iq)a(i(yv)nqn)i" }, &org::genivi::am::ackSetVolumesStubDispatcher }, - /** - * The acknowledge of the SinkNotificationConfiguration - */ - { { "ackSinkNotificationConfiguration", "(iq)i" }, &org::genivi::am::ackSinkNotificationConfigurationStubDispatcher }, - /** - * The acknowledge of the SourceNotificationConfiguration - */ - { { "ackSourceNotificationConfiguration", "(iq)i" }, &org::genivi::am::ackSourceNotificationConfigurationStubDispatcher }, - /** - * is called whenever a notified value needs to be send - */ - { { "hookSinkNotificationDataChange", "q(qn)" }, &org::genivi::am::hookSinkNotificationDataChangeStubDispatcher }, - /** - * is called whenever a notified value needs to be send - */ - { { "hookSourceNotificationDataChange", "q(qn)" }, &org::genivi::am::hookSourceNotificationDataChangeStubDispatcher }, - { { "confirmRoutingRundown", "s" }, &org::genivi::am::confirmRoutingRundownStubDispatcher } - }) { - - stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &org::genivi::am::getRoutingControlObserverInterfaceVersionStubDispatcher }); -} - -} // namespace am -} // namespace genivi -} // namespace org diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.h deleted file mode 100644 index 144e86a..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.h +++ /dev/null @@ -1,103 +0,0 @@ -/* -* 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/. -*/ -/** - * 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 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(); - - /** - * 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(); - - void deactivateManagedInstances(); - - - protected: - virtual const char* getMethodsDBusIntrospectionXmlData() const; - - private: - RoutingControlObserverDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_; -}; - -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_ diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverProxy.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverProxy.h deleted file mode 100644 index 998e8ae..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverProxy.h +++ /dev/null @@ -1,1803 +0,0 @@ -/* -* 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/. -*/ -/** - * Routing Receive sendInterface description. - * @author Christian Mueller - */ -#ifndef ORG_GENIVI_AM_Routing_Control_Observer_PROXY_H_ -#define ORG_GENIVI_AM_Routing_Control_Observer_PROXY_H_ - -#include "RoutingControlObserverProxyBase.h" - - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include <CommonAPI/AttributeExtension.h> -#include <CommonAPI/Factory.h> - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace org { -namespace genivi { -namespace am { - -template <typename ... _AttributeExtensions> -class RoutingControlObserverProxy: virtual public RoutingControlObserver, virtual public RoutingControlObserverProxyBase -, public _AttributeExtensions... { -public: - RoutingControlObserverProxy(std::shared_ptr<CommonAPI::Proxy> delegate); - ~RoutingControlObserverProxy(); - - typedef RoutingControlObserver InterfaceType; - - - /** - * 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. - */ - /** - * Returns the wrapper class that provides access to the attribute RoutingReady. - */ - virtual RoutingReadyAttribute& getRoutingReadyAttribute() { - return delegate_->getRoutingReadyAttribute(); - } - - - /** - * acknowledges a asyncConnect - * - * Calls ackConnect with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void ackConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - /** - * Calls ackConnect with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> ackConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckConnectAsyncCallback callback); - /** - * acknowledges a asyncDisconnect - * - * Calls ackDisconnect with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void ackDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - /** - * Calls ackDisconnect with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> ackDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckDisconnectAsyncCallback callback); - /** - * acknowledges a asyncsetSinkVolume - * - * Calls ackSetSinkVolumeChange with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void ackSetSinkVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - /** - * Calls ackSetSinkVolumeChange with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> ackSetSinkVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSinkVolumeChangeAsyncCallback callback); - /** - * acknowledges a asyncsetSourceVolume - * - * Calls ackSetSourceVolumeChange with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void ackSetSourceVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - /** - * Calls ackSetSourceVolumeChange with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> ackSetSourceVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSourceVolumeChangeAsyncCallback callback); - /** - * acknowlegde for asyncSetSourceState - * - * Calls ackSetSourceState with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void ackSetSourceState(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - /** - * Calls ackSetSourceState with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> ackSetSourceStateAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceStateAsyncCallback callback); - /** - * acknowledges asyncSetSinkSoundProperties - * - * Calls ackSetSinkSoundProperties with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void ackSetSinkSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - /** - * Calls ackSetSinkSoundProperties with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertiesAsyncCallback callback); - /** - * acknowledges asyncSetSinkSoundProperty - * - * Calls ackSetSinkSoundProperty with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void ackSetSinkSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - /** - * Calls ackSetSinkSoundProperty with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertyAsyncCallback callback); - /** - * acknowledges asyncSetSourceSoundProperties - * - * Calls ackSetSourceSoundProperties with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void ackSetSourceSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - /** - * Calls ackSetSourceSoundProperties with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertiesAsyncCallback callback); - /** - * acknowledges asyncSetSourceSoundProperty - * - * Calls ackSetSourceSoundProperty with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void ackSetSourceSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - /** - * Calls ackSetSourceSoundProperty with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertyAsyncCallback callback); - /** - * acknowledges asyncCrossFade - * - * Calls ackCrossFading with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void ackCrossFading(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - /** - * Calls ackCrossFading with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> ackCrossFadingAsync(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, AckCrossFadingAsyncCallback callback); - /** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - * - * Calls ackSourceVolumeTick with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void ackSourceVolumeTick(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus); - /** - * Calls ackSourceVolumeTick with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> ackSourceVolumeTickAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, AckSourceVolumeTickAsyncCallback callback); - /** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - * - * Calls ackSinkVolumeTick with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void ackSinkVolumeTick(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus); - /** - * Calls ackSinkVolumeTick with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> ackSinkVolumeTickAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, AckSinkVolumeTickAsyncCallback callback); - /** - * 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 - * - * Calls peekDomain with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void peekDomain(const std::string& name, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error); - /** - * Calls peekDomain with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> peekDomainAsync(const std::string& name, PeekDomainAsyncCallback callback); - /** - * registers a domain - (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - * - * Calls registerDomain with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void registerDomain(const am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnInterface, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error); - /** - * Calls registerDomain with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> registerDomainAsync(const am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnInterface, RegisterDomainAsyncCallback callback); - /** - * 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 - * - * Calls deregisterDomain with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void deregisterDomain(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus, am_Error_e& error); - /** - * Calls deregisterDomain with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> deregisterDomainAsync(const am_domainID_t& domainID, DeregisterDomainAsyncCallback callback); - /** - * registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - * - * Calls registerGateway with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void registerGateway(const am_Gateway_s& gatewayData, CommonAPI::CallStatus& callStatus, am_gatewayID_t& gatewayID, am_Error_e& error); - /** - * Calls registerGateway with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> registerGatewayAsync(const am_Gateway_s& gatewayData, RegisterGatewayAsyncCallback callback); - /** - * 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 - * - * Calls deregisterGateway with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void deregisterGateway(const am_gatewayID_t& gatewayID, CommonAPI::CallStatus& callStatus, am_Error_e& error); - /** - * Calls deregisterGateway with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> deregisterGatewayAsync(const am_gatewayID_t& gatewayID, DeregisterGatewayAsyncCallback callback); - /** - * 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 - * - * Calls peekSink with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void peekSink(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error); - /** - * Calls peekSink with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> peekSinkAsync(const std::string& name, PeekSinkAsyncCallback callback); - /** - * 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 - * - * Calls registerSink with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void registerSink(const am_Sink_s& sinkData, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error); - /** - * Calls registerSink with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> registerSinkAsync(const am_Sink_s& sinkData, RegisterSinkAsyncCallback callback); - /** - * deregisters a sink. - (at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - * - * Calls deregisterSink with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void deregisterSink(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_Error_e& error); - /** - * Calls deregisterSink with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> deregisterSinkAsync(const am_sinkID_t& sinkID, DeregisterSinkAsyncCallback callback); - /** - * 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 - * - * Calls peekSource with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void peekSource(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error); - /** - * Calls peekSource with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> peekSourceAsync(const std::string& name, PeekSourceAsyncCallback callback); - /** - * 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 - * - * Calls registerSource with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void registerSource(const am_Source_s& sourceData, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error); - /** - * Calls registerSource with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> registerSourceAsync(const am_Source_s& sourceData, RegisterSourceAsyncCallback callback); - /** - * deregisters a source - (at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - * - * Calls deregisterSource with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void deregisterSource(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_Error_e& error); - /** - * Calls deregisterSource with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> deregisterSourceAsync(const am_sourceID_t& sourceID, DeregisterSourceAsyncCallback callback); - /** - * this function registers a crossfader. - (at)return E_OK on succes, - * E_ALREADY_EXISTENT if already registered E_UNKOWN on error - * - * Calls registerCrossfader with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void registerCrossfader(const am_Crossfader_s& crossfaderData, CommonAPI::CallStatus& callStatus, am_crossfaderID_t& crossfaderID, am_Error_e& error); - /** - * Calls registerCrossfader with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> registerCrossfaderAsync(const am_Crossfader_s& crossfaderData, RegisterCrossfaderAsyncCallback callback); - /** - * 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 - * - * Calls deregisterCrossfader with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void deregisterCrossfader(const am_crossfaderID_t& crossfaderID, CommonAPI::CallStatus& callStatus, am_Error_e& error); - /** - * Calls deregisterCrossfader with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> deregisterCrossfaderAsync(const am_crossfaderID_t& crossfaderID, DeregisterCrossfaderAsyncCallback callback); - /** - * 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 - * - * Calls peekSourceClassID with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void peekSourceClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceClass_t& sourceClassID, am_Error_e& error); - /** - * Calls peekSourceClassID with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> peekSourceClassIDAsync(const std::string& name, PeekSourceClassIDAsyncCallback callback); - /** - * 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 - * - * Calls peekSinkClassID with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void peekSinkClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkClass_t& sinkClassID, am_Error_e& error); - /** - * Calls peekSinkClassID with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> peekSinkClassIDAsync(const std::string& name, PeekSinkClassIDAsyncCallback callback); - /** - * is called when a low level interrupt changes it status. - * - * Calls hookInterruptStatusChange with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void hookInterruptStatusChange(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, CommonAPI::CallStatus& callStatus); - /** - * Calls hookInterruptStatusChange with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> hookInterruptStatusChangeAsync(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, HookInterruptStatusChangeAsyncCallback callback); - /** - * 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 - * - * Calls hookDomainRegistrationComplete with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void hookDomainRegistrationComplete(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus); - /** - * Calls hookDomainRegistrationComplete with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> hookDomainRegistrationCompleteAsync(const am_domainID_t& domainID, HookDomainRegistrationCompleteAsyncCallback callback); - /** - * is called when a sink changes its availability - * - * Calls hookSinkAvailablityStatusChange with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void hookSinkAvailablityStatusChange(const am_sinkID_t& sinkID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus); - /** - * Calls hookSinkAvailablityStatusChange with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> hookSinkAvailablityStatusChangeAsync(const am_sinkID_t& sinkID, const am_Availability_s& availability, HookSinkAvailablityStatusChangeAsyncCallback callback); - /** - * is called when a source changes its availability - * - * Calls hookSourceAvailablityStatusChange with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void hookSourceAvailablityStatusChange(const am_sourceID_t& sourceID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus); - /** - * Calls hookSourceAvailablityStatusChange with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> hookSourceAvailablityStatusChangeAsync(const am_sourceID_t& sourceID, const am_Availability_s& availability, HookSourceAvailablityStatusChangeAsyncCallback callback); - /** - * is called when a domain changes its status. This used for early domains only - * - * Calls hookDomainStateChange with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void hookDomainStateChange(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus); - /** - * Calls hookDomainStateChange with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> hookDomainStateChangeAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, HookDomainStateChangeAsyncCallback callback); - /** - * is called when the timinginformation (delay) changed for a connection. - * - * Calls hookTimingInformationChanged with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void hookTimingInformationChanged(const am_connectionID_t& connectionID, const am_timeSync_t& delay, CommonAPI::CallStatus& callStatus); - /** - * Calls hookTimingInformationChanged with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> hookTimingInformationChangedAsync(const am_connectionID_t& connectionID, const am_timeSync_t& delay, HookTimingInformationChangedAsyncCallback callback); - /** - * 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 - * - * Calls sendChangedData with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void sendChangedData(const am_EarlyData_L& earlyData, CommonAPI::CallStatus& callStatus); - /** - * Calls sendChangedData with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> sendChangedDataAsync(const am_EarlyData_L& earlyData, SendChangedDataAsyncCallback callback); - /** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * gatewayID is not valid. - * - * Calls updateGateway with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void updateGateway(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, CommonAPI::CallStatus& callStatus, am_Error_e& error); - /** - * Calls updateGateway with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> updateGatewayAsync(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, UpdateGatewayAsyncCallback callback); - /** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * sinkID is not valid. - * - * Calls updateSink with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void updateSink(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error); - /** - * Calls updateSink with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> updateSinkAsync(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSinkAsyncCallback callback); - /** - * 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 - * - * Calls updateSource with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void updateSource(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error); - /** - * Calls updateSource with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> updateSourceAsync(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSourceAsyncCallback callback); - /** - * acknowledges a asyncSetSinkVolumes - * - * Calls ackSetVolumes with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void ackSetVolumes(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - /** - * Calls ackSetVolumes with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> ackSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, AckSetVolumesAsyncCallback callback); - /** - * The acknowledge of the SinkNotificationConfiguration - * - * Calls ackSinkNotificationConfiguration with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void ackSinkNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - /** - * Calls ackSinkNotificationConfiguration with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> ackSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSinkNotificationConfigurationAsyncCallback callback); - /** - * The acknowledge of the SourceNotificationConfiguration - * - * Calls ackSourceNotificationConfiguration with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void ackSourceNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus); - /** - * Calls ackSourceNotificationConfiguration with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> ackSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSourceNotificationConfigurationAsyncCallback callback); - /** - * is called whenever a notified value needs to be send - * - * Calls hookSinkNotificationDataChange with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void hookSinkNotificationDataChange(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus); - /** - * Calls hookSinkNotificationDataChange with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> hookSinkNotificationDataChangeAsync(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, HookSinkNotificationDataChangeAsyncCallback callback); - /** - * is called whenever a notified value needs to be send - * - * Calls hookSourceNotificationDataChange with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void hookSourceNotificationDataChange(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus); - /** - * Calls hookSourceNotificationDataChange with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> hookSourceNotificationDataChangeAsync(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, HookSourceNotificationDataChangeAsyncCallback callback); - /** - * Calls confirmRoutingRundown with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void confirmRoutingRundown(const std::string& domainName, CommonAPI::CallStatus& callStatus); - /** - * Calls confirmRoutingRundown with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> confirmRoutingRundownAsync(const std::string& domainName, ConfirmRoutingRundownAsyncCallback callback); - - - /** - * Returns the CommonAPI address of the remote partner this proxy communicates with. - */ - virtual std::string getAddress() const; - - /** - * Returns the domain of the remote partner this proxy communicates with. - */ - virtual const std::string& getDomain() const; - - /** - * Returns the service ID of the remote partner this proxy communicates with. - */ - virtual const std::string& getServiceId() const; - - /** - * Returns the instance ID of the remote partner this proxy communicates with. - */ - virtual const std::string& getInstanceId() const; - - /** - * Returns true if the remote partner for this proxy is currently known to be available. - */ - virtual bool isAvailable() const; - - /** - * Returns true if the remote partner for this proxy is available. - */ - virtual bool isAvailableBlocking() const; - - /** - * Returns the wrapper class that is used to (de-)register for notifications about - * the availability of the remote partner of this proxy. - */ - virtual CommonAPI::ProxyStatusEvent& getProxyStatusEvent(); - - /** - * Returns the wrapper class that is used to access version information of the remote - * partner of this proxy. - */ - virtual CommonAPI::InterfaceVersionAttribute& getInterfaceVersionAttribute(); - - private: - std::shared_ptr<RoutingControlObserverProxyBase> delegate_; -}; - -namespace RoutingControlObserverExtensions { - /** - * 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. - */ - template <template <typename > class _ExtensionType> - class RoutingReadyAttributeExtension { - public: - typedef _ExtensionType<RoutingControlObserverProxyBase::RoutingReadyAttribute> extension_type; - - static_assert(std::is_base_of<typename CommonAPI::AttributeExtension<RoutingControlObserverProxyBase::RoutingReadyAttribute>, extension_type>::value, - "Not CommonAPI Attribute Extension!"); - - RoutingReadyAttributeExtension(RoutingControlObserverProxyBase& proxy): attributeExtension_(proxy.getRoutingReadyAttribute()) { - } - - inline extension_type& getRoutingReadyAttributeExtension() { - return attributeExtension_; - } - - private: - extension_type attributeExtension_; - }; - -} // namespace RoutingControlObserverExtensions - -// -// RoutingControlObserverProxy Implementation -// -template <typename ... _AttributeExtensions> -RoutingControlObserverProxy<_AttributeExtensions...>::RoutingControlObserverProxy(std::shared_ptr<CommonAPI::Proxy> delegate): - delegate_(std::dynamic_pointer_cast<RoutingControlObserverProxyBase>(delegate)), - _AttributeExtensions(*(std::dynamic_pointer_cast<RoutingControlObserverProxyBase>(delegate)))... { -} - -template <typename ... _AttributeExtensions> -RoutingControlObserverProxy<_AttributeExtensions...>::~RoutingControlObserverProxy() { -} - -/** - * acknowledges a asyncConnect - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::ackConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - delegate_->ackConnect(handle, connectionID, error, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckConnectAsyncCallback callback) { - return delegate_->ackConnectAsync(handle, connectionID, error, callback); -} -/** - * acknowledges a asyncDisconnect - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::ackDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - delegate_->ackDisconnect(handle, connectionID, error, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckDisconnectAsyncCallback callback) { - return delegate_->ackDisconnectAsync(handle, connectionID, error, callback); -} -/** - * acknowledges a asyncsetSinkVolume - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSinkVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - delegate_->ackSetSinkVolumeChange(handle, volume, error, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSinkVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSinkVolumeChangeAsyncCallback callback) { - return delegate_->ackSetSinkVolumeChangeAsync(handle, volume, error, callback); -} -/** - * acknowledges a asyncsetSourceVolume - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSourceVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - delegate_->ackSetSourceVolumeChange(handle, volume, error, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSourceVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSourceVolumeChangeAsyncCallback callback) { - return delegate_->ackSetSourceVolumeChangeAsync(handle, volume, error, callback); -} -/** - * acknowlegde for asyncSetSourceState - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSourceState(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - delegate_->ackSetSourceState(handle, error, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSourceStateAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceStateAsyncCallback callback) { - return delegate_->ackSetSourceStateAsync(handle, error, callback); -} -/** - * acknowledges asyncSetSinkSoundProperties - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSinkSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - delegate_->ackSetSinkSoundProperties(handle, error, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertiesAsyncCallback callback) { - return delegate_->ackSetSinkSoundPropertiesAsync(handle, error, callback); -} -/** - * acknowledges asyncSetSinkSoundProperty - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSinkSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - delegate_->ackSetSinkSoundProperty(handle, error, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertyAsyncCallback callback) { - return delegate_->ackSetSinkSoundPropertyAsync(handle, error, callback); -} -/** - * acknowledges asyncSetSourceSoundProperties - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSourceSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - delegate_->ackSetSourceSoundProperties(handle, error, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertiesAsyncCallback callback) { - return delegate_->ackSetSourceSoundPropertiesAsync(handle, error, callback); -} -/** - * acknowledges asyncSetSourceSoundProperty - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSourceSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - delegate_->ackSetSourceSoundProperty(handle, error, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertyAsyncCallback callback) { - return delegate_->ackSetSourceSoundPropertyAsync(handle, error, callback); -} -/** - * acknowledges asyncCrossFade - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::ackCrossFading(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - delegate_->ackCrossFading(handle, hotSink, error, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackCrossFadingAsync(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, AckCrossFadingAsyncCallback callback) { - return delegate_->ackCrossFadingAsync(handle, hotSink, error, callback); -} -/** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::ackSourceVolumeTick(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus) { - delegate_->ackSourceVolumeTick(handle, sourceID, volume, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSourceVolumeTickAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, AckSourceVolumeTickAsyncCallback callback) { - return delegate_->ackSourceVolumeTickAsync(handle, sourceID, volume, callback); -} -/** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::ackSinkVolumeTick(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus) { - delegate_->ackSinkVolumeTick(handle, sinkID, volume, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSinkVolumeTickAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, AckSinkVolumeTickAsyncCallback callback) { - return delegate_->ackSinkVolumeTickAsync(handle, sinkID, volume, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::peekDomain(const std::string& name, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error) { - delegate_->peekDomain(name, callStatus, domainID, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::peekDomainAsync(const std::string& name, PeekDomainAsyncCallback callback) { - return delegate_->peekDomainAsync(name, callback); -} -/** - * registers a domain -(at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::registerDomain(const am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnInterface, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error) { - delegate_->registerDomain(domainData, returnBusname, returnInterface, callStatus, domainID, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::registerDomainAsync(const am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnInterface, RegisterDomainAsyncCallback callback) { - return delegate_->registerDomainAsync(domainData, returnBusname, returnInterface, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::deregisterDomain(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - delegate_->deregisterDomain(domainID, callStatus, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::deregisterDomainAsync(const am_domainID_t& domainID, DeregisterDomainAsyncCallback callback) { - return delegate_->deregisterDomainAsync(domainID, callback); -} -/** - * registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::registerGateway(const am_Gateway_s& gatewayData, CommonAPI::CallStatus& callStatus, am_gatewayID_t& gatewayID, am_Error_e& error) { - delegate_->registerGateway(gatewayData, callStatus, gatewayID, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::registerGatewayAsync(const am_Gateway_s& gatewayData, RegisterGatewayAsyncCallback callback) { - return delegate_->registerGatewayAsync(gatewayData, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::deregisterGateway(const am_gatewayID_t& gatewayID, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - delegate_->deregisterGateway(gatewayID, callStatus, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::deregisterGatewayAsync(const am_gatewayID_t& gatewayID, DeregisterGatewayAsyncCallback callback) { - return delegate_->deregisterGatewayAsync(gatewayID, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::peekSink(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error) { - delegate_->peekSink(name, callStatus, sinkID, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::peekSinkAsync(const std::string& name, PeekSinkAsyncCallback callback) { - return delegate_->peekSinkAsync(name, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::registerSink(const am_Sink_s& sinkData, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error) { - delegate_->registerSink(sinkData, callStatus, sinkID, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::registerSinkAsync(const am_Sink_s& sinkData, RegisterSinkAsyncCallback callback) { - return delegate_->registerSinkAsync(sinkData, callback); -} -/** - * deregisters a sink. -(at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::deregisterSink(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - delegate_->deregisterSink(sinkID, callStatus, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::deregisterSinkAsync(const am_sinkID_t& sinkID, DeregisterSinkAsyncCallback callback) { - return delegate_->deregisterSinkAsync(sinkID, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::peekSource(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error) { - delegate_->peekSource(name, callStatus, sourceID, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::peekSourceAsync(const std::string& name, PeekSourceAsyncCallback callback) { - return delegate_->peekSourceAsync(name, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::registerSource(const am_Source_s& sourceData, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error) { - delegate_->registerSource(sourceData, callStatus, sourceID, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::registerSourceAsync(const am_Source_s& sourceData, RegisterSourceAsyncCallback callback) { - return delegate_->registerSourceAsync(sourceData, callback); -} -/** - * deregisters a source -(at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::deregisterSource(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - delegate_->deregisterSource(sourceID, callStatus, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::deregisterSourceAsync(const am_sourceID_t& sourceID, DeregisterSourceAsyncCallback callback) { - return delegate_->deregisterSourceAsync(sourceID, callback); -} -/** - * this function registers a crossfader. -(at)return E_OK on succes, - * E_ALREADY_EXISTENT if already registered E_UNKOWN on error - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::registerCrossfader(const am_Crossfader_s& crossfaderData, CommonAPI::CallStatus& callStatus, am_crossfaderID_t& crossfaderID, am_Error_e& error) { - delegate_->registerCrossfader(crossfaderData, callStatus, crossfaderID, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::registerCrossfaderAsync(const am_Crossfader_s& crossfaderData, RegisterCrossfaderAsyncCallback callback) { - return delegate_->registerCrossfaderAsync(crossfaderData, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::deregisterCrossfader(const am_crossfaderID_t& crossfaderID, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - delegate_->deregisterCrossfader(crossfaderID, callStatus, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::deregisterCrossfaderAsync(const am_crossfaderID_t& crossfaderID, DeregisterCrossfaderAsyncCallback callback) { - return delegate_->deregisterCrossfaderAsync(crossfaderID, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::peekSourceClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceClass_t& sourceClassID, am_Error_e& error) { - delegate_->peekSourceClassID(name, callStatus, sourceClassID, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::peekSourceClassIDAsync(const std::string& name, PeekSourceClassIDAsyncCallback callback) { - return delegate_->peekSourceClassIDAsync(name, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::peekSinkClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkClass_t& sinkClassID, am_Error_e& error) { - delegate_->peekSinkClassID(name, callStatus, sinkClassID, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::peekSinkClassIDAsync(const std::string& name, PeekSinkClassIDAsyncCallback callback) { - return delegate_->peekSinkClassIDAsync(name, callback); -} -/** - * is called when a low level interrupt changes it status. - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::hookInterruptStatusChange(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, CommonAPI::CallStatus& callStatus) { - delegate_->hookInterruptStatusChange(sourceID, interruptState, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::hookInterruptStatusChangeAsync(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, HookInterruptStatusChangeAsyncCallback callback) { - return delegate_->hookInterruptStatusChangeAsync(sourceID, interruptState, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::hookDomainRegistrationComplete(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus) { - delegate_->hookDomainRegistrationComplete(domainID, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::hookDomainRegistrationCompleteAsync(const am_domainID_t& domainID, HookDomainRegistrationCompleteAsyncCallback callback) { - return delegate_->hookDomainRegistrationCompleteAsync(domainID, callback); -} -/** - * is called when a sink changes its availability - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::hookSinkAvailablityStatusChange(const am_sinkID_t& sinkID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus) { - delegate_->hookSinkAvailablityStatusChange(sinkID, availability, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::hookSinkAvailablityStatusChangeAsync(const am_sinkID_t& sinkID, const am_Availability_s& availability, HookSinkAvailablityStatusChangeAsyncCallback callback) { - return delegate_->hookSinkAvailablityStatusChangeAsync(sinkID, availability, callback); -} -/** - * is called when a source changes its availability - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::hookSourceAvailablityStatusChange(const am_sourceID_t& sourceID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus) { - delegate_->hookSourceAvailablityStatusChange(sourceID, availability, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::hookSourceAvailablityStatusChangeAsync(const am_sourceID_t& sourceID, const am_Availability_s& availability, HookSourceAvailablityStatusChangeAsyncCallback callback) { - return delegate_->hookSourceAvailablityStatusChangeAsync(sourceID, availability, callback); -} -/** - * is called when a domain changes its status. This used for early domains only - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::hookDomainStateChange(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus) { - delegate_->hookDomainStateChange(domainID, domainState, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::hookDomainStateChangeAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, HookDomainStateChangeAsyncCallback callback) { - return delegate_->hookDomainStateChangeAsync(domainID, domainState, callback); -} -/** - * is called when the timinginformation (delay) changed for a connection. - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::hookTimingInformationChanged(const am_connectionID_t& connectionID, const am_timeSync_t& delay, CommonAPI::CallStatus& callStatus) { - delegate_->hookTimingInformationChanged(connectionID, delay, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::hookTimingInformationChangedAsync(const am_connectionID_t& connectionID, const am_timeSync_t& delay, HookTimingInformationChangedAsyncCallback callback) { - return delegate_->hookTimingInformationChangedAsync(connectionID, delay, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::sendChangedData(const am_EarlyData_L& earlyData, CommonAPI::CallStatus& callStatus) { - delegate_->sendChangedData(earlyData, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::sendChangedDataAsync(const am_EarlyData_L& earlyData, SendChangedDataAsyncCallback callback) { - return delegate_->sendChangedDataAsync(earlyData, callback); -} -/** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * gatewayID is not valid. - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::updateGateway(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - delegate_->updateGateway(gatewayID, listSourceFormats, listSinkFormats, convertionMatrix, callStatus, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::updateGatewayAsync(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, UpdateGatewayAsyncCallback callback) { - return delegate_->updateGatewayAsync(gatewayID, listSourceFormats, listSinkFormats, convertionMatrix, callback); -} -/** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * sinkID is not valid. - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::updateSink(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - delegate_->updateSink(sinkID, sinkClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties, callStatus, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::updateSinkAsync(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSinkAsyncCallback callback) { - return delegate_->updateSinkAsync(sinkID, sinkClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::updateSource(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - delegate_->updateSource(sourceID, sourceClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties, callStatus, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::updateSourceAsync(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSourceAsyncCallback callback) { - return delegate_->updateSourceAsync(sourceID, sourceClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties, callback); -} -/** - * acknowledges a asyncSetSinkVolumes - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::ackSetVolumes(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - delegate_->ackSetVolumes(handle, listvolumes, error, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, AckSetVolumesAsyncCallback callback) { - return delegate_->ackSetVolumesAsync(handle, listvolumes, error, callback); -} -/** - * The acknowledge of the SinkNotificationConfiguration - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::ackSinkNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - delegate_->ackSinkNotificationConfiguration(handle, error, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSinkNotificationConfigurationAsyncCallback callback) { - return delegate_->ackSinkNotificationConfigurationAsync(handle, error, callback); -} -/** - * The acknowledge of the SourceNotificationConfiguration - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::ackSourceNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) { - delegate_->ackSourceNotificationConfiguration(handle, error, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSourceNotificationConfigurationAsyncCallback callback) { - return delegate_->ackSourceNotificationConfigurationAsync(handle, error, callback); -} -/** - * is called whenever a notified value needs to be send - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::hookSinkNotificationDataChange(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus) { - delegate_->hookSinkNotificationDataChange(sinkID, payload, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::hookSinkNotificationDataChangeAsync(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, HookSinkNotificationDataChangeAsyncCallback callback) { - return delegate_->hookSinkNotificationDataChangeAsync(sinkID, payload, callback); -} -/** - * is called whenever a notified value needs to be send - */ -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::hookSourceNotificationDataChange(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus) { - delegate_->hookSourceNotificationDataChange(sourceID, payload, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::hookSourceNotificationDataChangeAsync(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, HookSourceNotificationDataChangeAsyncCallback callback) { - return delegate_->hookSourceNotificationDataChangeAsync(sourceID, payload, callback); -} -template <typename ... _AttributeExtensions> -void RoutingControlObserverProxy<_AttributeExtensions...>::confirmRoutingRundown(const std::string& domainName, CommonAPI::CallStatus& callStatus) { - delegate_->confirmRoutingRundown(domainName, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::confirmRoutingRundownAsync(const std::string& domainName, ConfirmRoutingRundownAsyncCallback callback) { - return delegate_->confirmRoutingRundownAsync(domainName, callback); -} - -template <typename ... _AttributeExtensions> -std::string RoutingControlObserverProxy<_AttributeExtensions...>::getAddress() const { - return delegate_->getAddress(); -} - -template <typename ... _AttributeExtensions> -const std::string& RoutingControlObserverProxy<_AttributeExtensions...>::getDomain() const { - return delegate_->getDomain(); -} - -template <typename ... _AttributeExtensions> -const std::string& RoutingControlObserverProxy<_AttributeExtensions...>::getServiceId() const { - return delegate_->getServiceId(); -} - -template <typename ... _AttributeExtensions> -const std::string& RoutingControlObserverProxy<_AttributeExtensions...>::getInstanceId() const { - return delegate_->getInstanceId(); -} - -template <typename ... _AttributeExtensions> -bool RoutingControlObserverProxy<_AttributeExtensions...>::isAvailable() const { - return delegate_->isAvailable(); -} - -template <typename ... _AttributeExtensions> -bool RoutingControlObserverProxy<_AttributeExtensions...>::isAvailableBlocking() const { - return delegate_->isAvailableBlocking(); -} - -template <typename ... _AttributeExtensions> -CommonAPI::ProxyStatusEvent& RoutingControlObserverProxy<_AttributeExtensions...>::getProxyStatusEvent() { - return delegate_->getProxyStatusEvent(); -} - -template <typename ... _AttributeExtensions> -CommonAPI::InterfaceVersionAttribute& RoutingControlObserverProxy<_AttributeExtensions...>::getInterfaceVersionAttribute() { - return delegate_->getInterfaceVersionAttribute(); -} - - -} // namespace am -} // namespace genivi -} // namespace org - -namespace CommonAPI { -template<template<typename > class _AttributeExtension> -struct DefaultAttributeProxyFactoryHelper<org::genivi::am::RoutingControlObserverProxy, - _AttributeExtension> { - typedef typename org::genivi::am::RoutingControlObserverProxy< - org::genivi::am::RoutingControlObserverExtensions::RoutingReadyAttributeExtension<_AttributeExtension> - > class_t; -}; -} - -#endif // ORG_GENIVI_AM_Routing_Control_Observer_PROXY_H_ diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverProxyBase.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverProxyBase.h deleted file mode 100644 index fa80989..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverProxyBase.h +++ /dev/null @@ -1,382 +0,0 @@ -/* -* 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/. -*/ -/** - * Routing Receive sendInterface description. - * @author Christian Mueller - */ -#ifndef ORG_GENIVI_AM_Routing_Control_Observer_PROXY_BASE_H_ -#define ORG_GENIVI_AM_Routing_Control_Observer_PROXY_BASE_H_ - -#include "RoutingControlObserver.h" - - -#include <org/genivi/am.h> - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include <CommonAPI/InputStream.h> -#include <CommonAPI/OutputStream.h> -#include <CommonAPI/SerializableStruct.h> -#include <cstdint> -#include <string> -#include <vector> - -#include <CommonAPI/Attribute.h> -#include <CommonAPI/Proxy.h> -#include <functional> -#include <future> - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace org { -namespace genivi { -namespace am { - -class RoutingControlObserverProxyBase: virtual public CommonAPI::Proxy { - public: - typedef CommonAPI::ObservableReadonlyAttribute<am_RoutingReady_e> RoutingReadyAttribute; - - typedef std::function<void(const CommonAPI::CallStatus&)> AckConnectAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AckDisconnectAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSinkVolumeChangeAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSourceVolumeChangeAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSourceStateAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSinkSoundPropertiesAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSinkSoundPropertyAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSourceSoundPropertiesAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSourceSoundPropertyAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AckCrossFadingAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AckSourceVolumeTickAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AckSinkVolumeTickAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_domainID_t&, const am_Error_e&)> PeekDomainAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_domainID_t&, const am_Error_e&)> RegisterDomainAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> DeregisterDomainAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_gatewayID_t&, const am_Error_e&)> RegisterGatewayAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> DeregisterGatewayAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_sinkID_t&, const am_Error_e&)> PeekSinkAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_sinkID_t&, const am_Error_e&)> RegisterSinkAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> DeregisterSinkAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_sourceID_t&, const am_Error_e&)> PeekSourceAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_sourceID_t&, const am_Error_e&)> RegisterSourceAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> DeregisterSourceAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_crossfaderID_t&, const am_Error_e&)> RegisterCrossfaderAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> DeregisterCrossfaderAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_sourceClass_t&, const am_Error_e&)> PeekSourceClassIDAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_sinkClass_t&, const am_Error_e&)> PeekSinkClassIDAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> HookInterruptStatusChangeAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> HookDomainRegistrationCompleteAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> HookSinkAvailablityStatusChangeAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> HookSourceAvailablityStatusChangeAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> HookDomainStateChangeAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> HookTimingInformationChangedAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> SendChangedDataAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> UpdateGatewayAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> UpdateSinkAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> UpdateSourceAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AckSetVolumesAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AckSinkNotificationConfigurationAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AckSourceNotificationConfigurationAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> HookSinkNotificationDataChangeAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> HookSourceNotificationDataChangeAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> ConfirmRoutingRundownAsyncCallback; - - /** - * 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. - */ - virtual RoutingReadyAttribute& getRoutingReadyAttribute() = 0; - - - /** - * acknowledges a asyncConnect - */ - virtual void ackConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> ackConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckConnectAsyncCallback callback) = 0; - /** - * acknowledges a asyncDisconnect - */ - virtual void ackDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> ackDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckDisconnectAsyncCallback callback) = 0; - /** - * acknowledges a asyncsetSinkVolume - */ - virtual void ackSetSinkVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> ackSetSinkVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSinkVolumeChangeAsyncCallback callback) = 0; - /** - * acknowledges a asyncsetSourceVolume - */ - virtual void ackSetSourceVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> ackSetSourceVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSourceVolumeChangeAsyncCallback callback) = 0; - /** - * acknowlegde for asyncSetSourceState - */ - virtual void ackSetSourceState(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> ackSetSourceStateAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceStateAsyncCallback callback) = 0; - /** - * acknowledges asyncSetSinkSoundProperties - */ - virtual void ackSetSinkSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertiesAsyncCallback callback) = 0; - /** - * acknowledges asyncSetSinkSoundProperty - */ - virtual void ackSetSinkSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertyAsyncCallback callback) = 0; - /** - * acknowledges asyncSetSourceSoundProperties - */ - virtual void ackSetSourceSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertiesAsyncCallback callback) = 0; - /** - * acknowledges asyncSetSourceSoundProperty - */ - virtual void ackSetSourceSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertyAsyncCallback callback) = 0; - /** - * acknowledges asyncCrossFade - */ - virtual void ackCrossFading(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> ackCrossFadingAsync(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, AckCrossFadingAsyncCallback callback) = 0; - /** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ - virtual void ackSourceVolumeTick(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> ackSourceVolumeTickAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, AckSourceVolumeTickAsyncCallback callback) = 0; - /** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ - virtual void ackSinkVolumeTick(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> ackSinkVolumeTickAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, AckSinkVolumeTickAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void peekDomain(const std::string& name, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> peekDomainAsync(const std::string& name, PeekDomainAsyncCallback callback) = 0; - /** - * registers a domain - (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ - virtual void registerDomain(const am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnInterface, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> registerDomainAsync(const am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnInterface, RegisterDomainAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void deregisterDomain(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> deregisterDomainAsync(const am_domainID_t& domainID, DeregisterDomainAsyncCallback callback) = 0; - /** - * registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ - virtual void registerGateway(const am_Gateway_s& gatewayData, CommonAPI::CallStatus& callStatus, am_gatewayID_t& gatewayID, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> registerGatewayAsync(const am_Gateway_s& gatewayData, RegisterGatewayAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void deregisterGateway(const am_gatewayID_t& gatewayID, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> deregisterGatewayAsync(const am_gatewayID_t& gatewayID, DeregisterGatewayAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void peekSink(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> peekSinkAsync(const std::string& name, PeekSinkAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void registerSink(const am_Sink_s& sinkData, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> registerSinkAsync(const am_Sink_s& sinkData, RegisterSinkAsyncCallback callback) = 0; - /** - * deregisters a sink. - (at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ - virtual void deregisterSink(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> deregisterSinkAsync(const am_sinkID_t& sinkID, DeregisterSinkAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void peekSource(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> peekSourceAsync(const std::string& name, PeekSourceAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void registerSource(const am_Source_s& sourceData, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> registerSourceAsync(const am_Source_s& sourceData, RegisterSourceAsyncCallback callback) = 0; - /** - * deregisters a source - (at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ - virtual void deregisterSource(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> deregisterSourceAsync(const am_sourceID_t& sourceID, DeregisterSourceAsyncCallback callback) = 0; - /** - * this function registers a crossfader. - (at)return E_OK on succes, - * E_ALREADY_EXISTENT if already registered E_UNKOWN on error - */ - virtual void registerCrossfader(const am_Crossfader_s& crossfaderData, CommonAPI::CallStatus& callStatus, am_crossfaderID_t& crossfaderID, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> registerCrossfaderAsync(const am_Crossfader_s& crossfaderData, RegisterCrossfaderAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void deregisterCrossfader(const am_crossfaderID_t& crossfaderID, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> deregisterCrossfaderAsync(const am_crossfaderID_t& crossfaderID, DeregisterCrossfaderAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void peekSourceClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceClass_t& sourceClassID, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> peekSourceClassIDAsync(const std::string& name, PeekSourceClassIDAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void peekSinkClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkClass_t& sinkClassID, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> peekSinkClassIDAsync(const std::string& name, PeekSinkClassIDAsyncCallback callback) = 0; - /** - * is called when a low level interrupt changes it status. - */ - virtual void hookInterruptStatusChange(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> hookInterruptStatusChangeAsync(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, HookInterruptStatusChangeAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void hookDomainRegistrationComplete(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> hookDomainRegistrationCompleteAsync(const am_domainID_t& domainID, HookDomainRegistrationCompleteAsyncCallback callback) = 0; - /** - * is called when a sink changes its availability - */ - virtual void hookSinkAvailablityStatusChange(const am_sinkID_t& sinkID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> hookSinkAvailablityStatusChangeAsync(const am_sinkID_t& sinkID, const am_Availability_s& availability, HookSinkAvailablityStatusChangeAsyncCallback callback) = 0; - /** - * is called when a source changes its availability - */ - virtual void hookSourceAvailablityStatusChange(const am_sourceID_t& sourceID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> hookSourceAvailablityStatusChangeAsync(const am_sourceID_t& sourceID, const am_Availability_s& availability, HookSourceAvailablityStatusChangeAsyncCallback callback) = 0; - /** - * is called when a domain changes its status. This used for early domains only - */ - virtual void hookDomainStateChange(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> hookDomainStateChangeAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, HookDomainStateChangeAsyncCallback callback) = 0; - /** - * is called when the timinginformation (delay) changed for a connection. - */ - virtual void hookTimingInformationChanged(const am_connectionID_t& connectionID, const am_timeSync_t& delay, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> hookTimingInformationChangedAsync(const am_connectionID_t& connectionID, const am_timeSync_t& delay, HookTimingInformationChangedAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void sendChangedData(const am_EarlyData_L& earlyData, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> sendChangedDataAsync(const am_EarlyData_L& earlyData, SendChangedDataAsyncCallback callback) = 0; - /** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * gatewayID is not valid. - */ - virtual void updateGateway(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> updateGatewayAsync(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, UpdateGatewayAsyncCallback callback) = 0; - /** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * sinkID is not valid. - */ - virtual void updateSink(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> updateSinkAsync(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSinkAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void updateSource(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> updateSourceAsync(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSourceAsyncCallback callback) = 0; - /** - * acknowledges a asyncSetSinkVolumes - */ - virtual void ackSetVolumes(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> ackSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, AckSetVolumesAsyncCallback callback) = 0; - /** - * The acknowledge of the SinkNotificationConfiguration - */ - virtual void ackSinkNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> ackSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSinkNotificationConfigurationAsyncCallback callback) = 0; - /** - * The acknowledge of the SourceNotificationConfiguration - */ - virtual void ackSourceNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> ackSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSourceNotificationConfigurationAsyncCallback callback) = 0; - /** - * is called whenever a notified value needs to be send - */ - virtual void hookSinkNotificationDataChange(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> hookSinkNotificationDataChangeAsync(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, HookSinkNotificationDataChangeAsyncCallback callback) = 0; - /** - * is called whenever a notified value needs to be send - */ - virtual void hookSourceNotificationDataChange(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> hookSourceNotificationDataChangeAsync(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, HookSourceNotificationDataChangeAsyncCallback callback) = 0; - virtual void confirmRoutingRundown(const std::string& domainName, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> confirmRoutingRundownAsync(const std::string& domainName, ConfirmRoutingRundownAsyncCallback callback) = 0; -}; - -} // namespace am -} // namespace genivi -} // namespace org - -#endif // ORG_GENIVI_AM_Routing_Control_Observer_PROXY_BASE_H_ diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStub.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStub.h deleted file mode 100644 index eb61414..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStub.h +++ /dev/null @@ -1,389 +0,0 @@ -/* -* 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/. -*/ -/** - * Routing Receive sendInterface description. - * @author Christian Mueller - */ -#ifndef ORG_GENIVI_AM_Routing_Control_Observer_STUB_H_ -#define ORG_GENIVI_AM_Routing_Control_Observer_STUB_H_ - - - -#include <org/genivi/am.h> - -#include "RoutingControlObserver.h" - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include <CommonAPI/InputStream.h> -#include <CommonAPI/OutputStream.h> -#include <CommonAPI/SerializableStruct.h> -#include <cstdint> -#include <string> -#include <vector> - -#include <CommonAPI/Stub.h> - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace org { -namespace genivi { -namespace am { - -/** - * Receives messages from remote and handles all dispatching of deserialized calls - * to a stub for the service RoutingControlObserver. Also provides means to send broadcasts - * and attribute-changed-notifications of observable attributes as defined by this service. - * An application developer should not need to bother with this class. - */ -class RoutingControlObserverStubAdapter: virtual public CommonAPI::StubAdapter, public RoutingControlObserver { - public: - ///Notifies all remote listeners about a change of value of the attribute RoutingReady. - virtual void fireRoutingReadyAttributeChanged(const am_RoutingReady_e& RoutingReady) = 0; - - - - virtual void deactivateManagedInstances() = 0; -protected: - /** - * Defines properties for storing the ClientIds of clients / proxies that have - * subscribed to the selective broadcasts - */ -}; - - -/** - * Defines the necessary callbacks to handle remote set events related to the attributes - * defined in the IDL description for RoutingControlObserver. - * For each attribute two callbacks are defined: - * - a verification callback that allows to verify the requested value and to prevent setting - * e.g. an invalid value ("onRemoteSet<AttributeName>"). - * - an action callback to do local work after the attribute value has been changed - * ("onRemote<AttributeName>Changed"). - * - * This class and the one below are the ones an application developer needs to have - * a look at if he wants to implement a service. - */ -class RoutingControlObserverStubRemoteEvent { - public: - virtual ~RoutingControlObserverStubRemoteEvent() { } - - -}; - - -/** - * Defines the interface that must be implemented by any class that should provide - * the service RoutingControlObserver to remote clients. - * This class and the one above are the ones an application developer needs to have - * a look at if he wants to implement a service. - */ -class RoutingControlObserverStub : public virtual CommonAPI::Stub<RoutingControlObserverStubAdapter, RoutingControlObserverStubRemoteEvent> { -public: - virtual ~RoutingControlObserverStub() { } - virtual const CommonAPI::Version& getInterfaceVersion(std::shared_ptr<CommonAPI::ClientId> clientId) = 0; - - /** - * 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. - */ - /// Provides getter access to the attribute RoutingReady - virtual const am_RoutingReady_e& getRoutingReadyAttribute(const std::shared_ptr<CommonAPI::ClientId> clientId) = 0; - - /** - * acknowledges a asyncConnect - */ - /// This is the method that will be called on remote calls on the method ackConnect. - virtual void ackConnect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_connectionID_t connectionID, am_Error_e error) = 0; - /** - * acknowledges a asyncDisconnect - */ - /// This is the method that will be called on remote calls on the method ackDisconnect. - virtual void ackDisconnect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_connectionID_t connectionID, am_Error_e error) = 0; - /** - * acknowledges a asyncsetSinkVolume - */ - /// This is the method that will be called on remote calls on the method ackSetSinkVolumeChange. - virtual void ackSetSinkVolumeChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_volume_t volume, am_Error_e error) = 0; - /** - * acknowledges a asyncsetSourceVolume - */ - /// This is the method that will be called on remote calls on the method ackSetSourceVolumeChange. - virtual void ackSetSourceVolumeChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_volume_t volume, am_Error_e error) = 0; - /** - * acknowlegde for asyncSetSourceState - */ - /// This is the method that will be called on remote calls on the method ackSetSourceState. - virtual void ackSetSourceState(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error) = 0; - /** - * acknowledges asyncSetSinkSoundProperties - */ - /// This is the method that will be called on remote calls on the method ackSetSinkSoundProperties. - virtual void ackSetSinkSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error) = 0; - /** - * acknowledges asyncSetSinkSoundProperty - */ - /// This is the method that will be called on remote calls on the method ackSetSinkSoundProperty. - virtual void ackSetSinkSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error) = 0; - /** - * acknowledges asyncSetSourceSoundProperties - */ - /// This is the method that will be called on remote calls on the method ackSetSourceSoundProperties. - virtual void ackSetSourceSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error) = 0; - /** - * acknowledges asyncSetSourceSoundProperty - */ - /// This is the method that will be called on remote calls on the method ackSetSourceSoundProperty. - virtual void ackSetSourceSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error) = 0; - /** - * acknowledges asyncCrossFade - */ - /// This is the method that will be called on remote calls on the method ackCrossFading. - virtual void ackCrossFading(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_HotSink_e hotSink, am_Error_e error) = 0; - /** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ - /// This is the method that will be called on remote calls on the method ackSourceVolumeTick. - virtual void ackSourceVolumeTick(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume) = 0; - /** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ - /// This is the method that will be called on remote calls on the method ackSinkVolumeTick. - virtual void ackSinkVolumeTick(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method peekDomain. - virtual void peekDomain(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string name, am_domainID_t& domainID, am_Error_e& error) = 0; - /** - * registers a domain - (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ - /// This is the method that will be called on remote calls on the method registerDomain. - virtual void registerDomain(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Domain_s domainData, std::string returnBusname, std::string returnInterface, am_domainID_t& domainID, am_Error_e& error) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method deregisterDomain. - virtual void deregisterDomain(const std::shared_ptr<CommonAPI::ClientId> clientId, am_domainID_t domainID, am_Error_e& error) = 0; - /** - * registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ - /// This is the method that will be called on remote calls on the method registerGateway. - virtual void registerGateway(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Gateway_s gatewayData, am_gatewayID_t& gatewayID, am_Error_e& error) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method deregisterGateway. - virtual void deregisterGateway(const std::shared_ptr<CommonAPI::ClientId> clientId, am_gatewayID_t gatewayID, am_Error_e& error) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method peekSink. - virtual void peekSink(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string name, am_sinkID_t& sinkID, am_Error_e& error) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method registerSink. - virtual void registerSink(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Sink_s sinkData, am_sinkID_t& sinkID, am_Error_e& error) = 0; - /** - * deregisters a sink. - (at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ - /// This is the method that will be called on remote calls on the method deregisterSink. - virtual void deregisterSink(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_Error_e& error) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method peekSource. - virtual void peekSource(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string name, am_sourceID_t& sourceID, am_Error_e& error) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method registerSource. - virtual void registerSource(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Source_s sourceData, am_sourceID_t& sourceID, am_Error_e& error) = 0; - /** - * deregisters a source - (at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ - /// This is the method that will be called on remote calls on the method deregisterSource. - virtual void deregisterSource(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_Error_e& error) = 0; - /** - * this function registers a crossfader. - (at)return E_OK on succes, - * E_ALREADY_EXISTENT if already registered E_UNKOWN on error - */ - /// This is the method that will be called on remote calls on the method registerCrossfader. - virtual void registerCrossfader(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Crossfader_s crossfaderData, am_crossfaderID_t& crossfaderID, am_Error_e& error) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method deregisterCrossfader. - virtual void deregisterCrossfader(const std::shared_ptr<CommonAPI::ClientId> clientId, am_crossfaderID_t crossfaderID, am_Error_e& error) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method peekSourceClassID. - virtual void peekSourceClassID(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string name, am_sourceClass_t& sourceClassID, am_Error_e& error) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method peekSinkClassID. - virtual void peekSinkClassID(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string name, am_sinkClass_t& sinkClassID, am_Error_e& error) = 0; - /** - * is called when a low level interrupt changes it status. - */ - /// This is the method that will be called on remote calls on the method hookInterruptStatusChange. - virtual void hookInterruptStatusChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_InterruptState_e interruptState) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method hookDomainRegistrationComplete. - virtual void hookDomainRegistrationComplete(const std::shared_ptr<CommonAPI::ClientId> clientId, am_domainID_t domainID) = 0; - /** - * is called when a sink changes its availability - */ - /// This is the method that will be called on remote calls on the method hookSinkAvailablityStatusChange. - virtual void hookSinkAvailablityStatusChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_Availability_s availability) = 0; - /** - * is called when a source changes its availability - */ - /// This is the method that will be called on remote calls on the method hookSourceAvailablityStatusChange. - virtual void hookSourceAvailablityStatusChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_Availability_s availability) = 0; - /** - * is called when a domain changes its status. This used for early domains only - */ - /// This is the method that will be called on remote calls on the method hookDomainStateChange. - virtual void hookDomainStateChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_domainID_t domainID, am_DomainState_e domainState) = 0; - /** - * is called when the timinginformation (delay) changed for a connection. - */ - /// This is the method that will be called on remote calls on the method hookTimingInformationChanged. - virtual void hookTimingInformationChanged(const std::shared_ptr<CommonAPI::ClientId> clientId, am_connectionID_t connectionID, am_timeSync_t delay) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method sendChangedData. - virtual void sendChangedData(const std::shared_ptr<CommonAPI::ClientId> clientId, am_EarlyData_L earlyData) = 0; - /** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * gatewayID is not valid. - */ - /// This is the method that will be called on remote calls on the method updateGateway. - virtual void updateGateway(const std::shared_ptr<CommonAPI::ClientId> clientId, am_gatewayID_t gatewayID, am_ConnectionFormat_L listSourceFormats, am_ConnectionFormat_L listSinkFormats, am_Convertion_L convertionMatrix, am_Error_e& error) = 0; - /** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * sinkID is not valid. - */ - /// This is the method that will be called on remote calls on the method updateSink. - virtual void updateSink(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_sinkClass_t sinkClassID, am_SoundProperty_L listSoundProperties, am_ConnectionFormat_L listConnectionFormats, am_MainSoundProperty_L listMainSoundProperties, am_Error_e& error) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method updateSource. - virtual void updateSource(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_sourceClass_t sourceClassID, am_SoundProperty_L listSoundProperties, am_ConnectionFormat_L listConnectionFormats, am_MainSoundProperty_L listMainSoundProperties, am_Error_e& error) = 0; - /** - * acknowledges a asyncSetSinkVolumes - */ - /// This is the method that will be called on remote calls on the method ackSetVolumes. - virtual void ackSetVolumes(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Volumes_L listvolumes, am_Error_e error) = 0; - /** - * The acknowledge of the SinkNotificationConfiguration - */ - /// This is the method that will be called on remote calls on the method ackSinkNotificationConfiguration. - virtual void ackSinkNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error) = 0; - /** - * The acknowledge of the SourceNotificationConfiguration - */ - /// This is the method that will be called on remote calls on the method ackSourceNotificationConfiguration. - virtual void ackSourceNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error) = 0; - /** - * is called whenever a notified value needs to be send - */ - /// This is the method that will be called on remote calls on the method hookSinkNotificationDataChange. - virtual void hookSinkNotificationDataChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_NotificationPayload_s payload) = 0; - /** - * is called whenever a notified value needs to be send - */ - /// This is the method that will be called on remote calls on the method hookSourceNotificationDataChange. - virtual void hookSourceNotificationDataChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_NotificationPayload_s payload) = 0; - /// This is the method that will be called on remote calls on the method confirmRoutingRundown. - virtual void confirmRoutingRundown(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string domainName) = 0; - - using CommonAPI::Stub<RoutingControlObserverStubAdapter, RoutingControlObserverStubRemoteEvent>::initStubAdapter; - typedef CommonAPI::Stub<RoutingControlObserverStubAdapter, RoutingControlObserverStubRemoteEvent>::StubAdapterType StubAdapterType; - typedef CommonAPI::Stub<RoutingControlObserverStubAdapter, RoutingControlObserverStubRemoteEvent>::RemoteEventHandlerType RemoteEventHandlerType; -}; - -} // namespace am -} // namespace genivi -} // namespace org - -#endif // ORG_GENIVI_AM_Routing_Control_Observer_STUB_H_ diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStubDefault.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStubDefault.cpp deleted file mode 100644 index 46d10f7..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStubDefault.cpp +++ /dev/null @@ -1,602 +0,0 @@ -/* -* 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 <org/genivi/am/RoutingControlObserverStubDefault.h> - -namespace org { -namespace genivi { -namespace am { - -RoutingControlObserverStubDefault::RoutingControlObserverStubDefault(): - remoteEventHandler_(this), - interfaceVersion_(RoutingControlObserver::getInterfaceVersion()) { -} - -const CommonAPI::Version& RoutingControlObserverStubDefault::getInterfaceVersion(std::shared_ptr<CommonAPI::ClientId> clientId) { - return interfaceVersion_; -} - -RoutingControlObserverStubRemoteEvent* RoutingControlObserverStubDefault::initStubAdapter(const std::shared_ptr<RoutingControlObserverStubAdapter>& stubAdapter) { - CommonAPI::Stub<RoutingControlObserverStubAdapter, RoutingControlObserverStubRemoteEvent>::stubAdapter_ = stubAdapter; - return &remoteEventHandler_; -} - -const am_RoutingReady_e& RoutingControlObserverStubDefault::getRoutingReadyAttribute() { - return routingReadyAttributeValue_; -} - -const am_RoutingReady_e& RoutingControlObserverStubDefault::getRoutingReadyAttribute(const std::shared_ptr<CommonAPI::ClientId> clientId) { - return getRoutingReadyAttribute(); -} - -void RoutingControlObserverStubDefault::setRoutingReadyAttribute(am_RoutingReady_e value) { - const bool valueChanged = trySetRoutingReadyAttribute(std::move(value)); - if (valueChanged) { - stubAdapter_->fireRoutingReadyAttributeChanged(routingReadyAttributeValue_); - } -} - -bool RoutingControlObserverStubDefault::trySetRoutingReadyAttribute(am_RoutingReady_e value) { - if (!validateRoutingReadyAttributeRequestedValue(value)) - return false; - - const bool valueChanged = (routingReadyAttributeValue_ != value); - routingReadyAttributeValue_ = std::move(value); - return valueChanged; -} - -bool RoutingControlObserverStubDefault::validateRoutingReadyAttributeRequestedValue(const am_RoutingReady_e& value) { - return true; -} - - - -/** - * acknowledges a asyncConnect - */ -void RoutingControlObserverStubDefault::ackConnect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_connectionID_t connectionID, am_Error_e error) { - // Call old style methods in default - ackConnect(handle, connectionID, error); -} -void RoutingControlObserverStubDefault::ackConnect(am_Handle_s handle, am_connectionID_t connectionID, am_Error_e error) { - // No operation in default -} - -/** - * acknowledges a asyncDisconnect - */ -void RoutingControlObserverStubDefault::ackDisconnect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_connectionID_t connectionID, am_Error_e error) { - // Call old style methods in default - ackDisconnect(handle, connectionID, error); -} -void RoutingControlObserverStubDefault::ackDisconnect(am_Handle_s handle, am_connectionID_t connectionID, am_Error_e error) { - // No operation in default -} - -/** - * acknowledges a asyncsetSinkVolume - */ -void RoutingControlObserverStubDefault::ackSetSinkVolumeChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_volume_t volume, am_Error_e error) { - // Call old style methods in default - ackSetSinkVolumeChange(handle, volume, error); -} -void RoutingControlObserverStubDefault::ackSetSinkVolumeChange(am_Handle_s handle, am_volume_t volume, am_Error_e error) { - // No operation in default -} - -/** - * acknowledges a asyncsetSourceVolume - */ -void RoutingControlObserverStubDefault::ackSetSourceVolumeChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_volume_t volume, am_Error_e error) { - // Call old style methods in default - ackSetSourceVolumeChange(handle, volume, error); -} -void RoutingControlObserverStubDefault::ackSetSourceVolumeChange(am_Handle_s handle, am_volume_t volume, am_Error_e error) { - // No operation in default -} - -/** - * acknowlegde for asyncSetSourceState - */ -void RoutingControlObserverStubDefault::ackSetSourceState(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error) { - // Call old style methods in default - ackSetSourceState(handle, error); -} -void RoutingControlObserverStubDefault::ackSetSourceState(am_Handle_s handle, am_Error_e error) { - // No operation in default -} - -/** - * acknowledges asyncSetSinkSoundProperties - */ -void RoutingControlObserverStubDefault::ackSetSinkSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error) { - // Call old style methods in default - ackSetSinkSoundProperties(handle, error); -} -void RoutingControlObserverStubDefault::ackSetSinkSoundProperties(am_Handle_s handle, am_Error_e error) { - // No operation in default -} - -/** - * acknowledges asyncSetSinkSoundProperty - */ -void RoutingControlObserverStubDefault::ackSetSinkSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error) { - // Call old style methods in default - ackSetSinkSoundProperty(handle, error); -} -void RoutingControlObserverStubDefault::ackSetSinkSoundProperty(am_Handle_s handle, am_Error_e error) { - // No operation in default -} - -/** - * acknowledges asyncSetSourceSoundProperties - */ -void RoutingControlObserverStubDefault::ackSetSourceSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error) { - // Call old style methods in default - ackSetSourceSoundProperties(handle, error); -} -void RoutingControlObserverStubDefault::ackSetSourceSoundProperties(am_Handle_s handle, am_Error_e error) { - // No operation in default -} - -/** - * acknowledges asyncSetSourceSoundProperty - */ -void RoutingControlObserverStubDefault::ackSetSourceSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error) { - // Call old style methods in default - ackSetSourceSoundProperty(handle, error); -} -void RoutingControlObserverStubDefault::ackSetSourceSoundProperty(am_Handle_s handle, am_Error_e error) { - // No operation in default -} - -/** - * acknowledges asyncCrossFade - */ -void RoutingControlObserverStubDefault::ackCrossFading(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_HotSink_e hotSink, am_Error_e error) { - // Call old style methods in default - ackCrossFading(handle, hotSink, error); -} -void RoutingControlObserverStubDefault::ackCrossFading(am_Handle_s handle, am_HotSink_e hotSink, am_Error_e error) { - // No operation in default -} - -/** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ -void RoutingControlObserverStubDefault::ackSourceVolumeTick(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume) { - // Call old style methods in default - ackSourceVolumeTick(handle, sourceID, volume); -} -void RoutingControlObserverStubDefault::ackSourceVolumeTick(am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume) { - // No operation in default -} - -/** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ -void RoutingControlObserverStubDefault::ackSinkVolumeTick(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume) { - // Call old style methods in default - ackSinkVolumeTick(handle, sinkID, volume); -} -void RoutingControlObserverStubDefault::ackSinkVolumeTick(am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlObserverStubDefault::peekDomain(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string name, am_domainID_t& domainID, am_Error_e& error) { - // Call old style methods in default - peekDomain(name, domainID, error); -} -void RoutingControlObserverStubDefault::peekDomain(std::string name, am_domainID_t& domainID, am_Error_e& error) { - // No operation in default -} - -/** - * registers a domain -(at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ -void RoutingControlObserverStubDefault::registerDomain(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Domain_s domainData, std::string returnBusname, std::string returnInterface, am_domainID_t& domainID, am_Error_e& error) { - // Call old style methods in default - registerDomain(domainData, returnBusname, returnInterface, domainID, error); -} -void RoutingControlObserverStubDefault::registerDomain(am_Domain_s domainData, std::string returnBusname, std::string returnInterface, am_domainID_t& domainID, am_Error_e& error) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlObserverStubDefault::deregisterDomain(const std::shared_ptr<CommonAPI::ClientId> clientId, am_domainID_t domainID, am_Error_e& error) { - // Call old style methods in default - deregisterDomain(domainID, error); -} -void RoutingControlObserverStubDefault::deregisterDomain(am_domainID_t domainID, am_Error_e& error) { - // No operation in default -} - -/** - * registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ -void RoutingControlObserverStubDefault::registerGateway(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Gateway_s gatewayData, am_gatewayID_t& gatewayID, am_Error_e& error) { - // Call old style methods in default - registerGateway(gatewayData, gatewayID, error); -} -void RoutingControlObserverStubDefault::registerGateway(am_Gateway_s gatewayData, am_gatewayID_t& gatewayID, am_Error_e& error) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlObserverStubDefault::deregisterGateway(const std::shared_ptr<CommonAPI::ClientId> clientId, am_gatewayID_t gatewayID, am_Error_e& error) { - // Call old style methods in default - deregisterGateway(gatewayID, error); -} -void RoutingControlObserverStubDefault::deregisterGateway(am_gatewayID_t gatewayID, am_Error_e& error) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlObserverStubDefault::peekSink(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string name, am_sinkID_t& sinkID, am_Error_e& error) { - // Call old style methods in default - peekSink(name, sinkID, error); -} -void RoutingControlObserverStubDefault::peekSink(std::string name, am_sinkID_t& sinkID, am_Error_e& error) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlObserverStubDefault::registerSink(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Sink_s sinkData, am_sinkID_t& sinkID, am_Error_e& error) { - // Call old style methods in default - registerSink(sinkData, sinkID, error); -} -void RoutingControlObserverStubDefault::registerSink(am_Sink_s sinkData, am_sinkID_t& sinkID, am_Error_e& error) { - // No operation in default -} - -/** - * deregisters a sink. -(at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ -void RoutingControlObserverStubDefault::deregisterSink(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_Error_e& error) { - // Call old style methods in default - deregisterSink(sinkID, error); -} -void RoutingControlObserverStubDefault::deregisterSink(am_sinkID_t sinkID, am_Error_e& error) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlObserverStubDefault::peekSource(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string name, am_sourceID_t& sourceID, am_Error_e& error) { - // Call old style methods in default - peekSource(name, sourceID, error); -} -void RoutingControlObserverStubDefault::peekSource(std::string name, am_sourceID_t& sourceID, am_Error_e& error) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlObserverStubDefault::registerSource(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Source_s sourceData, am_sourceID_t& sourceID, am_Error_e& error) { - // Call old style methods in default - registerSource(sourceData, sourceID, error); -} -void RoutingControlObserverStubDefault::registerSource(am_Source_s sourceData, am_sourceID_t& sourceID, am_Error_e& error) { - // No operation in default -} - -/** - * deregisters a source -(at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ -void RoutingControlObserverStubDefault::deregisterSource(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_Error_e& error) { - // Call old style methods in default - deregisterSource(sourceID, error); -} -void RoutingControlObserverStubDefault::deregisterSource(am_sourceID_t sourceID, am_Error_e& error) { - // No operation in default -} - -/** - * this function registers a crossfader. -(at)return E_OK on succes, - * E_ALREADY_EXISTENT if already registered E_UNKOWN on error - */ -void RoutingControlObserverStubDefault::registerCrossfader(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Crossfader_s crossfaderData, am_crossfaderID_t& crossfaderID, am_Error_e& error) { - // Call old style methods in default - registerCrossfader(crossfaderData, crossfaderID, error); -} -void RoutingControlObserverStubDefault::registerCrossfader(am_Crossfader_s crossfaderData, am_crossfaderID_t& crossfaderID, am_Error_e& error) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlObserverStubDefault::deregisterCrossfader(const std::shared_ptr<CommonAPI::ClientId> clientId, am_crossfaderID_t crossfaderID, am_Error_e& error) { - // Call old style methods in default - deregisterCrossfader(crossfaderID, error); -} -void RoutingControlObserverStubDefault::deregisterCrossfader(am_crossfaderID_t crossfaderID, am_Error_e& error) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlObserverStubDefault::peekSourceClassID(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string name, am_sourceClass_t& sourceClassID, am_Error_e& error) { - // Call old style methods in default - peekSourceClassID(name, sourceClassID, error); -} -void RoutingControlObserverStubDefault::peekSourceClassID(std::string name, am_sourceClass_t& sourceClassID, am_Error_e& error) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlObserverStubDefault::peekSinkClassID(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string name, am_sinkClass_t& sinkClassID, am_Error_e& error) { - // Call old style methods in default - peekSinkClassID(name, sinkClassID, error); -} -void RoutingControlObserverStubDefault::peekSinkClassID(std::string name, am_sinkClass_t& sinkClassID, am_Error_e& error) { - // No operation in default -} - -/** - * is called when a low level interrupt changes it status. - */ -void RoutingControlObserverStubDefault::hookInterruptStatusChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_InterruptState_e interruptState) { - // Call old style methods in default - hookInterruptStatusChange(sourceID, interruptState); -} -void RoutingControlObserverStubDefault::hookInterruptStatusChange(am_sourceID_t sourceID, am_InterruptState_e interruptState) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlObserverStubDefault::hookDomainRegistrationComplete(const std::shared_ptr<CommonAPI::ClientId> clientId, am_domainID_t domainID) { - // Call old style methods in default - hookDomainRegistrationComplete(domainID); -} -void RoutingControlObserverStubDefault::hookDomainRegistrationComplete(am_domainID_t domainID) { - // No operation in default -} - -/** - * is called when a sink changes its availability - */ -void RoutingControlObserverStubDefault::hookSinkAvailablityStatusChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_Availability_s availability) { - // Call old style methods in default - hookSinkAvailablityStatusChange(sinkID, availability); -} -void RoutingControlObserverStubDefault::hookSinkAvailablityStatusChange(am_sinkID_t sinkID, am_Availability_s availability) { - // No operation in default -} - -/** - * is called when a source changes its availability - */ -void RoutingControlObserverStubDefault::hookSourceAvailablityStatusChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_Availability_s availability) { - // Call old style methods in default - hookSourceAvailablityStatusChange(sourceID, availability); -} -void RoutingControlObserverStubDefault::hookSourceAvailablityStatusChange(am_sourceID_t sourceID, am_Availability_s availability) { - // No operation in default -} - -/** - * is called when a domain changes its status. This used for early domains only - */ -void RoutingControlObserverStubDefault::hookDomainStateChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_domainID_t domainID, am_DomainState_e domainState) { - // Call old style methods in default - hookDomainStateChange(domainID, domainState); -} -void RoutingControlObserverStubDefault::hookDomainStateChange(am_domainID_t domainID, am_DomainState_e domainState) { - // No operation in default -} - -/** - * is called when the timinginformation (delay) changed for a connection. - */ -void RoutingControlObserverStubDefault::hookTimingInformationChanged(const std::shared_ptr<CommonAPI::ClientId> clientId, am_connectionID_t connectionID, am_timeSync_t delay) { - // Call old style methods in default - hookTimingInformationChanged(connectionID, delay); -} -void RoutingControlObserverStubDefault::hookTimingInformationChanged(am_connectionID_t connectionID, am_timeSync_t delay) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlObserverStubDefault::sendChangedData(const std::shared_ptr<CommonAPI::ClientId> clientId, am_EarlyData_L earlyData) { - // Call old style methods in default - sendChangedData(earlyData); -} -void RoutingControlObserverStubDefault::sendChangedData(am_EarlyData_L earlyData) { - // No operation in default -} - -/** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * gatewayID is not valid. - */ -void RoutingControlObserverStubDefault::updateGateway(const std::shared_ptr<CommonAPI::ClientId> clientId, am_gatewayID_t gatewayID, am_ConnectionFormat_L listSourceFormats, am_ConnectionFormat_L listSinkFormats, am_Convertion_L convertionMatrix, am_Error_e& error) { - // Call old style methods in default - updateGateway(gatewayID, listSourceFormats, listSinkFormats, convertionMatrix, error); -} -void RoutingControlObserverStubDefault::updateGateway(am_gatewayID_t gatewayID, am_ConnectionFormat_L listSourceFormats, am_ConnectionFormat_L listSinkFormats, am_Convertion_L convertionMatrix, am_Error_e& error) { - // No operation in default -} - -/** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * sinkID is not valid. - */ -void RoutingControlObserverStubDefault::updateSink(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_sinkClass_t sinkClassID, am_SoundProperty_L listSoundProperties, am_ConnectionFormat_L listConnectionFormats, am_MainSoundProperty_L listMainSoundProperties, am_Error_e& error) { - // Call old style methods in default - updateSink(sinkID, sinkClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties, error); -} -void RoutingControlObserverStubDefault::updateSink(am_sinkID_t sinkID, am_sinkClass_t sinkClassID, am_SoundProperty_L listSoundProperties, am_ConnectionFormat_L listConnectionFormats, am_MainSoundProperty_L listMainSoundProperties, am_Error_e& error) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlObserverStubDefault::updateSource(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_sourceClass_t sourceClassID, am_SoundProperty_L listSoundProperties, am_ConnectionFormat_L listConnectionFormats, am_MainSoundProperty_L listMainSoundProperties, am_Error_e& error) { - // Call old style methods in default - updateSource(sourceID, sourceClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties, error); -} -void RoutingControlObserverStubDefault::updateSource(am_sourceID_t sourceID, am_sourceClass_t sourceClassID, am_SoundProperty_L listSoundProperties, am_ConnectionFormat_L listConnectionFormats, am_MainSoundProperty_L listMainSoundProperties, am_Error_e& error) { - // No operation in default -} - -/** - * acknowledges a asyncSetSinkVolumes - */ -void RoutingControlObserverStubDefault::ackSetVolumes(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Volumes_L listvolumes, am_Error_e error) { - // Call old style methods in default - ackSetVolumes(handle, listvolumes, error); -} -void RoutingControlObserverStubDefault::ackSetVolumes(am_Handle_s handle, am_Volumes_L listvolumes, am_Error_e error) { - // No operation in default -} - -/** - * The acknowledge of the SinkNotificationConfiguration - */ -void RoutingControlObserverStubDefault::ackSinkNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error) { - // Call old style methods in default - ackSinkNotificationConfiguration(handle, error); -} -void RoutingControlObserverStubDefault::ackSinkNotificationConfiguration(am_Handle_s handle, am_Error_e error) { - // No operation in default -} - -/** - * The acknowledge of the SourceNotificationConfiguration - */ -void RoutingControlObserverStubDefault::ackSourceNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error) { - // Call old style methods in default - ackSourceNotificationConfiguration(handle, error); -} -void RoutingControlObserverStubDefault::ackSourceNotificationConfiguration(am_Handle_s handle, am_Error_e error) { - // No operation in default -} - -/** - * is called whenever a notified value needs to be send - */ -void RoutingControlObserverStubDefault::hookSinkNotificationDataChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_NotificationPayload_s payload) { - // Call old style methods in default - hookSinkNotificationDataChange(sinkID, payload); -} -void RoutingControlObserverStubDefault::hookSinkNotificationDataChange(am_sinkID_t sinkID, am_NotificationPayload_s payload) { - // No operation in default -} - -/** - * is called whenever a notified value needs to be send - */ -void RoutingControlObserverStubDefault::hookSourceNotificationDataChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_NotificationPayload_s payload) { - // Call old style methods in default - hookSourceNotificationDataChange(sourceID, payload); -} -void RoutingControlObserverStubDefault::hookSourceNotificationDataChange(am_sourceID_t sourceID, am_NotificationPayload_s payload) { - // No operation in default -} - -void RoutingControlObserverStubDefault::confirmRoutingRundown(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string domainName) { - // Call old style methods in default - confirmRoutingRundown(domainName); -} -void RoutingControlObserverStubDefault::confirmRoutingRundown(std::string domainName) { - // No operation in default -} - - - - -RoutingControlObserverStubDefault::RemoteEventHandler::RemoteEventHandler(RoutingControlObserverStubDefault* defaultStub): - defaultStub_(defaultStub) { -} - -} // namespace am -} // namespace genivi -} // namespace org diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStubDefault.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStubDefault.h deleted file mode 100644 index 0d19077..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStubDefault.h +++ /dev/null @@ -1,411 +0,0 @@ -/* -* 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/. -*/ -/** - * Routing Receive sendInterface description. - * @author Christian Mueller - */ -#ifndef ORG_GENIVI_AM_Routing_Control_Observer_STUB_DEFAULT_H_ -#define ORG_GENIVI_AM_Routing_Control_Observer_STUB_DEFAULT_H_ - - -#include <org/genivi/am/RoutingControlObserverStub.h> -#include <sstream> - -namespace org { -namespace genivi { -namespace am { - -/** - * Provides a default implementation for RoutingControlObserverStubRemoteEvent and - * RoutingControlObserverStub. Method callbacks have an empty implementation, - * remote set calls on attributes will always change the value of the attribute - * to the one received. - * - * Override this stub if you only want to provide a subset of the functionality - * that would be defined for this service, and/or if you do not need any non-default - * behaviour. - */ -class RoutingControlObserverStubDefault : public virtual RoutingControlObserverStub { -public: - RoutingControlObserverStubDefault(); - - RoutingControlObserverStubRemoteEvent* initStubAdapter(const std::shared_ptr<RoutingControlObserverStubAdapter>& stubAdapter); - - const CommonAPI::Version& getInterfaceVersion(std::shared_ptr<CommonAPI::ClientId> clientId); - - virtual const am_RoutingReady_e& getRoutingReadyAttribute(); - virtual const am_RoutingReady_e& getRoutingReadyAttribute(const std::shared_ptr<CommonAPI::ClientId> clientId); - virtual void setRoutingReadyAttribute(am_RoutingReady_e value); - - /** - * acknowledges a asyncConnect - */ - virtual void ackConnect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_connectionID_t connectionID, am_Error_e error); - virtual void ackConnect(am_Handle_s handle, am_connectionID_t connectionID, am_Error_e error); - - /** - * acknowledges a asyncDisconnect - */ - virtual void ackDisconnect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_connectionID_t connectionID, am_Error_e error); - virtual void ackDisconnect(am_Handle_s handle, am_connectionID_t connectionID, am_Error_e error); - - /** - * acknowledges a asyncsetSinkVolume - */ - virtual void ackSetSinkVolumeChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_volume_t volume, am_Error_e error); - virtual void ackSetSinkVolumeChange(am_Handle_s handle, am_volume_t volume, am_Error_e error); - - /** - * acknowledges a asyncsetSourceVolume - */ - virtual void ackSetSourceVolumeChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_volume_t volume, am_Error_e error); - virtual void ackSetSourceVolumeChange(am_Handle_s handle, am_volume_t volume, am_Error_e error); - - /** - * acknowlegde for asyncSetSourceState - */ - virtual void ackSetSourceState(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error); - virtual void ackSetSourceState(am_Handle_s handle, am_Error_e error); - - /** - * acknowledges asyncSetSinkSoundProperties - */ - virtual void ackSetSinkSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error); - virtual void ackSetSinkSoundProperties(am_Handle_s handle, am_Error_e error); - - /** - * acknowledges asyncSetSinkSoundProperty - */ - virtual void ackSetSinkSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error); - virtual void ackSetSinkSoundProperty(am_Handle_s handle, am_Error_e error); - - /** - * acknowledges asyncSetSourceSoundProperties - */ - virtual void ackSetSourceSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error); - virtual void ackSetSourceSoundProperties(am_Handle_s handle, am_Error_e error); - - /** - * acknowledges asyncSetSourceSoundProperty - */ - virtual void ackSetSourceSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error); - virtual void ackSetSourceSoundProperty(am_Handle_s handle, am_Error_e error); - - /** - * acknowledges asyncCrossFade - */ - virtual void ackCrossFading(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_HotSink_e hotSink, am_Error_e error); - virtual void ackCrossFading(am_Handle_s handle, am_HotSink_e hotSink, am_Error_e error); - - /** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ - virtual void ackSourceVolumeTick(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume); - virtual void ackSourceVolumeTick(am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume); - - /** - * acknowledges a volume tick. This can be used to display volumechanges during - * ramps - */ - virtual void ackSinkVolumeTick(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume); - virtual void ackSinkVolumeTick(am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume); - - /** - * 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 - */ - virtual void peekDomain(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string name, am_domainID_t& domainID, am_Error_e& error); - virtual void peekDomain(std::string name, am_domainID_t& domainID, am_Error_e& error); - - /** - * registers a domain - (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ - virtual void registerDomain(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Domain_s domainData, std::string returnBusname, std::string returnInterface, am_domainID_t& domainID, am_Error_e& error); - virtual void registerDomain(am_Domain_s domainData, std::string returnBusname, std::string returnInterface, am_domainID_t& domainID, am_Error_e& error); - - /** - * 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 - */ - virtual void deregisterDomain(const std::shared_ptr<CommonAPI::ClientId> clientId, am_domainID_t domainID, am_Error_e& error); - virtual void deregisterDomain(am_domainID_t domainID, am_Error_e& error); - - /** - * registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already - * registered E_UNKOWN on error - */ - virtual void registerGateway(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Gateway_s gatewayData, am_gatewayID_t& gatewayID, am_Error_e& error); - virtual void registerGateway(am_Gateway_s gatewayData, am_gatewayID_t& gatewayID, am_Error_e& error); - - /** - * 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 - */ - virtual void deregisterGateway(const std::shared_ptr<CommonAPI::ClientId> clientId, am_gatewayID_t gatewayID, am_Error_e& error); - virtual void deregisterGateway(am_gatewayID_t gatewayID, am_Error_e& error); - - /** - * 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 - */ - virtual void peekSink(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string name, am_sinkID_t& sinkID, am_Error_e& error); - virtual void peekSink(std::string name, am_sinkID_t& sinkID, am_Error_e& error); - - /** - * 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 - */ - virtual void registerSink(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Sink_s sinkData, am_sinkID_t& sinkID, am_Error_e& error); - virtual void registerSink(am_Sink_s sinkData, am_sinkID_t& sinkID, am_Error_e& error); - - /** - * deregisters a sink. - (at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ - virtual void deregisterSink(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_Error_e& error); - virtual void deregisterSink(am_sinkID_t sinkID, am_Error_e& error); - - /** - * 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 - */ - virtual void peekSource(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string name, am_sourceID_t& sourceID, am_Error_e& error); - virtual void peekSource(std::string name, am_sourceID_t& sourceID, am_Error_e& error); - - /** - * 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 - */ - virtual void registerSource(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Source_s sourceData, am_sourceID_t& sourceID, am_Error_e& error); - virtual void registerSource(am_Source_s sourceData, am_sourceID_t& sourceID, am_Error_e& error); - - /** - * deregisters a source - (at)return E_OK on succes, E_NON_EXISTENT if not found - * E_UNKOWN on error - */ - virtual void deregisterSource(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_Error_e& error); - virtual void deregisterSource(am_sourceID_t sourceID, am_Error_e& error); - - /** - * this function registers a crossfader. - (at)return E_OK on succes, - * E_ALREADY_EXISTENT if already registered E_UNKOWN on error - */ - virtual void registerCrossfader(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Crossfader_s crossfaderData, am_crossfaderID_t& crossfaderID, am_Error_e& error); - virtual void registerCrossfader(am_Crossfader_s crossfaderData, am_crossfaderID_t& crossfaderID, am_Error_e& error); - - /** - * 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 - */ - virtual void deregisterCrossfader(const std::shared_ptr<CommonAPI::ClientId> clientId, am_crossfaderID_t crossfaderID, am_Error_e& error); - virtual void deregisterCrossfader(am_crossfaderID_t crossfaderID, am_Error_e& error); - - /** - * 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 - */ - virtual void peekSourceClassID(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string name, am_sourceClass_t& sourceClassID, am_Error_e& error); - virtual void peekSourceClassID(std::string name, am_sourceClass_t& sourceClassID, am_Error_e& error); - - /** - * 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 - */ - virtual void peekSinkClassID(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string name, am_sinkClass_t& sinkClassID, am_Error_e& error); - virtual void peekSinkClassID(std::string name, am_sinkClass_t& sinkClassID, am_Error_e& error); - - /** - * is called when a low level interrupt changes it status. - */ - virtual void hookInterruptStatusChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_InterruptState_e interruptState); - virtual void hookInterruptStatusChange(am_sourceID_t sourceID, am_InterruptState_e interruptState); - - /** - * 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 - */ - virtual void hookDomainRegistrationComplete(const std::shared_ptr<CommonAPI::ClientId> clientId, am_domainID_t domainID); - virtual void hookDomainRegistrationComplete(am_domainID_t domainID); - - /** - * is called when a sink changes its availability - */ - virtual void hookSinkAvailablityStatusChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_Availability_s availability); - virtual void hookSinkAvailablityStatusChange(am_sinkID_t sinkID, am_Availability_s availability); - - /** - * is called when a source changes its availability - */ - virtual void hookSourceAvailablityStatusChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_Availability_s availability); - virtual void hookSourceAvailablityStatusChange(am_sourceID_t sourceID, am_Availability_s availability); - - /** - * is called when a domain changes its status. This used for early domains only - */ - virtual void hookDomainStateChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_domainID_t domainID, am_DomainState_e domainState); - virtual void hookDomainStateChange(am_domainID_t domainID, am_DomainState_e domainState); - - /** - * is called when the timinginformation (delay) changed for a connection. - */ - virtual void hookTimingInformationChanged(const std::shared_ptr<CommonAPI::ClientId> clientId, am_connectionID_t connectionID, am_timeSync_t delay); - virtual void hookTimingInformationChanged(am_connectionID_t connectionID, am_timeSync_t delay); - - /** - * 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 - */ - virtual void sendChangedData(const std::shared_ptr<CommonAPI::ClientId> clientId, am_EarlyData_L earlyData); - virtual void sendChangedData(am_EarlyData_L earlyData); - - /** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * gatewayID is not valid. - */ - virtual void updateGateway(const std::shared_ptr<CommonAPI::ClientId> clientId, am_gatewayID_t gatewayID, am_ConnectionFormat_L listSourceFormats, am_ConnectionFormat_L listSinkFormats, am_Convertion_L convertionMatrix, am_Error_e& error); - virtual void updateGateway(am_gatewayID_t gatewayID, am_ConnectionFormat_L listSourceFormats, am_ConnectionFormat_L listSinkFormats, am_Convertion_L convertionMatrix, am_Error_e& error); - - /** - * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the - * sinkID is not valid. - */ - virtual void updateSink(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_sinkClass_t sinkClassID, am_SoundProperty_L listSoundProperties, am_ConnectionFormat_L listConnectionFormats, am_MainSoundProperty_L listMainSoundProperties, am_Error_e& error); - virtual void updateSink(am_sinkID_t sinkID, am_sinkClass_t sinkClassID, am_SoundProperty_L listSoundProperties, am_ConnectionFormat_L listConnectionFormats, am_MainSoundProperty_L listMainSoundProperties, am_Error_e& error); - - /** - * 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 - */ - virtual void updateSource(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_sourceClass_t sourceClassID, am_SoundProperty_L listSoundProperties, am_ConnectionFormat_L listConnectionFormats, am_MainSoundProperty_L listMainSoundProperties, am_Error_e& error); - virtual void updateSource(am_sourceID_t sourceID, am_sourceClass_t sourceClassID, am_SoundProperty_L listSoundProperties, am_ConnectionFormat_L listConnectionFormats, am_MainSoundProperty_L listMainSoundProperties, am_Error_e& error); - - /** - * acknowledges a asyncSetSinkVolumes - */ - virtual void ackSetVolumes(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Volumes_L listvolumes, am_Error_e error); - virtual void ackSetVolumes(am_Handle_s handle, am_Volumes_L listvolumes, am_Error_e error); - - /** - * The acknowledge of the SinkNotificationConfiguration - */ - virtual void ackSinkNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error); - virtual void ackSinkNotificationConfiguration(am_Handle_s handle, am_Error_e error); - - /** - * The acknowledge of the SourceNotificationConfiguration - */ - virtual void ackSourceNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Error_e error); - virtual void ackSourceNotificationConfiguration(am_Handle_s handle, am_Error_e error); - - /** - * is called whenever a notified value needs to be send - */ - virtual void hookSinkNotificationDataChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_NotificationPayload_s payload); - virtual void hookSinkNotificationDataChange(am_sinkID_t sinkID, am_NotificationPayload_s payload); - - /** - * is called whenever a notified value needs to be send - */ - virtual void hookSourceNotificationDataChange(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_NotificationPayload_s payload); - virtual void hookSourceNotificationDataChange(am_sourceID_t sourceID, am_NotificationPayload_s payload); - - virtual void confirmRoutingRundown(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string domainName); - virtual void confirmRoutingRundown(std::string domainName); - - - - -protected: - /** - * 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. - */ - virtual bool trySetRoutingReadyAttribute(am_RoutingReady_e value); - virtual bool validateRoutingReadyAttributeRequestedValue(const am_RoutingReady_e& value); -private: - class RemoteEventHandler: public RoutingControlObserverStubRemoteEvent { - public: - RemoteEventHandler(RoutingControlObserverStubDefault* defaultStub); - - /** - * 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. - */ - - - private: - RoutingControlObserverStubDefault* defaultStub_; - }; - - RemoteEventHandler remoteEventHandler_; - - /** - * 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. - */ - am_RoutingReady_e routingReadyAttributeValue_; - - CommonAPI::Version interfaceVersion_; -}; - -} // namespace am -} // namespace genivi -} // namespace org - -#endif // ORG_GENIVI_AM_Routing_Control_Observer_STUB_DEFAULT_H_ diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlProxy.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlProxy.h deleted file mode 100644 index 4cc1ba0..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlProxy.h +++ /dev/null @@ -1,708 +0,0 @@ -/* -* 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/. -*/ -/** - * This class implements everything from Audiomanager -> RoutingAdapter - * @author Christian Mueller - */ -#ifndef ORG_GENIVI_AM_Routing_Control_PROXY_H_ -#define ORG_GENIVI_AM_Routing_Control_PROXY_H_ - -#include "RoutingControlProxyBase.h" - - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace org { -namespace genivi { -namespace am { - -template <typename ... _AttributeExtensions> -class RoutingControlProxy: virtual public RoutingControl, virtual public RoutingControlProxyBase -, public _AttributeExtensions... { -public: - RoutingControlProxy(std::shared_ptr<CommonAPI::Proxy> delegate); - ~RoutingControlProxy(); - - typedef RoutingControl InterfaceType; - - - - - /** - * aborts an asynchronous action. - (at)return E_OK on success, E_UNKNOWN on error, - * E_NON_EXISTENT if handle was not found - * - * Calls asyncAbort with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void asyncAbort(const am_Handle_s& handle, CommonAPI::CallStatus& callStatus); - /** - * Calls asyncAbort with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> asyncAbortAsync(const am_Handle_s& handle, AsyncAbortAsyncCallback callback); - /** - * connects a source to a sink - (at)return E_OK on success, E_UNKNOWN on error, - * E_WRONG_FORMAT in case am_CustomConnectionFormat_t does not match - * - * Calls asyncConnect with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void asyncConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_CustomConnectionFormat_t& connectionFormat, CommonAPI::CallStatus& callStatus); - /** - * Calls asyncConnect with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> asyncConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_CustomConnectionFormat_t& connectionFormat, AsyncConnectAsyncCallback callback); - /** - * disconnect a connection with given connectionID - (at)return E_OK on success, - * E_UNKNOWN on error, E_NON_EXISTENT if connection was not found - * - * Calls asyncDisconnect with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void asyncDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, CommonAPI::CallStatus& callStatus); - /** - * Calls asyncDisconnect with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> asyncDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, AsyncDisconnectAsyncCallback callback); - /** - * 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 - * - * Calls asyncSetSinkVolume with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void asyncSetSinkVolume(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus); - /** - * Calls asyncSetSinkVolume with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> asyncSetSinkVolumeAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, AsyncSetSinkVolumeAsyncCallback callback); - /** - * 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 - * - * Calls asyncSetSourceVolume with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void asyncSetSourceVolume(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus); - /** - * Calls asyncSetSourceVolume with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> asyncSetSourceVolumeAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, AsyncSetSourceVolumeAsyncCallback callback); - /** - * This function is used to set the source state of a particular - * source. - (at)return E_OK on success, E_UNKNOWN on error - * - * Calls asyncSetSourceState with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void asyncSetSourceState(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, CommonAPI::CallStatus& callStatus); - /** - * Calls asyncSetSourceState with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> asyncSetSourceStateAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, AsyncSetSourceStateAsyncCallback callback); - /** - * 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 - * - * Calls asyncSetSinkSoundProperties with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void asyncSetSinkSoundProperties(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus); - /** - * Calls asyncSetSinkSoundProperties with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, AsyncSetSinkSoundPropertiesAsyncCallback callback); - /** - * 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 - * - * Calls asyncSetSinkSoundProperty with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void asyncSetSinkSoundProperty(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus); - /** - * Calls asyncSetSinkSoundProperty with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, AsyncSetSinkSoundPropertyAsyncCallback callback); - /** - * 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 - * - * Calls asyncSetSourceSoundProperties with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void asyncSetSourceSoundProperties(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus); - /** - * Calls asyncSetSourceSoundProperties with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, AsyncSetSourceSoundPropertiesAsyncCallback callback); - /** - * 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 - * - * Calls asyncSetSourceSoundProperty with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void asyncSetSourceSoundProperty(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus); - /** - * Calls asyncSetSourceSoundProperty with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, AsyncSetSourceSoundPropertyAsyncCallback callback); - /** - * this function triggers crossfading. - (at)return E_OK on success, E_UNKNOWN on - * error - * - * Calls asyncCrossFade with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void asyncCrossFade(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_CustomRampType_t& rampType, const am_time_t& time, CommonAPI::CallStatus& callStatus); - /** - * Calls asyncCrossFade with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> asyncCrossFadeAsync(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_CustomRampType_t& rampType, const am_time_t& time, AsyncCrossFadeAsyncCallback callback); - /** - * 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 - * - * Calls setDomainState with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void setDomainState(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus, am_Error_e& error); - /** - * Calls setDomainState with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> setDomainStateAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, SetDomainStateAsyncCallback callback); - /** - * Calls asyncSetVolumes with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void asyncSetVolumes(const am_Handle_s& handle, const am_Volumes_L& volumes, CommonAPI::CallStatus& callStatus); - /** - * Calls asyncSetVolumes with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> asyncSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& volumes, AsyncSetVolumesAsyncCallback callback); - /** - * Calls asyncSetSinkNotificationConfiguration with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void asyncSetSinkNotificationConfiguration(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus); - /** - * Calls asyncSetSinkNotificationConfiguration with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> asyncSetSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSinkNotificationConfigurationAsyncCallback callback); - /** - * Calls asyncSetSourceNotificationConfiguration with synchronous semantics. - * - * All const parameters are input parameters to this method. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void asyncSetSourceNotificationConfiguration(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus); - /** - * Calls asyncSetSourceNotificationConfiguration with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future<CommonAPI::CallStatus> asyncSetSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSourceNotificationConfigurationAsyncCallback callback); - - - /** - * Returns the CommonAPI address of the remote partner this proxy communicates with. - */ - virtual std::string getAddress() const; - - /** - * Returns the domain of the remote partner this proxy communicates with. - */ - virtual const std::string& getDomain() const; - - /** - * Returns the service ID of the remote partner this proxy communicates with. - */ - virtual const std::string& getServiceId() const; - - /** - * Returns the instance ID of the remote partner this proxy communicates with. - */ - virtual const std::string& getInstanceId() const; - - /** - * Returns true if the remote partner for this proxy is currently known to be available. - */ - virtual bool isAvailable() const; - - /** - * Returns true if the remote partner for this proxy is available. - */ - virtual bool isAvailableBlocking() const; - - /** - * Returns the wrapper class that is used to (de-)register for notifications about - * the availability of the remote partner of this proxy. - */ - virtual CommonAPI::ProxyStatusEvent& getProxyStatusEvent(); - - /** - * Returns the wrapper class that is used to access version information of the remote - * partner of this proxy. - */ - virtual CommonAPI::InterfaceVersionAttribute& getInterfaceVersionAttribute(); - - private: - std::shared_ptr<RoutingControlProxyBase> delegate_; -}; - - -// -// RoutingControlProxy Implementation -// -template <typename ... _AttributeExtensions> -RoutingControlProxy<_AttributeExtensions...>::RoutingControlProxy(std::shared_ptr<CommonAPI::Proxy> delegate): - delegate_(std::dynamic_pointer_cast<RoutingControlProxyBase>(delegate)), - _AttributeExtensions(*(std::dynamic_pointer_cast<RoutingControlProxyBase>(delegate)))... { -} - -template <typename ... _AttributeExtensions> -RoutingControlProxy<_AttributeExtensions...>::~RoutingControlProxy() { -} - -/** - * aborts an asynchronous action. -(at)return E_OK on success, E_UNKNOWN on error, - * E_NON_EXISTENT if handle was not found - */ -template <typename ... _AttributeExtensions> -void RoutingControlProxy<_AttributeExtensions...>::asyncAbort(const am_Handle_s& handle, CommonAPI::CallStatus& callStatus) { - delegate_->asyncAbort(handle, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncAbortAsync(const am_Handle_s& handle, AsyncAbortAsyncCallback callback) { - return delegate_->asyncAbortAsync(handle, callback); -} -/** - * connects a source to a sink -(at)return E_OK on success, E_UNKNOWN on error, - * E_WRONG_FORMAT in case am_CustomConnectionFormat_t does not match - */ -template <typename ... _AttributeExtensions> -void RoutingControlProxy<_AttributeExtensions...>::asyncConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_CustomConnectionFormat_t& connectionFormat, CommonAPI::CallStatus& callStatus) { - delegate_->asyncConnect(handle, connectionID, sourceID, sinkID, connectionFormat, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_CustomConnectionFormat_t& connectionFormat, AsyncConnectAsyncCallback callback) { - return delegate_->asyncConnectAsync(handle, connectionID, sourceID, sinkID, connectionFormat, callback); -} -/** - * disconnect a connection with given connectionID -(at)return E_OK on success, - * E_UNKNOWN on error, E_NON_EXISTENT if connection was not found - */ -template <typename ... _AttributeExtensions> -void RoutingControlProxy<_AttributeExtensions...>::asyncDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, CommonAPI::CallStatus& callStatus) { - delegate_->asyncDisconnect(handle, connectionID, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, AsyncDisconnectAsyncCallback callback) { - return delegate_->asyncDisconnectAsync(handle, connectionID, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlProxy<_AttributeExtensions...>::asyncSetSinkVolume(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus) { - delegate_->asyncSetSinkVolume(handle, sinkID, volume, ramp, time, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSinkVolumeAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, AsyncSetSinkVolumeAsyncCallback callback) { - return delegate_->asyncSetSinkVolumeAsync(handle, sinkID, volume, ramp, time, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceVolume(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus) { - delegate_->asyncSetSourceVolume(handle, sourceID, volume, ramp, time, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceVolumeAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, AsyncSetSourceVolumeAsyncCallback callback) { - return delegate_->asyncSetSourceVolumeAsync(handle, sourceID, volume, ramp, time, callback); -} -/** - * This function is used to set the source state of a particular - * source. -(at)return E_OK on success, E_UNKNOWN on error - */ -template <typename ... _AttributeExtensions> -void RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceState(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, CommonAPI::CallStatus& callStatus) { - delegate_->asyncSetSourceState(handle, sourceID, state, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceStateAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, AsyncSetSourceStateAsyncCallback callback) { - return delegate_->asyncSetSourceStateAsync(handle, sourceID, state, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlProxy<_AttributeExtensions...>::asyncSetSinkSoundProperties(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) { - delegate_->asyncSetSinkSoundProperties(handle, sinkID, listSoundProperties, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, AsyncSetSinkSoundPropertiesAsyncCallback callback) { - return delegate_->asyncSetSinkSoundPropertiesAsync(handle, sinkID, listSoundProperties, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlProxy<_AttributeExtensions...>::asyncSetSinkSoundProperty(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) { - delegate_->asyncSetSinkSoundProperty(handle, sinkID, soundProperty, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, AsyncSetSinkSoundPropertyAsyncCallback callback) { - return delegate_->asyncSetSinkSoundPropertyAsync(handle, sinkID, soundProperty, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceSoundProperties(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) { - delegate_->asyncSetSourceSoundProperties(handle, sourceID, listSoundProperties, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, AsyncSetSourceSoundPropertiesAsyncCallback callback) { - return delegate_->asyncSetSourceSoundPropertiesAsync(handle, sourceID, listSoundProperties, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceSoundProperty(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) { - delegate_->asyncSetSourceSoundProperty(handle, sourceID, soundProperty, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, AsyncSetSourceSoundPropertyAsyncCallback callback) { - return delegate_->asyncSetSourceSoundPropertyAsync(handle, sourceID, soundProperty, callback); -} -/** - * this function triggers crossfading. -(at)return E_OK on success, E_UNKNOWN on - * error - */ -template <typename ... _AttributeExtensions> -void RoutingControlProxy<_AttributeExtensions...>::asyncCrossFade(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_CustomRampType_t& rampType, const am_time_t& time, CommonAPI::CallStatus& callStatus) { - delegate_->asyncCrossFade(handle, crossfaderID, hotSink, rampType, time, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncCrossFadeAsync(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_CustomRampType_t& rampType, const am_time_t& time, AsyncCrossFadeAsyncCallback callback) { - return delegate_->asyncCrossFadeAsync(handle, crossfaderID, hotSink, rampType, time, callback); -} -/** - * 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 - */ -template <typename ... _AttributeExtensions> -void RoutingControlProxy<_AttributeExtensions...>::setDomainState(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus, am_Error_e& error) { - delegate_->setDomainState(domainID, domainState, callStatus, error); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::setDomainStateAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, SetDomainStateAsyncCallback callback) { - return delegate_->setDomainStateAsync(domainID, domainState, callback); -} -template <typename ... _AttributeExtensions> -void RoutingControlProxy<_AttributeExtensions...>::asyncSetVolumes(const am_Handle_s& handle, const am_Volumes_L& volumes, CommonAPI::CallStatus& callStatus) { - delegate_->asyncSetVolumes(handle, volumes, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& volumes, AsyncSetVolumesAsyncCallback callback) { - return delegate_->asyncSetVolumesAsync(handle, volumes, callback); -} -template <typename ... _AttributeExtensions> -void RoutingControlProxy<_AttributeExtensions...>::asyncSetSinkNotificationConfiguration(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) { - delegate_->asyncSetSinkNotificationConfiguration(handle, sinkID, notificationConfiguration, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSinkNotificationConfigurationAsyncCallback callback) { - return delegate_->asyncSetSinkNotificationConfigurationAsync(handle, sinkID, notificationConfiguration, callback); -} -template <typename ... _AttributeExtensions> -void RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceNotificationConfiguration(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) { - delegate_->asyncSetSourceNotificationConfiguration(handle, sourceID, notificationConfiguration, callStatus); -} - -template <typename ... _AttributeExtensions> -std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSourceNotificationConfigurationAsyncCallback callback) { - return delegate_->asyncSetSourceNotificationConfigurationAsync(handle, sourceID, notificationConfiguration, callback); -} - -template <typename ... _AttributeExtensions> -std::string RoutingControlProxy<_AttributeExtensions...>::getAddress() const { - return delegate_->getAddress(); -} - -template <typename ... _AttributeExtensions> -const std::string& RoutingControlProxy<_AttributeExtensions...>::getDomain() const { - return delegate_->getDomain(); -} - -template <typename ... _AttributeExtensions> -const std::string& RoutingControlProxy<_AttributeExtensions...>::getServiceId() const { - return delegate_->getServiceId(); -} - -template <typename ... _AttributeExtensions> -const std::string& RoutingControlProxy<_AttributeExtensions...>::getInstanceId() const { - return delegate_->getInstanceId(); -} - -template <typename ... _AttributeExtensions> -bool RoutingControlProxy<_AttributeExtensions...>::isAvailable() const { - return delegate_->isAvailable(); -} - -template <typename ... _AttributeExtensions> -bool RoutingControlProxy<_AttributeExtensions...>::isAvailableBlocking() const { - return delegate_->isAvailableBlocking(); -} - -template <typename ... _AttributeExtensions> -CommonAPI::ProxyStatusEvent& RoutingControlProxy<_AttributeExtensions...>::getProxyStatusEvent() { - return delegate_->getProxyStatusEvent(); -} - -template <typename ... _AttributeExtensions> -CommonAPI::InterfaceVersionAttribute& RoutingControlProxy<_AttributeExtensions...>::getInterfaceVersionAttribute() { - return delegate_->getInterfaceVersionAttribute(); -} - - -} // namespace am -} // namespace genivi -} // namespace org - - -#endif // ORG_GENIVI_AM_Routing_Control_PROXY_H_ diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlProxyBase.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlProxyBase.h deleted file mode 100644 index 75bba47..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlProxyBase.h +++ /dev/null @@ -1,165 +0,0 @@ -/* -* 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/. -*/ -/** - * This class implements everything from Audiomanager -> RoutingAdapter - * @author Christian Mueller - */ -#ifndef ORG_GENIVI_AM_Routing_Control_PROXY_BASE_H_ -#define ORG_GENIVI_AM_Routing_Control_PROXY_BASE_H_ - -#include "RoutingControl.h" - - -#include <org/genivi/am.h> - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include <CommonAPI/InputStream.h> -#include <CommonAPI/OutputStream.h> -#include <CommonAPI/SerializableStruct.h> -#include <cstdint> -#include <vector> - -#include <CommonAPI/Proxy.h> -#include <functional> -#include <future> - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace org { -namespace genivi { -namespace am { - -class RoutingControlProxyBase: virtual public CommonAPI::Proxy { - public: - - typedef std::function<void(const CommonAPI::CallStatus&)> AsyncAbortAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AsyncConnectAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AsyncDisconnectAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSinkVolumeAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSourceVolumeAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSourceStateAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSinkSoundPropertiesAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSinkSoundPropertyAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSourceSoundPropertiesAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSourceSoundPropertyAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AsyncCrossFadeAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> SetDomainStateAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetVolumesAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSinkNotificationConfigurationAsyncCallback; - typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSourceNotificationConfigurationAsyncCallback; - - - - /** - * aborts an asynchronous action. - (at)return E_OK on success, E_UNKNOWN on error, - * E_NON_EXISTENT if handle was not found - */ - virtual void asyncAbort(const am_Handle_s& handle, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> asyncAbortAsync(const am_Handle_s& handle, AsyncAbortAsyncCallback callback) = 0; - /** - * connects a source to a sink - (at)return E_OK on success, E_UNKNOWN on error, - * E_WRONG_FORMAT in case am_CustomConnectionFormat_t does not match - */ - virtual void asyncConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_CustomConnectionFormat_t& connectionFormat, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> asyncConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_CustomConnectionFormat_t& connectionFormat, AsyncConnectAsyncCallback callback) = 0; - /** - * disconnect a connection with given connectionID - (at)return E_OK on success, - * E_UNKNOWN on error, E_NON_EXISTENT if connection was not found - */ - virtual void asyncDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> asyncDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, AsyncDisconnectAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void asyncSetSinkVolume(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> asyncSetSinkVolumeAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, AsyncSetSinkVolumeAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void asyncSetSourceVolume(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> asyncSetSourceVolumeAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_CustomRampType_t& ramp, const am_time_t& time, AsyncSetSourceVolumeAsyncCallback callback) = 0; - /** - * This function is used to set the source state of a particular - * source. - (at)return E_OK on success, E_UNKNOWN on error - */ - virtual void asyncSetSourceState(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> asyncSetSourceStateAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, AsyncSetSourceStateAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void asyncSetSinkSoundProperties(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, AsyncSetSinkSoundPropertiesAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void asyncSetSinkSoundProperty(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, AsyncSetSinkSoundPropertyAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void asyncSetSourceSoundProperties(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, AsyncSetSourceSoundPropertiesAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void asyncSetSourceSoundProperty(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, AsyncSetSourceSoundPropertyAsyncCallback callback) = 0; - /** - * this function triggers crossfading. - (at)return E_OK on success, E_UNKNOWN on - * error - */ - virtual void asyncCrossFade(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_CustomRampType_t& rampType, const am_time_t& time, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> asyncCrossFadeAsync(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_CustomRampType_t& rampType, const am_time_t& time, AsyncCrossFadeAsyncCallback callback) = 0; - /** - * 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 - */ - virtual void setDomainState(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; - virtual std::future<CommonAPI::CallStatus> setDomainStateAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, SetDomainStateAsyncCallback callback) = 0; - virtual void asyncSetVolumes(const am_Handle_s& handle, const am_Volumes_L& volumes, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> asyncSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& volumes, AsyncSetVolumesAsyncCallback callback) = 0; - virtual void asyncSetSinkNotificationConfiguration(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> asyncSetSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSinkNotificationConfigurationAsyncCallback callback) = 0; - virtual void asyncSetSourceNotificationConfiguration(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) = 0; - virtual std::future<CommonAPI::CallStatus> asyncSetSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSourceNotificationConfigurationAsyncCallback callback) = 0; -}; - -} // namespace am -} // namespace genivi -} // namespace org - -#endif // ORG_GENIVI_AM_Routing_Control_PROXY_BASE_H_ diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStub.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStub.h deleted file mode 100644 index 5303589..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStub.h +++ /dev/null @@ -1,198 +0,0 @@ -/* -* 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/. -*/ -/** - * This class implements everything from Audiomanager -> RoutingAdapter - * @author Christian Mueller - */ -#ifndef ORG_GENIVI_AM_Routing_Control_STUB_H_ -#define ORG_GENIVI_AM_Routing_Control_STUB_H_ - - - -#include <org/genivi/am.h> - -#include "RoutingControl.h" - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include <CommonAPI/InputStream.h> -#include <CommonAPI/OutputStream.h> -#include <CommonAPI/SerializableStruct.h> -#include <cstdint> -#include <vector> - -#include <CommonAPI/Stub.h> - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace org { -namespace genivi { -namespace am { - -/** - * Receives messages from remote and handles all dispatching of deserialized calls - * to a stub for the service RoutingControl. Also provides means to send broadcasts - * and attribute-changed-notifications of observable attributes as defined by this service. - * An application developer should not need to bother with this class. - */ -class RoutingControlStubAdapter: virtual public CommonAPI::StubAdapter, public RoutingControl { - public: - - - - virtual void deactivateManagedInstances() = 0; -protected: - /** - * Defines properties for storing the ClientIds of clients / proxies that have - * subscribed to the selective broadcasts - */ -}; - - -/** - * Defines the necessary callbacks to handle remote set events related to the attributes - * defined in the IDL description for RoutingControl. - * For each attribute two callbacks are defined: - * - a verification callback that allows to verify the requested value and to prevent setting - * e.g. an invalid value ("onRemoteSet<AttributeName>"). - * - an action callback to do local work after the attribute value has been changed - * ("onRemote<AttributeName>Changed"). - * - * This class and the one below are the ones an application developer needs to have - * a look at if he wants to implement a service. - */ -class RoutingControlStubRemoteEvent { - public: - virtual ~RoutingControlStubRemoteEvent() { } - -}; - - -/** - * Defines the interface that must be implemented by any class that should provide - * the service RoutingControl to remote clients. - * This class and the one above are the ones an application developer needs to have - * a look at if he wants to implement a service. - */ -class RoutingControlStub : public virtual CommonAPI::Stub<RoutingControlStubAdapter, RoutingControlStubRemoteEvent> { -public: - virtual ~RoutingControlStub() { } - virtual const CommonAPI::Version& getInterfaceVersion(std::shared_ptr<CommonAPI::ClientId> clientId) = 0; - - - /** - * aborts an asynchronous action. - (at)return E_OK on success, E_UNKNOWN on error, - * E_NON_EXISTENT if handle was not found - */ - /// This is the method that will be called on remote calls on the method asyncAbort. - virtual void asyncAbort(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle) = 0; - /** - * connects a source to a sink - (at)return E_OK on success, E_UNKNOWN on error, - * E_WRONG_FORMAT in case am_CustomConnectionFormat_t does not match - */ - /// This is the method that will be called on remote calls on the method asyncConnect. - virtual void asyncConnect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_connectionID_t connectionID, am_sourceID_t sourceID, am_sinkID_t sinkID, am_CustomConnectionFormat_t connectionFormat) = 0; - /** - * disconnect a connection with given connectionID - (at)return E_OK on success, - * E_UNKNOWN on error, E_NON_EXISTENT if connection was not found - */ - /// This is the method that will be called on remote calls on the method asyncDisconnect. - virtual void asyncDisconnect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_connectionID_t connectionID) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method asyncSetSinkVolume. - virtual void asyncSetSinkVolume(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume, am_CustomRampType_t ramp, am_time_t time) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method asyncSetSourceVolume. - virtual void asyncSetSourceVolume(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume, am_CustomRampType_t ramp, am_time_t time) = 0; - /** - * This function is used to set the source state of a particular - * source. - (at)return E_OK on success, E_UNKNOWN on error - */ - /// This is the method that will be called on remote calls on the method asyncSetSourceState. - virtual void asyncSetSourceState(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_SourceState_e state) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method asyncSetSinkSoundProperties. - virtual void asyncSetSinkSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_L listSoundProperties) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method asyncSetSinkSoundProperty. - virtual void asyncSetSinkSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_s soundProperty) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method asyncSetSourceSoundProperties. - virtual void asyncSetSourceSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_L listSoundProperties) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method asyncSetSourceSoundProperty. - virtual void asyncSetSourceSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_s soundProperty) = 0; - /** - * this function triggers crossfading. - (at)return E_OK on success, E_UNKNOWN on - * error - */ - /// This is the method that will be called on remote calls on the method asyncCrossFade. - virtual void asyncCrossFade(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_crossfaderID_t crossfaderID, am_HotSink_e hotSink, am_CustomRampType_t rampType, am_time_t time) = 0; - /** - * 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 - */ - /// This is the method that will be called on remote calls on the method setDomainState. - virtual void setDomainState(const std::shared_ptr<CommonAPI::ClientId> clientId, am_domainID_t domainID, am_DomainState_e domainState, am_Error_e& error) = 0; - /// This is the method that will be called on remote calls on the method asyncSetVolumes. - virtual void asyncSetVolumes(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Volumes_L volumes) = 0; - /// This is the method that will be called on remote calls on the method asyncSetSinkNotificationConfiguration. - virtual void asyncSetSinkNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_NotificationConfiguration_s notificationConfiguration) = 0; - /// This is the method that will be called on remote calls on the method asyncSetSourceNotificationConfiguration. - virtual void asyncSetSourceNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_NotificationConfiguration_s notificationConfiguration) = 0; - - using CommonAPI::Stub<RoutingControlStubAdapter, RoutingControlStubRemoteEvent>::initStubAdapter; - typedef CommonAPI::Stub<RoutingControlStubAdapter, RoutingControlStubRemoteEvent>::StubAdapterType StubAdapterType; - typedef CommonAPI::Stub<RoutingControlStubAdapter, RoutingControlStubRemoteEvent>::RemoteEventHandlerType RemoteEventHandlerType; -}; - -} // namespace am -} // namespace genivi -} // namespace org - -#endif // ORG_GENIVI_AM_Routing_Control_STUB_H_ diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStubDefault.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStubDefault.cpp deleted file mode 100644 index 77e34e4..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStubDefault.cpp +++ /dev/null @@ -1,226 +0,0 @@ -/* -* 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 <org/genivi/am/RoutingControlStubDefault.h> - -namespace org { -namespace genivi { -namespace am { - -RoutingControlStubDefault::RoutingControlStubDefault(): - remoteEventHandler_(this), - interfaceVersion_(RoutingControl::getInterfaceVersion()) { -} - -const CommonAPI::Version& RoutingControlStubDefault::getInterfaceVersion(std::shared_ptr<CommonAPI::ClientId> clientId) { - return interfaceVersion_; -} - -RoutingControlStubRemoteEvent* RoutingControlStubDefault::initStubAdapter(const std::shared_ptr<RoutingControlStubAdapter>& stubAdapter) { - CommonAPI::Stub<RoutingControlStubAdapter, RoutingControlStubRemoteEvent>::stubAdapter_ = stubAdapter; - return &remoteEventHandler_; -} - - -/** - * aborts an asynchronous action. -(at)return E_OK on success, E_UNKNOWN on error, - * E_NON_EXISTENT if handle was not found - */ -void RoutingControlStubDefault::asyncAbort(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle) { - // Call old style methods in default - asyncAbort(handle); -} -void RoutingControlStubDefault::asyncAbort(am_Handle_s handle) { - // No operation in default -} - -/** - * connects a source to a sink -(at)return E_OK on success, E_UNKNOWN on error, - * E_WRONG_FORMAT in case am_CustomConnectionFormat_t does not match - */ -void RoutingControlStubDefault::asyncConnect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_connectionID_t connectionID, am_sourceID_t sourceID, am_sinkID_t sinkID, am_CustomConnectionFormat_t connectionFormat) { - // Call old style methods in default - asyncConnect(handle, connectionID, sourceID, sinkID, connectionFormat); -} -void RoutingControlStubDefault::asyncConnect(am_Handle_s handle, am_connectionID_t connectionID, am_sourceID_t sourceID, am_sinkID_t sinkID, am_CustomConnectionFormat_t connectionFormat) { - // No operation in default -} - -/** - * disconnect a connection with given connectionID -(at)return E_OK on success, - * E_UNKNOWN on error, E_NON_EXISTENT if connection was not found - */ -void RoutingControlStubDefault::asyncDisconnect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_connectionID_t connectionID) { - // Call old style methods in default - asyncDisconnect(handle, connectionID); -} -void RoutingControlStubDefault::asyncDisconnect(am_Handle_s handle, am_connectionID_t connectionID) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlStubDefault::asyncSetSinkVolume(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume, am_CustomRampType_t ramp, am_time_t time) { - // Call old style methods in default - asyncSetSinkVolume(handle, sinkID, volume, ramp, time); -} -void RoutingControlStubDefault::asyncSetSinkVolume(am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume, am_CustomRampType_t ramp, am_time_t time) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlStubDefault::asyncSetSourceVolume(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume, am_CustomRampType_t ramp, am_time_t time) { - // Call old style methods in default - asyncSetSourceVolume(handle, sourceID, volume, ramp, time); -} -void RoutingControlStubDefault::asyncSetSourceVolume(am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume, am_CustomRampType_t ramp, am_time_t time) { - // No operation in default -} - -/** - * This function is used to set the source state of a particular - * source. -(at)return E_OK on success, E_UNKNOWN on error - */ -void RoutingControlStubDefault::asyncSetSourceState(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_SourceState_e state) { - // Call old style methods in default - asyncSetSourceState(handle, sourceID, state); -} -void RoutingControlStubDefault::asyncSetSourceState(am_Handle_s handle, am_sourceID_t sourceID, am_SourceState_e state) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlStubDefault::asyncSetSinkSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_L listSoundProperties) { - // Call old style methods in default - asyncSetSinkSoundProperties(handle, sinkID, listSoundProperties); -} -void RoutingControlStubDefault::asyncSetSinkSoundProperties(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_L listSoundProperties) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlStubDefault::asyncSetSinkSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_s soundProperty) { - // Call old style methods in default - asyncSetSinkSoundProperty(handle, sinkID, soundProperty); -} -void RoutingControlStubDefault::asyncSetSinkSoundProperty(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_s soundProperty) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlStubDefault::asyncSetSourceSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_L listSoundProperties) { - // Call old style methods in default - asyncSetSourceSoundProperties(handle, sourceID, listSoundProperties); -} -void RoutingControlStubDefault::asyncSetSourceSoundProperties(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_L listSoundProperties) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlStubDefault::asyncSetSourceSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_s soundProperty) { - // Call old style methods in default - asyncSetSourceSoundProperty(handle, sourceID, soundProperty); -} -void RoutingControlStubDefault::asyncSetSourceSoundProperty(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_s soundProperty) { - // No operation in default -} - -/** - * this function triggers crossfading. -(at)return E_OK on success, E_UNKNOWN on - * error - */ -void RoutingControlStubDefault::asyncCrossFade(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_crossfaderID_t crossfaderID, am_HotSink_e hotSink, am_CustomRampType_t rampType, am_time_t time) { - // Call old style methods in default - asyncCrossFade(handle, crossfaderID, hotSink, rampType, time); -} -void RoutingControlStubDefault::asyncCrossFade(am_Handle_s handle, am_crossfaderID_t crossfaderID, am_HotSink_e hotSink, am_CustomRampType_t rampType, am_time_t time) { - // No operation in default -} - -/** - * 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 - */ -void RoutingControlStubDefault::setDomainState(const std::shared_ptr<CommonAPI::ClientId> clientId, am_domainID_t domainID, am_DomainState_e domainState, am_Error_e& error) { - // Call old style methods in default - setDomainState(domainID, domainState, error); -} -void RoutingControlStubDefault::setDomainState(am_domainID_t domainID, am_DomainState_e domainState, am_Error_e& error) { - // No operation in default -} - -void RoutingControlStubDefault::asyncSetVolumes(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Volumes_L volumes) { - // Call old style methods in default - asyncSetVolumes(handle, volumes); -} -void RoutingControlStubDefault::asyncSetVolumes(am_Handle_s handle, am_Volumes_L volumes) { - // No operation in default -} - -void RoutingControlStubDefault::asyncSetSinkNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_NotificationConfiguration_s notificationConfiguration) { - // Call old style methods in default - asyncSetSinkNotificationConfiguration(handle, sinkID, notificationConfiguration); -} -void RoutingControlStubDefault::asyncSetSinkNotificationConfiguration(am_Handle_s handle, am_sinkID_t sinkID, am_NotificationConfiguration_s notificationConfiguration) { - // No operation in default -} - -void RoutingControlStubDefault::asyncSetSourceNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_NotificationConfiguration_s notificationConfiguration) { - // Call old style methods in default - asyncSetSourceNotificationConfiguration(handle, sourceID, notificationConfiguration); -} -void RoutingControlStubDefault::asyncSetSourceNotificationConfiguration(am_Handle_s handle, am_sourceID_t sourceID, am_NotificationConfiguration_s notificationConfiguration) { - // No operation in default -} - - - - -RoutingControlStubDefault::RemoteEventHandler::RemoteEventHandler(RoutingControlStubDefault* defaultStub): - defaultStub_(defaultStub) { -} - -} // namespace am -} // namespace genivi -} // namespace org diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStubDefault.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStubDefault.h deleted file mode 100644 index f411112..0000000 --- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStubDefault.h +++ /dev/null @@ -1,179 +0,0 @@ -/* -* 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/. -*/ -/** - * This class implements everything from Audiomanager -> RoutingAdapter - * @author Christian Mueller - */ -#ifndef ORG_GENIVI_AM_Routing_Control_STUB_DEFAULT_H_ -#define ORG_GENIVI_AM_Routing_Control_STUB_DEFAULT_H_ - - -#include <org/genivi/am/RoutingControlStub.h> -#include <sstream> - -namespace org { -namespace genivi { -namespace am { - -/** - * Provides a default implementation for RoutingControlStubRemoteEvent and - * RoutingControlStub. Method callbacks have an empty implementation, - * remote set calls on attributes will always change the value of the attribute - * to the one received. - * - * Override this stub if you only want to provide a subset of the functionality - * that would be defined for this service, and/or if you do not need any non-default - * behaviour. - */ -class RoutingControlStubDefault : public virtual RoutingControlStub { -public: - RoutingControlStubDefault(); - - RoutingControlStubRemoteEvent* initStubAdapter(const std::shared_ptr<RoutingControlStubAdapter>& stubAdapter); - - const CommonAPI::Version& getInterfaceVersion(std::shared_ptr<CommonAPI::ClientId> clientId); - - - /** - * aborts an asynchronous action. - (at)return E_OK on success, E_UNKNOWN on error, - * E_NON_EXISTENT if handle was not found - */ - virtual void asyncAbort(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle); - virtual void asyncAbort(am_Handle_s handle); - - /** - * connects a source to a sink - (at)return E_OK on success, E_UNKNOWN on error, - * E_WRONG_FORMAT in case am_CustomConnectionFormat_t does not match - */ - virtual void asyncConnect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_connectionID_t connectionID, am_sourceID_t sourceID, am_sinkID_t sinkID, am_CustomConnectionFormat_t connectionFormat); - virtual void asyncConnect(am_Handle_s handle, am_connectionID_t connectionID, am_sourceID_t sourceID, am_sinkID_t sinkID, am_CustomConnectionFormat_t connectionFormat); - - /** - * disconnect a connection with given connectionID - (at)return E_OK on success, - * E_UNKNOWN on error, E_NON_EXISTENT if connection was not found - */ - virtual void asyncDisconnect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_connectionID_t connectionID); - virtual void asyncDisconnect(am_Handle_s handle, am_connectionID_t connectionID); - - /** - * 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 - */ - virtual void asyncSetSinkVolume(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume, am_CustomRampType_t ramp, am_time_t time); - virtual void asyncSetSinkVolume(am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume, am_CustomRampType_t ramp, am_time_t time); - - /** - * 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 - */ - virtual void asyncSetSourceVolume(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume, am_CustomRampType_t ramp, am_time_t time); - virtual void asyncSetSourceVolume(am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume, am_CustomRampType_t ramp, am_time_t time); - - /** - * This function is used to set the source state of a particular - * source. - (at)return E_OK on success, E_UNKNOWN on error - */ - virtual void asyncSetSourceState(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_SourceState_e state); - virtual void asyncSetSourceState(am_Handle_s handle, am_sourceID_t sourceID, am_SourceState_e state); - - /** - * 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 - */ - virtual void asyncSetSinkSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_L listSoundProperties); - virtual void asyncSetSinkSoundProperties(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_L listSoundProperties); - - /** - * 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 - */ - virtual void asyncSetSinkSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_s soundProperty); - virtual void asyncSetSinkSoundProperty(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_s soundProperty); - - /** - * 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 - */ - virtual void asyncSetSourceSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_L listSoundProperties); - virtual void asyncSetSourceSoundProperties(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_L listSoundProperties); - - /** - * 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 - */ - virtual void asyncSetSourceSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_s soundProperty); - virtual void asyncSetSourceSoundProperty(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_s soundProperty); - - /** - * this function triggers crossfading. - (at)return E_OK on success, E_UNKNOWN on - * error - */ - virtual void asyncCrossFade(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_crossfaderID_t crossfaderID, am_HotSink_e hotSink, am_CustomRampType_t rampType, am_time_t time); - virtual void asyncCrossFade(am_Handle_s handle, am_crossfaderID_t crossfaderID, am_HotSink_e hotSink, am_CustomRampType_t rampType, am_time_t time); - - /** - * 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 - */ - virtual void setDomainState(const std::shared_ptr<CommonAPI::ClientId> clientId, am_domainID_t domainID, am_DomainState_e domainState, am_Error_e& error); - virtual void setDomainState(am_domainID_t domainID, am_DomainState_e domainState, am_Error_e& error); - - virtual void asyncSetVolumes(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Volumes_L volumes); - virtual void asyncSetVolumes(am_Handle_s handle, am_Volumes_L volumes); - - virtual void asyncSetSinkNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_NotificationConfiguration_s notificationConfiguration); - virtual void asyncSetSinkNotificationConfiguration(am_Handle_s handle, am_sinkID_t sinkID, am_NotificationConfiguration_s notificationConfiguration); - - virtual void asyncSetSourceNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_NotificationConfiguration_s notificationConfiguration); - virtual void asyncSetSourceNotificationConfiguration(am_Handle_s handle, am_sourceID_t sourceID, am_NotificationConfiguration_s notificationConfiguration); - - - - -protected: -private: - class RemoteEventHandler: public RoutingControlStubRemoteEvent { - public: - RemoteEventHandler(RoutingControlStubDefault* defaultStub); - - - private: - RoutingControlStubDefault* defaultStub_; - }; - - RemoteEventHandler remoteEventHandler_; - - - CommonAPI::Version interfaceVersion_; -}; - -} // namespace am -} // namespace genivi -} // namespace org - -#endif // ORG_GENIVI_AM_Routing_Control_STUB_DEFAULT_H_ |