/* * This file was generated by the CommonAPI Generators. * * Copyright (C) 2013, BMW AG * * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013 */ #ifndef ORG_GENIVI_AM_Command_Control_PROXY_BASE_H_ #define ORG_GENIVI_AM_Command_Control_PROXY_BASE_H_ #include "CommandControl.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 am { class CommandControlProxyBase: virtual public CommonAPI::Proxy { public: typedef CommonAPI::Event NewMainConnectionEvent; typedef CommonAPI::Event RemovedMainConnectionEvent; typedef CommonAPI::Event NewSinkEvent; typedef CommonAPI::Event RemovedSinkEvent; typedef CommonAPI::Event NewSourceEvent; typedef CommonAPI::Event RemovedSourceEvent; typedef CommonAPI::Event<> NumberOfSinkClassesChangedEvent; typedef CommonAPI::Event<> NumberOfSourceClassesChangedEvent; typedef CommonAPI::Event MainConnectionStateChangedEvent; typedef CommonAPI::Event MainSinkSoundPropertyChangedEvent; typedef CommonAPI::Event MainSourceSoundPropertyChangedEvent; typedef CommonAPI::Event SinkAvailabilityChangedEvent; typedef CommonAPI::Event SourceAvailabilityChangedEvent; 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; typedef std::function GetListMainSinkNotificationConfigurationsAsyncCallback; typedef std::function GetListMainSourceNotificationConfigurationsAsyncCallback; typedef std::function SetMainSinkNotificationConfigurationAsyncCallback; typedef std::function SetMainSourceNotificationConfigurationAsyncCallback; virtual NewMainConnectionEvent& getNewMainConnectionEvent() = 0; virtual RemovedMainConnectionEvent& getRemovedMainConnectionEvent() = 0; virtual NewSinkEvent& getNewSinkEvent() = 0; virtual RemovedSinkEvent& getRemovedSinkEvent() = 0; virtual NewSourceEvent& getNewSourceEvent() = 0; virtual RemovedSourceEvent& getRemovedSourceEvent() = 0; virtual NumberOfSinkClassesChangedEvent& getNumberOfSinkClassesChangedEvent() = 0; virtual NumberOfSourceClassesChangedEvent& getNumberOfSourceClassesChangedEvent() = 0; virtual MainConnectionStateChangedEvent& getMainConnectionStateChangedEvent() = 0; virtual MainSinkSoundPropertyChangedEvent& getMainSinkSoundPropertyChangedEvent() = 0; virtual MainSourceSoundPropertyChangedEvent& getMainSourceSoundPropertyChangedEvent() = 0; virtual SinkAvailabilityChangedEvent& getSinkAvailabilityChangedEvent() = 0; virtual SourceAvailabilityChangedEvent& getSourceAvailabilityChangedEvent() = 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 am_sourceID_t& sourceID, const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_mainConnectionID_t& mainConnectionID, am_Error_e& error) = 0; virtual std::future connectAsync(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, ConnectAsyncCallback callback) = 0; virtual void disconnect(const am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; virtual std::future disconnectAsync(const am_mainConnectionID_t& mainConnectionID, DisconnectAsyncCallback callback) = 0; virtual void setVolume(const am_sinkID_t& sinkID, const am_mainVolume_t& volume, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; virtual std::future setVolumeAsync(const am_sinkID_t& sinkID, const am_mainVolume_t& volume, SetVolumeAsyncCallback callback) = 0; virtual void volumeStep(const am_sinkID_t& sinkID, const int16_t& volumeStep, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; virtual std::future volumeStepAsync(const am_sinkID_t& sinkID, const int16_t& volumeStep, VolumeStepAsyncCallback callback) = 0; virtual void setSinkMuteState(const am_sinkID_t& sinkID, const am_MuteState_e& muteState, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; virtual std::future setSinkMuteStateAsync(const am_sinkID_t& sinkID, const am_MuteState_e& muteState, SetSinkMuteStateAsyncCallback callback) = 0; virtual void setMainSinkSoundProperty(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; virtual std::future setMainSinkSoundPropertyAsync(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty, SetMainSinkSoundPropertyAsyncCallback callback) = 0; virtual void setMainSourceSoundProperty(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; virtual std::future setMainSourceSoundPropertyAsync(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty, SetMainSourceSoundPropertyAsyncCallback callback) = 0; virtual void setSystemProperty(const am_SystemProperty_s& property, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; virtual std::future setSystemPropertyAsync(const am_SystemProperty_s& property, SetSystemPropertyAsyncCallback callback) = 0; virtual void getListMainConnections(CommonAPI::CallStatus& callStatus, am_Error_e& error, am_MainConnection_L& listConnections) = 0; virtual std::future getListMainConnectionsAsync(GetListMainConnectionsAsyncCallback callback) = 0; virtual void getListMainSinks(CommonAPI::CallStatus& callStatus, am_SinkType_L& listMainSinks, am_Error_e& error) = 0; virtual std::future getListMainSinksAsync(GetListMainSinksAsyncCallback callback) = 0; virtual void getListMainSources(CommonAPI::CallStatus& callStatus, am_SourceType_L& listMainSources, am_Error_e& error) = 0; virtual std::future getListMainSourcesAsync(GetListMainSourcesAsyncCallback callback) = 0; virtual void getListMainSinkSoundProperties(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_MainSoundProperty_L& listSoundProperties, am_Error_e& error) = 0; virtual std::future getListMainSinkSoundPropertiesAsync(const am_sinkID_t& sinkID, GetListMainSinkSoundPropertiesAsyncCallback callback) = 0; virtual void getListMainSourceSoundProperties(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_MainSoundProperty_L& listSourceProperties, am_Error_e& error) = 0; virtual std::future getListMainSourceSoundPropertiesAsync(const am_sourceID_t& sourceID, GetListMainSourceSoundPropertiesAsyncCallback callback) = 0; virtual void getListSourceClasses(CommonAPI::CallStatus& callStatus, am_SourceClass_L& listSourceClasses, am_Error_e& error) = 0; virtual std::future getListSourceClassesAsync(GetListSourceClassesAsyncCallback callback) = 0; virtual void getListSinkClasses(CommonAPI::CallStatus& callStatus, am_SinkClass_L& listSinkClasses, am_Error_e& error) = 0; virtual std::future getListSinkClassesAsync(GetListSinkClassesAsyncCallback callback) = 0; virtual void getListSystemProperties(CommonAPI::CallStatus& callStatus, am_SystemProperty_L& listSystemProperties, am_Error_e& error) = 0; virtual std::future getListSystemPropertiesAsync(GetListSystemPropertiesAsyncCallback callback) = 0; virtual void getTimingInformation(const am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, am_timeSync_t& delay, am_Error_e& error) = 0; virtual std::future getTimingInformationAsync(const am_mainConnectionID_t& mainConnectionID, GetTimingInformationAsyncCallback callback) = 0; virtual void getListMainSinkNotificationConfigurations(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error) = 0; virtual std::future getListMainSinkNotificationConfigurationsAsync(const am_sinkID_t& sinkID, GetListMainSinkNotificationConfigurationsAsyncCallback callback) = 0; virtual void getListMainSourceNotificationConfigurations(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error) = 0; virtual std::future getListMainSourceNotificationConfigurationsAsync(const am_sourceID_t& sourceID, GetListMainSourceNotificationConfigurationsAsyncCallback callback) = 0; virtual void setMainSinkNotificationConfiguration(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; virtual std::future setMainSinkNotificationConfigurationAsync(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration, SetMainSinkNotificationConfigurationAsyncCallback callback) = 0; virtual void setMainSourceNotificationConfiguration(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0; virtual std::future setMainSourceNotificationConfigurationAsync(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration, SetMainSourceNotificationConfigurationAsyncCallback callback) = 0; }; } // namespace am } // namespace genivi } // namespace org #endif // ORG_GENIVI_AM_Command_Control_PROXY_BASE_H_