Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
systeminfo.h
Go to the documentation of this file.
1/*
2 * Sailfin: a Jellyfin client written using Qt
3 * Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19/*
20 * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
21 * OVERWRITTEN AT SOME POINT!
22 *
23 * If there is a bug in this file, please fix the code generator used to generate this file found in
24 * core/openapigenerator.d.
25 *
26 * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
27 * file with a newer file if needed instead of manually updating the files.
28 */
29
30#ifndef JELLYFIN_DTO_SYSTEMINFO_H
31#define JELLYFIN_DTO_SYSTEMINFO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QString>
37#include <QStringList>
38#include <optional>
39
44
45namespace Jellyfin {
46// Forward declaration
47class ApiClient;
48}
49namespace Jellyfin {
50namespace DTO {
51
52
54public:
57 bool isShuttingDown,
59 qint32 webSocketPortNumber,
60 bool canSelfRestart,
65 );
66
67 SystemInfo(const SystemInfo &other);
68
72 void replaceData(SystemInfo &other);
73
74 static SystemInfo fromJson(QJsonObject source);
75 void setFromJson(QJsonObject source);
76 QJsonObject toJson() const;
77
78 // Properties
82 QString localAddress() const;
86 void setLocalAddress(QString newLocalAddress);
87 bool localAddressNull() const;
89
93 QString serverName() const;
97 void setServerName(QString newServerName);
98 bool serverNameNull() const;
99 void setServerNameNull();
100
104 QString version() const;
108 void setVersion(QString newVersion);
109 bool versionNull() const;
110 void setVersionNull();
111
115 QString productName() const;
119 void setProductName(QString newProductName);
120 bool productNameNull() const;
121 void setProductNameNull();
122
126 QString operatingSystem() const;
130 void setOperatingSystem(QString newOperatingSystem);
131 bool operatingSystemNull() const;
133
137 QString jellyfinId() const;
141 void setJellyfinId(QString newJellyfinId);
142 bool jellyfinIdNull() const;
143 void setJellyfinIdNull();
144
148 std::optional<bool> startupWizardCompleted() const;
152 void setStartupWizardCompleted(std::optional<bool> newStartupWizardCompleted);
153 bool startupWizardCompletedNull() const;
155
159 QString operatingSystemDisplayName() const;
163 void setOperatingSystemDisplayName(QString newOperatingSystemDisplayName);
166
170 QString packageName() const;
174 void setPackageName(QString newPackageName);
175 bool packageNameNull() const;
176 void setPackageNameNull();
177
181 bool hasPendingRestart() const;
185 void setHasPendingRestart(bool newHasPendingRestart);
186
187
188 bool isShuttingDown() const;
189
190 void setIsShuttingDown(bool newIsShuttingDown);
191
195 bool supportsLibraryMonitor() const;
199 void setSupportsLibraryMonitor(bool newSupportsLibraryMonitor);
200
204 qint32 webSocketPortNumber() const;
208 void setWebSocketPortNumber(qint32 newWebSocketPortNumber);
209
217 void setCompletedInstallations(QList<InstallationInfo> newCompletedInstallations);
218 bool completedInstallationsNull() const;
220
224 bool canSelfRestart() const;
228 void setCanSelfRestart(bool newCanSelfRestart);
229
230
231 bool canLaunchWebBrowser() const;
232
233 void setCanLaunchWebBrowser(bool newCanLaunchWebBrowser);
234
238 QString programDataPath() const;
242 void setProgramDataPath(QString newProgramDataPath);
243 bool programDataPathNull() const;
245
249 QString webPath() const;
253 void setWebPath(QString newWebPath);
254 bool webPathNull() const;
255 void setWebPathNull();
256
260 QString itemsByNamePath() const;
264 void setItemsByNamePath(QString newItemsByNamePath);
265 bool itemsByNamePathNull() const;
267
271 QString cachePath() const;
275 void setCachePath(QString newCachePath);
276 bool cachePathNull() const;
277 void setCachePathNull();
278
282 QString logPath() const;
286 void setLogPath(QString newLogPath);
287 bool logPathNull() const;
288 void setLogPathNull();
289
293 QString internalMetadataPath() const;
297 void setInternalMetadataPath(QString newInternalMetadataPath);
298 bool internalMetadataPathNull() const;
300
304 QString transcodingTempPath() const;
308 void setTranscodingTempPath(QString newTranscodingTempPath);
309 bool transcodingTempPathNull() const;
311
315 bool hasUpdateAvailable() const;
319 void setHasUpdateAvailable(bool newHasUpdateAvailable);
320
321
323
324 void setEncoderLocation(FFmpegLocation newEncoderLocation);
325
326
328
329 void setSystemArchitecture(Architecture newSystemArchitecture);
330
331
332protected:
335 QString m_version;
339 std::optional<bool> m_startupWizardCompleted = std::nullopt;
350 QString m_webPath;
352 QString m_cachePath;
353 QString m_logPath;
359
360private:
361 // Private constructor which generates an invalid object, for use withing SystemInfo::fromJson();
362 SystemInfo();
363};
364
365
366} // NS DTO
367
368namespace Support {
369
371
372template <>
373SystemInfo fromJsonValue(const QJsonValue &source, convertType<SystemInfo>);
374
375template<>
376QJsonValue toJsonValue(const SystemInfo &source, convertType<SystemInfo>);
377
378} // NS DTO
379} // NS Jellyfin
380
381#endif // JELLYFIN_DTO_SYSTEMINFO_H
Value
Definition architecture.h:49
Value
Definition ffmpeglocation.h:49
Definition systeminfo.h:53
qint32 m_webSocketPortNumber
Definition systeminfo.h:345
bool isShuttingDown() const
Definition systeminfo.cpp:378
bool productNameNull() const
Definition systeminfo.cpp:299
void setCanLaunchWebBrowser(bool newCanLaunchWebBrowser)
Definition systeminfo.cpp:417
void setEncoderLocation(FFmpegLocation newEncoderLocation)
Definition systeminfo.cpp:520
QString m_operatingSystemDisplayName
Definition systeminfo.h:340
QString localAddress() const
Gets or sets the local address.
Definition systeminfo.cpp:255
QString programDataPath() const
Gets or sets the program data path.
Definition systeminfo.cpp:421
void setHasUpdateAvailable(bool newHasUpdateAvailable)
Gets or sets a value indicating whether this instance has update available.
Definition systeminfo.cpp:514
QString transcodingTempPath() const
Gets or sets the transcode path.
Definition systeminfo.cpp:499
static SystemInfo fromJson(QJsonObject source)
Definition systeminfo.cpp:118
bool hasUpdateAvailable() const
Gets or sets a value indicating whether this instance has update available.
Definition systeminfo.cpp:512
bool startupWizardCompletedNull() const
Definition systeminfo.cpp:338
void setWebPathNull()
Definition systeminfo.cpp:443
QList< InstallationInfo > m_completedInstallations
Definition systeminfo.h:346
bool m_isShuttingDown
Definition systeminfo.h:343
void setCompletedInstallationsNull()
Definition systeminfo.cpp:405
void setProgramDataPathNull()
Definition systeminfo.cpp:430
void setLogPath(QString newLogPath)
Gets or sets the log path.
Definition systeminfo.cpp:475
QString webPath() const
Gets or sets the web UI resources path.
Definition systeminfo.cpp:434
void setOperatingSystemDisplayName(QString newOperatingSystemDisplayName)
Gets or sets the display name of the operating system.
Definition systeminfo.cpp:348
QString m_webPath
Definition systeminfo.h:350
QString jellyfinId() const
Gets or sets the id.
Definition systeminfo.cpp:320
void setCompletedInstallations(QList< InstallationInfo > newCompletedInstallations)
Gets or sets the completed installations.
Definition systeminfo.cpp:398
void setItemsByNamePathNull()
Definition systeminfo.cpp:456
void setTranscodingTempPath(QString newTranscodingTempPath)
Gets or sets the transcode path.
Definition systeminfo.cpp:501
void setFromJson(QJsonObject source)
Definition systeminfo.cpp:125
void setJellyfinId(QString newJellyfinId)
Gets or sets the id.
Definition systeminfo.cpp:322
void setLocalAddressNull()
Definition systeminfo.cpp:264
bool webPathNull() const
Definition systeminfo.cpp:439
bool transcodingTempPathNull() const
Definition systeminfo.cpp:504
bool supportsLibraryMonitor() const
Gets or sets a value indicating whether [supports library monitor].
Definition systeminfo.cpp:384
QString m_programDataPath
Definition systeminfo.h:349
QString m_version
Definition systeminfo.h:335
void setProductNameNull()
Definition systeminfo.cpp:303
QString m_transcodingTempPath
Definition systeminfo.h:355
QString logPath() const
Gets or sets the log path.
Definition systeminfo.cpp:473
QString cachePath() const
Gets or sets the cache path.
Definition systeminfo.cpp:460
void setCachePathNull()
Definition systeminfo.cpp:469
void setStartupWizardCompletedNull()
Definition systeminfo.cpp:342
bool versionNull() const
Definition systeminfo.cpp:286
QString operatingSystem() const
Gets or sets the operating system.
Definition systeminfo.cpp:307
bool localAddressNull() const
Definition systeminfo.cpp:260
std::optional< bool > startupWizardCompleted() const
Gets or sets a value indicating whether the startup wizard is completed.
Definition systeminfo.cpp:333
bool packageNameNull() const
Definition systeminfo.cpp:364
qint32 webSocketPortNumber() const
Gets or sets the web socket port number.
Definition systeminfo.cpp:390
bool itemsByNamePathNull() const
Definition systeminfo.cpp:452
bool operatingSystemDisplayNameNull() const
Definition systeminfo.cpp:351
void setHasPendingRestart(bool newHasPendingRestart)
Gets or sets a value indicating whether this instance has pending restart.
Definition systeminfo.cpp:374
void setSystemArchitecture(Architecture newSystemArchitecture)
Definition systeminfo.cpp:526
void setItemsByNamePath(QString newItemsByNamePath)
Gets or sets the items by name path.
Definition systeminfo.cpp:449
void setInternalMetadataPath(QString newInternalMetadataPath)
Gets or sets the internal metadata path.
Definition systeminfo.cpp:488
QString productName() const
Gets or sets the product name. This is the AssemblyProduct name.
Definition systeminfo.cpp:294
QString version() const
Gets or sets the server version.
Definition systeminfo.cpp:281
void setOperatingSystemDisplayNameNull()
Definition systeminfo.cpp:355
void setWebSocketPortNumber(qint32 newWebSocketPortNumber)
Gets or sets the web socket port number.
Definition systeminfo.cpp:392
bool canSelfRestart() const
Gets or sets a value indicating whether this instance can self restart.
Definition systeminfo.cpp:409
bool m_canSelfRestart
Definition systeminfo.h:347
FFmpegLocation encoderLocation() const
Definition systeminfo.cpp:518
bool canLaunchWebBrowser() const
Definition systeminfo.cpp:415
void setVersionNull()
Definition systeminfo.cpp:290
bool m_hasPendingRestart
Definition systeminfo.h:342
Architecture m_systemArchitecture
Definition systeminfo.h:358
void setCanSelfRestart(bool newCanSelfRestart)
Gets or sets a value indicating whether this instance can self restart.
Definition systeminfo.cpp:411
void setJellyfinIdNull()
Definition systeminfo.cpp:329
QString internalMetadataPath() const
Gets or sets the internal metadata path.
Definition systeminfo.cpp:486
bool internalMetadataPathNull() const
Definition systeminfo.cpp:491
QString m_operatingSystem
Definition systeminfo.h:337
void setStartupWizardCompleted(std::optional< bool > newStartupWizardCompleted)
Gets or sets a value indicating whether the startup wizard is completed.
Definition systeminfo.cpp:335
QString m_logPath
Definition systeminfo.h:353
bool m_canLaunchWebBrowser
Definition systeminfo.h:348
bool programDataPathNull() const
Definition systeminfo.cpp:426
void setLocalAddress(QString newLocalAddress)
Gets or sets the local address.
Definition systeminfo.cpp:257
void setLogPathNull()
Definition systeminfo.cpp:482
QString m_productName
Definition systeminfo.h:336
QString m_localAddress
Definition systeminfo.h:333
void setOperatingSystem(QString newOperatingSystem)
Gets or sets the operating system.
Definition systeminfo.cpp:309
bool m_hasUpdateAvailable
Definition systeminfo.h:356
QString m_cachePath
Definition systeminfo.h:352
void setVersion(QString newVersion)
Gets or sets the server version.
Definition systeminfo.cpp:283
void setPackageName(QString newPackageName)
Get or sets the package name.
Definition systeminfo.cpp:361
QString m_serverName
Definition systeminfo.h:334
bool logPathNull() const
Definition systeminfo.cpp:478
bool jellyfinIdNull() const
Definition systeminfo.cpp:325
void setPackageNameNull()
Definition systeminfo.cpp:368
void setOperatingSystemNull()
Definition systeminfo.cpp:316
void replaceData(SystemInfo &other)
Definition systeminfo.cpp:89
void setIsShuttingDown(bool newIsShuttingDown)
Definition systeminfo.cpp:380
QString m_packageName
Definition systeminfo.h:341
bool cachePathNull() const
Definition systeminfo.cpp:465
void setTranscodingTempPathNull()
Definition systeminfo.cpp:508
Architecture systemArchitecture() const
Definition systeminfo.cpp:524
std::optional< bool > m_startupWizardCompleted
Definition systeminfo.h:339
void setCachePath(QString newCachePath)
Gets or sets the cache path.
Definition systeminfo.cpp:462
QList< InstallationInfo > completedInstallations() const
Gets or sets the completed installations.
Definition systeminfo.cpp:396
void setWebPath(QString newWebPath)
Gets or sets the web UI resources path.
Definition systeminfo.cpp:436
QString m_jellyfinId
Definition systeminfo.h:338
void setServerName(QString newServerName)
Gets or sets the name of the server.
Definition systeminfo.cpp:270
void setServerNameNull()
Definition systeminfo.cpp:277
QString operatingSystemDisplayName() const
Gets or sets the display name of the operating system.
Definition systeminfo.cpp:346
void setProgramDataPath(QString newProgramDataPath)
Gets or sets the program data path.
Definition systeminfo.cpp:423
void setProductName(QString newProductName)
Gets or sets the product name. This is the AssemblyProduct name.
Definition systeminfo.cpp:296
bool m_supportsLibraryMonitor
Definition systeminfo.h:344
QString itemsByNamePath() const
Gets or sets the items by name path.
Definition systeminfo.cpp:447
bool completedInstallationsNull() const
Definition systeminfo.cpp:401
void setSupportsLibraryMonitor(bool newSupportsLibraryMonitor)
Gets or sets a value indicating whether [supports library monitor].
Definition systeminfo.cpp:386
QString serverName() const
Gets or sets the name of the server.
Definition systeminfo.cpp:268
FFmpegLocation m_encoderLocation
Definition systeminfo.h:357
QString m_internalMetadataPath
Definition systeminfo.h:354
QString m_itemsByNamePath
Definition systeminfo.h:351
QString packageName() const
Get or sets the package name.
Definition systeminfo.cpp:359
bool serverNameNull() const
Definition systeminfo.cpp:273
QJsonObject toJson() const
Definition systeminfo.cpp:155
bool hasPendingRestart() const
Gets or sets a value indicating whether this instance has pending restart.
Definition systeminfo.cpp:372
void setInternalMetadataPathNull()
Definition systeminfo.cpp:495
bool operatingSystemNull() const
Definition systeminfo.cpp:312
Definition mediaplayer2.h:20
AccessSchedule fromJsonValue(const QJsonValue &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:133
QJsonValue toJsonValue(const AccessSchedule &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:139
Definition jsonconvimpl.h:45