38 lines
737 B
C++
Executable File
38 lines
737 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* ProjectSettings
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Christian Fröbel, NLE, 2019-02-08
|
|
*/
|
|
|
|
#include "project_settings.h"
|
|
#include <LtsUtilsSettings/settings.h>
|
|
#include <QString>
|
|
#include <QVariant>
|
|
|
|
namespace
|
|
{
|
|
|
|
template<typename T>
|
|
T value(const QString &identifier, const T &defaultValue)
|
|
{
|
|
LtsUtils::ProjectSettings *settings = LtsUtils::ProjectSettings::getInstance();
|
|
QVariant variant = settings->value(QStringLiteral("avm"), identifier, defaultValue);
|
|
return variant.value<T>();
|
|
}
|
|
|
|
} // anonymous namespace
|
|
|
|
|
|
namespace AudioVideoManagement
|
|
{
|
|
|
|
bool ProjectSettings::isAlwaysRecording()
|
|
{
|
|
return value(QStringLiteral("recording"), false);
|
|
}
|
|
|
|
} // namespace AudioVideoManagement
|