swift
Loading...
Searching...
No Matches
audiosettings.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#ifndef SWIFT_CORE_AUDIO_SETTINGS_H
7#define SWIFT_CORE_AUDIO_SETTINGS_H
8
9#include <QString>
10
11#include "misc/settingscache.h"
12
13namespace swift::core::audio
14{
17 {
19 static const char *key() { return "audio/%Application%/inputdevice"; }
20
22 static const QString &humanReadable()
23 {
24 static const QString name("Input device");
25 return name;
26 }
27
29 static const QString &defaultValue()
30 {
31 static const QString device("default");
32 return device;
33 }
34 };
35
38 {
40 static const char *key() { return "audio/%Application%/outputdevice"; }
41
43 static const QString &humanReadable()
44 {
45 static const QString name("Output device");
46 return name;
47 }
48
50 static const QString &defaultValue()
51 {
52 static const QString device("default");
53 return device;
54 }
55 };
56} // namespace swift::core::audio
57
58#endif // SWIFT_CORE_AUDIO_SETTINGS_H
Audio input device settings.
static const QString & humanReadable()
Optional human readable name.
static const QString & defaultValue()
Return the value to use in case the supplied value does not satisfy the validator....
static const char * key()
Key string of the value. Reimplemented in derived class.
Audio input device settings.
static const QString & defaultValue()
Return the value to use in case the supplied value does not satisfy the validator....
static const QString & humanReadable()
Optional human readable name.
static const char * key()
Key string of the value. Reimplemented in derived class.
Base class for traits to be used as template argument to swift::misc::CSetting.