aboutsummaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefMedia.cpp
blob: 60e68f3d90baf626864b9997ce156d1f72b6ce24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: GPL-2.0
#include "qPrefMedia.h"
#include "qPrefPrivate.h"

static const QString group = QStringLiteral("Media");

qPrefMedia *qPrefMedia::instance()
{
	static qPrefMedia *self = new qPrefMedia;
	return self;
}

void qPrefMedia::loadSync(bool doSync)
{
	disk_extract_video_thumbnails(doSync);
	disk_extract_video_thumbnails_position(doSync);
	disk_ffmpeg_executable(doSync);
	disk_auto_recalculate_thumbnails(doSync);
	disk_auto_recalculate_thumbnails(doSync);
}

HANDLE_PREFERENCE_BOOL(Media, "auto_recalculate_thumbnails", auto_recalculate_thumbnails);
HANDLE_PREFERENCE_BOOL(Media, "extract_video_thumbnails", extract_video_thumbnails);
HANDLE_PREFERENCE_INT(Media, "extract_video_thumbnails_position", extract_video_thumbnails_position);
HANDLE_PREFERENCE_TXT(Media, "ffmpeg_executable", ffmpeg_executable);