diff options
author | Martin Koch <51775589+mkoch-aditg@users.noreply.github.com> | 2020-02-10 07:58:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-10 07:58:37 +0100 |
commit | 86963abab32af54f7fe1244a727d3340ddeb5450 (patch) | |
tree | 752b600be063bd3938e7e8fc7b304ac46f53ef1d /AudioManagerCore/src/CAmControlReceiver.cpp | |
parent | ce501a931e9eeb20013406373156bf70fb007cda (diff) | |
parent | c1e284360ec02b06ccb0a97a00fed05ef0bb2c60 (diff) | |
download | audiomanager-86963abab32af54f7fe1244a727d3340ddeb5450.tar.gz |
Merge pull request #49 from GENIVI/PluralProperties
Add plural form of set/get ..SoundProperty() and ..SystemProperty() to allow for simultaneous handling of multible, possibly interrelated attributes.
Diffstat (limited to 'AudioManagerCore/src/CAmControlReceiver.cpp')
-rw-r--r-- | AudioManagerCore/src/CAmControlReceiver.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/AudioManagerCore/src/CAmControlReceiver.cpp b/AudioManagerCore/src/CAmControlReceiver.cpp index 6fec509..c72d733 100644 --- a/AudioManagerCore/src/CAmControlReceiver.cpp +++ b/AudioManagerCore/src/CAmControlReceiver.cpp @@ -206,11 +206,21 @@ am_Error_e CAmControlReceiver::changeMainSinkSoundPropertyDB(const am_MainSoundP return (mDatabaseHandler->changeMainSinkSoundPropertyDB(soundProperty, sinkID)); } +am_Error_e CAmControlReceiver::changeMainSinkSoundPropertiesDB(const std::vector<am_MainSoundProperty_s> &listSoundProperties, const am_sinkID_t sinkID) +{ + return (mDatabaseHandler->changeMainSinkSoundPropertiesDB(listSoundProperties, sinkID)); +} + am_Error_e CAmControlReceiver::changeMainSourceSoundPropertyDB(const am_MainSoundProperty_s &soundProperty, const am_sourceID_t sourceID) { return (mDatabaseHandler->changeMainSourceSoundPropertyDB(soundProperty, sourceID)); } +am_Error_e CAmControlReceiver::changeMainSourceSoundPropertiesDB(const std::vector<am_MainSoundProperty_s> &listSoundProperties, const am_sourceID_t sourceID) +{ + return (mDatabaseHandler->changeMainSourceSoundPropertiesDB(listSoundProperties, sourceID)); +} + am_Error_e CAmControlReceiver::changeSourceAvailabilityDB(const am_Availability_s &availability, const am_sourceID_t sourceID) { return (mDatabaseHandler->changeSourceAvailabilityDB(availability, sourceID)); @@ -221,6 +231,11 @@ am_Error_e CAmControlReceiver::changeSystemPropertyDB(const am_SystemProperty_s return (mDatabaseHandler->changeSystemPropertyDB(property)); } +am_Error_e CAmControlReceiver::changeSystemPropertiesDB(const std::vector<am_SystemProperty_s> &listSystemProperties) +{ + return (mDatabaseHandler->changeSystemPropertiesDB(listSystemProperties)); +} + am_Error_e CAmControlReceiver::removeMainConnectionDB(const am_mainConnectionID_t mainConnectionID) { return (mDatabaseHandler->removeMainConnectionDB(mainConnectionID)); |