mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +08:00
refs #697 BlackCore settings renamed and reorganized.
This commit is contained in:
37
src/blackcore/audio/audiosettings.h
Normal file
37
src/blackcore/audio/audiosettings.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/* 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"
|
||||
|
||||
namespace BlackCore
|
||||
{
|
||||
namespace Audio
|
||||
{
|
||||
//! Audio related settings
|
||||
struct TSettings : public BlackMisc::TSettingTrait<BlackMisc::Audio::CSettings>
|
||||
{
|
||||
//! \copydoc BlackMisc::TSettingTrait::key
|
||||
static const char *key() { return "audio/setup"; }
|
||||
|
||||
//! \copydoc BlackMisc::TSettingTrait::defaultValue
|
||||
static const BlackMisc::Audio::CSettings &defaultValue() { static const BlackMisc::Audio::CSettings a; return a; }
|
||||
|
||||
//! \copydoc BlackMisc::TSettingTrait::isValid
|
||||
static bool isValid(const BlackMisc::Audio::CSettings &value) { Q_UNUSED(value); return true; }
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user