11// SPDX-License-Identifier: GPL-2.0-or-later
22// SPDX-FileCopyrightText: 2026 Thomas Müller <thomas.mueller@tmit.eu>
33
4- #include " systemconfig .h"
4+ #include " appconfig .h"
55
66#include " ../theme.h"
77#include " common/utility.h"
@@ -17,7 +17,7 @@ Q_LOGGING_CATEGORY(lcSystemConfig, "sync.systemconfig", QtInfoMsg)
1717
1818namespace chrono = std::chrono;
1919
20- SystemConfig::SystemConfig ()
20+ AppConfig::AppConfig ()
2121{
2222 _serverUrl = Theme::instance ()->overrideServerUrlV2 ();
2323 // If a theme provides a hardcoded URL, do not allow for URL change.
@@ -47,7 +47,7 @@ SystemConfig::SystemConfig()
4747 }
4848}
4949
50- OpenIdConfig SystemConfig ::loadOpenIdConfigFromTheme ()
50+ OpenIdConfig AppConfig ::loadOpenIdConfigFromTheme ()
5151{
5252 Theme *theme = Theme::instance ();
5353
@@ -63,7 +63,7 @@ OpenIdConfig SystemConfig::loadOpenIdConfigFromTheme()
6363 return cfg;
6464}
6565
66- OpenIdConfig SystemConfig ::loadOpenIdConfigFromSystemConfig (const QSettings &system)
66+ OpenIdConfig AppConfig ::loadOpenIdConfigFromSystemConfig (const QSettings &system)
6767{
6868 QString clientId = system.value (OidcClientIdKey, QString ()).toString ();
6969 QString clientSecret = system.value (OidcClientSecretKey, QString ()).toString ();
@@ -87,7 +87,7 @@ OpenIdConfig SystemConfig::loadOpenIdConfigFromSystemConfig(const QSettings &sys
8787 return OpenIdConfig (clientId, clientSecret, ports, scopes, prompt);
8888}
8989
90- QString SystemConfig ::configPath (const QOperatingSystemVersion::OSType& os, const Theme& theme)
90+ QString AppConfig ::configPath (const QOperatingSystemVersion::OSType& os, const Theme& theme)
9191{
9292 // Important: these paths conform to how names typically work on the systems on which they are used. This includes usage of upper-/lowercase.
9393
@@ -108,22 +108,22 @@ QString SystemConfig::configPath(const QOperatingSystemVersion::OSType& os, cons
108108 return QString (" /etc/%1/%1.ini" ).arg (theme.appName ());
109109}
110110
111- bool SystemConfig ::allowServerUrlChange () const
111+ bool AppConfig ::allowServerUrlChange () const
112112{
113113 return _allowServerURLChange;
114114}
115115
116- QString SystemConfig ::serverUrl () const
116+ QString AppConfig ::serverUrl () const
117117{
118118 return _serverUrl;
119119}
120120
121- bool SystemConfig ::skipUpdateCheck () const
121+ bool AppConfig ::skipUpdateCheck () const
122122{
123123 return _skipUpdateCheck;
124124}
125125
126- OpenIdConfig SystemConfig ::openIdConfig () const
126+ OpenIdConfig AppConfig ::openIdConfig () const
127127{
128128 return _openIdConfig;
129129}
0 commit comments