From a2edae5cee4254b933f42399edc0e092abd4f5cf Mon Sep 17 00:00:00 2001 From: Aleksandar Donchev Date: Mon, 2 Sep 2013 11:57:28 +0200 Subject: *PluginCommandInterfaceCAPI, PluginRoutingInterfaceCAPI, NodeStateCommunicatorCAPI with unit tests first version. Choosing between DBUS and Common-API via cmake. CommonAPI - legacy support for DBus properties (Set 1) Signed-off-by: Christian Linke (cherry picked from commit ea96ef59e29466667c90b506426e2a5a9cdb82d2) --- .../audiomanager/CommandInterfaceProxyBase.h | 170 +++++++++++++++++++++ 1 file changed, 170 insertions(+) create mode 100644 PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceProxyBase.h (limited to 'PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceProxyBase.h') diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceProxyBase.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceProxyBase.h new file mode 100644 index 0000000..f7615a0 --- /dev/null +++ b/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceProxyBase.h @@ -0,0 +1,170 @@ + /* + * This file was generated by the CommonAPI Generators. + * + * Copyright (c) 2012 BMW + * + * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013 + * + * \copyright + * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, + * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR + * THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * For further information see http://www.genivi.org/. + */ + #ifndef ORG_GENIVI_AUDIOMANAGER_Command_Interface_PROXY_BASE_H_ + #define ORG_GENIVI_AUDIOMANAGER_Command_Interface_PROXY_BASE_H_ + + #include "CommandInterface.h" + + + #include + + #define COMMONAPI_INTERNAL_COMPILATION + + #include + #include + #include + #include + #include + #include + + #include + #include + #include + #include + + #undef COMMONAPI_INTERNAL_COMPILATION + + namespace org { + namespace genivi { + namespace audiomanager { + + class CommandInterfaceProxyBase: virtual public CommonAPI::Proxy { + public: + typedef CommonAPI::Event<> NumberOfMainConnectionsChangedEvent; + typedef CommonAPI::Event MainConnectionStateChangedEvent; + typedef CommonAPI::Event<> NumberOfSourceClassesChangedEvent; + typedef CommonAPI::Event SourceAddedEvent; + typedef CommonAPI::Event SourceRemovedEvent; + typedef CommonAPI::Event MainSourceSoundPropertyChangedEvent; + typedef CommonAPI::Event SourceAvailabilityChangedEvent; + typedef CommonAPI::Event<> NumberOfSinkClassesChangedEvent; + typedef CommonAPI::Event SinkAddedEvent; + typedef CommonAPI::Event SinkRemovedEvent; + typedef CommonAPI::Event MainSinkSoundPropertyChangedEvent; + typedef CommonAPI::Event SinkAvailabilityChangedEvent; + typedef CommonAPI::Event VolumeChangedEvent; + typedef CommonAPI::Event SinkMuteStateChangedEvent; + typedef CommonAPI::Event SystemPropertyChangedEvent; + typedef CommonAPI::Event TimingInformationChangedEvent; + typedef CommonAPI::Event SinkUpdatedEvent; + typedef CommonAPI::Event SourceUpdatedEvent; + typedef CommonAPI::Event SinkNotificationEvent; + typedef CommonAPI::Event SourceNotificationEvent; + typedef CommonAPI::Event MainSinkNotificationConfigurationChangedEvent; + typedef CommonAPI::Event MainSourceNotificationConfigurationChangedEvent; + typedef std::function ConnectAsyncCallback; + typedef std::function DisconnectAsyncCallback; + typedef std::function SetVolumeAsyncCallback; + typedef std::function VolumeStepAsyncCallback; + typedef std::function SetSinkMuteStateAsyncCallback; + typedef std::function SetMainSinkSoundPropertyAsyncCallback; + typedef std::function SetMainSourceSoundPropertyAsyncCallback; + typedef std::function SetSystemPropertyAsyncCallback; + typedef std::function GetListMainConnectionsAsyncCallback; + typedef std::function GetListMainSinksAsyncCallback; + typedef std::function GetListMainSourcesAsyncCallback; + typedef std::function GetListMainSinkSoundPropertiesAsyncCallback; + typedef std::function GetListMainSourceSoundPropertiesAsyncCallback; + typedef std::function GetListSourceClassesAsyncCallback; + typedef std::function GetListSinkClassesAsyncCallback; + typedef std::function GetListSystemPropertiesAsyncCallback; + typedef std::function GetTimingInformationAsyncCallback; + + + virtual NumberOfMainConnectionsChangedEvent& getNumberOfMainConnectionsChangedEvent() = 0; + virtual MainConnectionStateChangedEvent& getMainConnectionStateChangedEvent() = 0; + virtual NumberOfSourceClassesChangedEvent& getNumberOfSourceClassesChangedEvent() = 0; + virtual SourceAddedEvent& getSourceAddedEvent() = 0; + virtual SourceRemovedEvent& getSourceRemovedEvent() = 0; + virtual MainSourceSoundPropertyChangedEvent& getMainSourceSoundPropertyChangedEvent() = 0; + virtual SourceAvailabilityChangedEvent& getSourceAvailabilityChangedEvent() = 0; + virtual NumberOfSinkClassesChangedEvent& getNumberOfSinkClassesChangedEvent() = 0; + virtual SinkAddedEvent& getSinkAddedEvent() = 0; + virtual SinkRemovedEvent& getSinkRemovedEvent() = 0; + virtual MainSinkSoundPropertyChangedEvent& getMainSinkSoundPropertyChangedEvent() = 0; + virtual SinkAvailabilityChangedEvent& getSinkAvailabilityChangedEvent() = 0; + virtual VolumeChangedEvent& getVolumeChangedEvent() = 0; + virtual SinkMuteStateChangedEvent& getSinkMuteStateChangedEvent() = 0; + virtual SystemPropertyChangedEvent& getSystemPropertyChangedEvent() = 0; + virtual TimingInformationChangedEvent& getTimingInformationChangedEvent() = 0; + virtual SinkUpdatedEvent& getSinkUpdatedEvent() = 0; + virtual SourceUpdatedEvent& getSourceUpdatedEvent() = 0; + virtual SinkNotificationEvent& getSinkNotificationEvent() = 0; + virtual SourceNotificationEvent& getSourceNotificationEvent() = 0; + virtual MainSinkNotificationConfigurationChangedEvent& getMainSinkNotificationConfigurationChangedEvent() = 0; + virtual MainSourceNotificationConfigurationChangedEvent& getMainSourceNotificationConfigurationChangedEvent() = 0; + + + virtual void Connect(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_mainConnectionID_t& mainConnectionID) = 0; + virtual std::future ConnectAsync(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sinkID_t& sinkID, ConnectAsyncCallback callback) = 0; + + virtual void Disconnect(const CommandInterface::am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) = 0; + virtual std::future DisconnectAsync(const CommandInterface::am_mainConnectionID_t& mainConnectionID, DisconnectAsyncCallback callback) = 0; + + virtual void SetVolume(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) = 0; + virtual std::future SetVolumeAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume, SetVolumeAsyncCallback callback) = 0; + + virtual void VolumeStep(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volumeStep, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) = 0; + virtual std::future VolumeStepAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volumeStep, VolumeStepAsyncCallback callback) = 0; + + virtual void SetSinkMuteState(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) = 0; + virtual std::future SetSinkMuteStateAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState, SetSinkMuteStateAsyncCallback callback) = 0; + + virtual void SetMainSinkSoundProperty(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) = 0; + virtual std::future SetMainSinkSoundPropertyAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& soundProperty, SetMainSinkSoundPropertyAsyncCallback callback) = 0; + + virtual void SetMainSourceSoundProperty(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) = 0; + virtual std::future SetMainSourceSoundPropertyAsync(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& soundProperty, SetMainSourceSoundPropertyAsyncCallback callback) = 0; + + virtual void SetSystemProperty(const CommandInterface::am_SystemProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) = 0; + virtual std::future SetSystemPropertyAsync(const CommandInterface::am_SystemProperty_s& soundProperty, SetSystemPropertyAsyncCallback callback) = 0; + + virtual void GetListMainConnections(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainConnectionType_l& listConnections) = 0; + virtual std::future GetListMainConnectionsAsync(GetListMainConnectionsAsyncCallback callback) = 0; + + virtual void GetListMainSinks(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SinkType_l& listMainSinks) = 0; + virtual std::future GetListMainSinksAsync(GetListMainSinksAsyncCallback callback) = 0; + + virtual void GetListMainSources(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SourceType_l& listMainSources) = 0; + virtual std::future GetListMainSourcesAsync(GetListMainSourcesAsyncCallback callback) = 0; + + virtual void GetListMainSinkSoundProperties(const CommandInterface::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSoundProperties) = 0; + virtual std::future GetListMainSinkSoundPropertiesAsync(const CommandInterface::am_sinkID_t& sinkID, GetListMainSinkSoundPropertiesAsyncCallback callback) = 0; + + virtual void GetListMainSourceSoundProperties(const CommandInterface::am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSourceProperties) = 0; + virtual std::future GetListMainSourceSoundPropertiesAsync(const CommandInterface::am_sourceID_t& sourceID, GetListMainSourceSoundPropertiesAsyncCallback callback) = 0; + + virtual void GetListSourceClasses(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SourceClass_l& listSourceClasses) = 0; + virtual std::future GetListSourceClassesAsync(GetListSourceClassesAsyncCallback callback) = 0; + + virtual void GetListSinkClasses(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SinkClass_l& listSinkClasses) = 0; + virtual std::future GetListSinkClassesAsync(GetListSinkClassesAsyncCallback callback) = 0; + + virtual void GetListSystemProperties(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SystemProperty_l& listSystemProperties) = 0; + virtual std::future GetListSystemPropertiesAsync(GetListSystemPropertiesAsyncCallback callback) = 0; + + virtual void GetTimingInformation(const CommandInterface::am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_timeSync_t& delay) = 0; + virtual std::future GetTimingInformationAsync(const CommandInterface::am_mainConnectionID_t& mainConnectionID, GetTimingInformationAsyncCallback callback) = 0; + }; + + } // namespace audiomanager + } // namespace genivi + } // namespace org + + #endif // ORG_GENIVI_AUDIOMANAGER_Command_Interface_PROXY_BASE_H_ -- cgit v1.2.1