/* * 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_DBUS_PROXY_H_ #define ORG_GENIVI_AUDIOMANAGER_Command_Interface_DBUS_PROXY_H_ #include #define COMMONAPI_INTERNAL_COMPILATION #include #include #include #undef COMMONAPI_INTERNAL_COMPILATION #include namespace org { namespace genivi { namespace audiomanager { class CommandInterfaceDBusProxy: virtual public CommandInterfaceProxyBase, virtual public CommonAPI::DBus::DBusProxy { public: CommandInterfaceDBusProxy( const std::string& commonApiAddress, const std::string& interfaceName, const std::string& busName, const std::string& objectPath, const std::shared_ptr& dbusProxyconnection); virtual ~CommandInterfaceDBusProxy() { } virtual NumberOfMainConnectionsChangedEvent& getNumberOfMainConnectionsChangedEvent(); virtual MainConnectionStateChangedEvent& getMainConnectionStateChangedEvent(); virtual NumberOfSourceClassesChangedEvent& getNumberOfSourceClassesChangedEvent(); virtual SourceAddedEvent& getSourceAddedEvent(); virtual SourceRemovedEvent& getSourceRemovedEvent(); virtual MainSourceSoundPropertyChangedEvent& getMainSourceSoundPropertyChangedEvent(); virtual SourceAvailabilityChangedEvent& getSourceAvailabilityChangedEvent(); virtual NumberOfSinkClassesChangedEvent& getNumberOfSinkClassesChangedEvent(); virtual SinkAddedEvent& getSinkAddedEvent(); virtual SinkRemovedEvent& getSinkRemovedEvent(); virtual MainSinkSoundPropertyChangedEvent& getMainSinkSoundPropertyChangedEvent(); virtual SinkAvailabilityChangedEvent& getSinkAvailabilityChangedEvent(); virtual VolumeChangedEvent& getVolumeChangedEvent(); virtual SinkMuteStateChangedEvent& getSinkMuteStateChangedEvent(); virtual SystemPropertyChangedEvent& getSystemPropertyChangedEvent(); virtual TimingInformationChangedEvent& getTimingInformationChangedEvent(); virtual SinkUpdatedEvent& getSinkUpdatedEvent(); virtual SourceUpdatedEvent& getSourceUpdatedEvent(); virtual SinkNotificationEvent& getSinkNotificationEvent(); virtual SourceNotificationEvent& getSourceNotificationEvent(); virtual MainSinkNotificationConfigurationChangedEvent& getMainSinkNotificationConfigurationChangedEvent(); virtual MainSourceNotificationConfigurationChangedEvent& getMainSourceNotificationConfigurationChangedEvent(); 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); virtual std::future ConnectAsync(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sinkID_t& sinkID, ConnectAsyncCallback callback); virtual void Disconnect(const CommandInterface::am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result); virtual std::future DisconnectAsync(const CommandInterface::am_mainConnectionID_t& mainConnectionID, DisconnectAsyncCallback callback); virtual void SetVolume(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result); virtual std::future SetVolumeAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume, SetVolumeAsyncCallback callback); virtual void VolumeStep(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volumeStep, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result); virtual std::future VolumeStepAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volumeStep, VolumeStepAsyncCallback callback); virtual void SetSinkMuteState(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result); virtual std::future SetSinkMuteStateAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState, SetSinkMuteStateAsyncCallback callback); virtual void SetMainSinkSoundProperty(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result); virtual std::future SetMainSinkSoundPropertyAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& soundProperty, SetMainSinkSoundPropertyAsyncCallback callback); virtual void SetMainSourceSoundProperty(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result); virtual std::future SetMainSourceSoundPropertyAsync(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& soundProperty, SetMainSourceSoundPropertyAsyncCallback callback); virtual void SetSystemProperty(const CommandInterface::am_SystemProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result); virtual std::future SetSystemPropertyAsync(const CommandInterface::am_SystemProperty_s& soundProperty, SetSystemPropertyAsyncCallback callback); virtual void GetListMainConnections(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainConnectionType_l& listConnections); virtual std::future GetListMainConnectionsAsync(GetListMainConnectionsAsyncCallback callback); virtual void GetListMainSinks(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SinkType_l& listMainSinks); virtual std::future GetListMainSinksAsync(GetListMainSinksAsyncCallback callback); virtual void GetListMainSources(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SourceType_l& listMainSources); virtual std::future GetListMainSourcesAsync(GetListMainSourcesAsyncCallback callback); virtual void GetListMainSinkSoundProperties(const CommandInterface::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSoundProperties); virtual std::future GetListMainSinkSoundPropertiesAsync(const CommandInterface::am_sinkID_t& sinkID, GetListMainSinkSoundPropertiesAsyncCallback callback); virtual void GetListMainSourceSoundProperties(const CommandInterface::am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSourceProperties); virtual std::future GetListMainSourceSoundPropertiesAsync(const CommandInterface::am_sourceID_t& sourceID, GetListMainSourceSoundPropertiesAsyncCallback callback); virtual void GetListSourceClasses(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SourceClass_l& listSourceClasses); virtual std::future GetListSourceClassesAsync(GetListSourceClassesAsyncCallback callback); virtual void GetListSinkClasses(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SinkClass_l& listSinkClasses); virtual std::future GetListSinkClassesAsync(GetListSinkClassesAsyncCallback callback); virtual void GetListSystemProperties(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SystemProperty_l& listSystemProperties); virtual std::future GetListSystemPropertiesAsync(GetListSystemPropertiesAsyncCallback callback); virtual void GetTimingInformation(const CommandInterface::am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_timeSync_t& delay); virtual std::future GetTimingInformationAsync(const CommandInterface::am_mainConnectionID_t& mainConnectionID, GetTimingInformationAsyncCallback callback); virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const; private: CommonAPI::DBus::DBusEvent numberOfMainConnectionsChanged_; CommonAPI::DBus::DBusEvent mainConnectionStateChanged_; CommonAPI::DBus::DBusEvent numberOfSourceClassesChanged_; CommonAPI::DBus::DBusEvent sourceAdded_; CommonAPI::DBus::DBusEvent sourceRemoved_; CommonAPI::DBus::DBusEvent mainSourceSoundPropertyChanged_; CommonAPI::DBus::DBusEvent sourceAvailabilityChanged_; CommonAPI::DBus::DBusEvent numberOfSinkClassesChanged_; CommonAPI::DBus::DBusEvent sinkAdded_; CommonAPI::DBus::DBusEvent sinkRemoved_; CommonAPI::DBus::DBusEvent mainSinkSoundPropertyChanged_; CommonAPI::DBus::DBusEvent sinkAvailabilityChanged_; CommonAPI::DBus::DBusEvent volumeChanged_; CommonAPI::DBus::DBusEvent sinkMuteStateChanged_; CommonAPI::DBus::DBusEvent systemPropertyChanged_; CommonAPI::DBus::DBusEvent timingInformationChanged_; CommonAPI::DBus::DBusEvent sinkUpdated_; CommonAPI::DBus::DBusEvent sourceUpdated_; CommonAPI::DBus::DBusEvent sinkNotification_; CommonAPI::DBus::DBusEvent sourceNotification_; CommonAPI::DBus::DBusEvent mainSinkNotificationConfigurationChanged_; CommonAPI::DBus::DBusEvent mainSourceNotificationConfigurationChanged_; }; } // namespace audiomanager } // namespace genivi } // namespace org #endif // ORG_GENIVI_AUDIOMANAGER_Command_Interface_DBUS_PROXY_H_