digiKam
Loading...
Searching...
No Matches
systemsettings.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2020-07-26
7 * Description : System settings container.
8 *
9 * SPDX-FileCopyrightText: 2020-2023 by Maik Qualmann <metzpinguin at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Qt includes
18
19#include <QString>
20
21// Local includes
22
23#include "digikam_export.h"
24
25namespace Digikam
26{
27
28class DIGIKAM_EXPORT SystemSettings
29{
30public:
31
36 {
37 HttpProxy = 0,
38 Socks5Proxy
39 };
40
41public:
42
43 explicit SystemSettings(const QString& name);
45
46public:
47
48 void saveSettings();
49
50public:
51
52#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
53
54 bool useHighDpiScaling = false;
55 bool useHighDpiPixmaps = false;
56
57#endif
58
59 bool enableFaceEngine = false;
60 bool enableAesthetic = false;
61 bool enableAutoTags = false;
62 bool softwareOpenGL = false;
63 bool enableLogging = false;
64 bool enableOpenCL = false;
65
66#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
67
68 bool enableHWVideo = false;
69 bool enableHWTConv = false;
70
71 QString videoBackend = QLatin1String("ffmpeg");
72
73#endif
74
75 // Proxy Settings.
76
77 QString proxyUrl;
78 int proxyPort = 8080;
79 QString proxyUser;
80 QString proxyPass;
81 int proxyType = HttpProxy;
82 bool proxyAuth = false;
83
84private:
85
86 void readSettings();
87
88private:
89
90 QString m_path;
91};
92
93} // namespace Digikam
Definition systemsettings.h:29
ProxyType
This enum is used to specify the proxy that is used.
Definition systemsettings.h:36
QString proxyPass
Definition systemsettings.h:80
QString proxyUser
Definition systemsettings.h:79
QString proxyUrl
Definition systemsettings.h:77
Definition datefolderview.cpp:34