/* Copyright (C) 2015 * swift project Community / Contributors * * This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level * directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project, * including this file, may be copied, modified, propagated, or distributed except according to the terms * contained in the LICENSE file. */ //! \file #ifndef BLACKCORE_AUDIO_SETTINGS_H #define BLACKCORE_AUDIO_SETTINGS_H #include "blackmisc/settingscache.h" #include "blackmisc/audio/audiosettings.h" #include namespace BlackCore { namespace Audio { //! Audio related settings struct TSettings : public BlackMisc::TSettingTrait { //! \copydoc BlackMisc::TSettingTrait::key static const char *key() { return "audio/setup"; } //! \copydoc BlackCore::TSettingTrait::humanReadable static const QString &humanReadable() { static const QString name("Audio"); return name; } //! \copydoc BlackMisc::TSettingTrait::isValid static bool isValid(const BlackMisc::Audio::CSettings &value) { Q_UNUSED(value); return true; } }; //! Audio input device settings struct TInputDevice : public BlackMisc::TSettingTrait { //! \copydoc BlackMisc::TSettingTrait::key static const char *key() { return "audio/inputdevice"; } //! \copydoc BlackCore::TSettingTrait::humanReadable static const QString &humanReadable() { static const QString name("Input device"); return name; } }; //! Audio input device settings struct TOutputDevice : public BlackMisc::TSettingTrait { //! \copydoc BlackMisc::TSettingTrait::key static const char *key() { return "audio/outputdevice"; } //! \copydoc BlackCore::TSettingTrait::humanReadable static const QString &humanReadable() { static const QString name("Output device"); return name; } }; } // ns } // ns #endif