Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
tasktriggerinfo.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_TASKTRIGGERINFO_H
31#define JELLYFIN_DTO_TASKTRIGGERINFO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QString>
36#include <optional>
37
40
41namespace Jellyfin {
42// Forward declaration
43class ApiClient;
44}
45namespace Jellyfin {
46namespace DTO {
47
48
50public:
53 );
54
55 TaskTriggerInfo(const TaskTriggerInfo &other);
56
60 void replaceData(TaskTriggerInfo &other);
61
62 static TaskTriggerInfo fromJson(QJsonObject source);
63 void setFromJson(QJsonObject source);
64 QJsonObject toJson() const;
65
66 // Properties
70 QString type() const;
74 void setType(QString newType);
75 bool typeNull() const;
76 void setTypeNull();
77
81 std::optional<qint64> timeOfDayTicks() const;
85 void setTimeOfDayTicks(std::optional<qint64> newTimeOfDayTicks);
86 bool timeOfDayTicksNull() const;
88
92 std::optional<qint64> intervalTicks() const;
96 void setIntervalTicks(std::optional<qint64> newIntervalTicks);
97 bool intervalTicksNull() const;
99
100
101 DayOfWeek dayOfWeek() const;
102
103 void setDayOfWeek(DayOfWeek newDayOfWeek);
104
108 std::optional<qint64> maxRuntimeTicks() const;
112 void setMaxRuntimeTicks(std::optional<qint64> newMaxRuntimeTicks);
113 bool maxRuntimeTicksNull() const;
115
116
117protected:
118 QString m_type;
119 std::optional<qint64> m_timeOfDayTicks = std::nullopt;
120 std::optional<qint64> m_intervalTicks = std::nullopt;
122 std::optional<qint64> m_maxRuntimeTicks = std::nullopt;
123
124private:
125 // Private constructor which generates an invalid object, for use withing TaskTriggerInfo::fromJson();
127};
128
129
130} // NS DTO
131
132namespace Support {
133
135
136template <>
138
139template<>
141
142} // NS DTO
143} // NS Jellyfin
144
145#endif // JELLYFIN_DTO_TASKTRIGGERINFO_H
Value
Definition dayofweek.h:49
Definition tasktriggerinfo.h:49
std::optional< qint64 > maxRuntimeTicks() const
Gets or sets the maximum runtime ticks.
Definition tasktriggerinfo.cpp:148
QJsonObject toJson() const
Definition tasktriggerinfo.cpp:76
void setMaxRuntimeTicks(std::optional< qint64 > newMaxRuntimeTicks)
Gets or sets the maximum runtime ticks.
Definition tasktriggerinfo.cpp:150
static TaskTriggerInfo fromJson(QJsonObject source)
Definition tasktriggerinfo.cpp:60
bool intervalTicksNull() const
Definition tasktriggerinfo.cpp:134
void setFromJson(QJsonObject source)
Definition tasktriggerinfo.cpp:67
std::optional< qint64 > m_timeOfDayTicks
Definition tasktriggerinfo.h:119
void setDayOfWeek(DayOfWeek newDayOfWeek)
Definition tasktriggerinfo.cpp:144
void setTimeOfDayTicksNull()
Definition tasktriggerinfo.cpp:125
void setIntervalTicksNull()
Definition tasktriggerinfo.cpp:138
void setTimeOfDayTicks(std::optional< qint64 > newTimeOfDayTicks)
Gets or sets the time of day.
Definition tasktriggerinfo.cpp:118
bool typeNull() const
Definition tasktriggerinfo.cpp:108
std::optional< qint64 > m_maxRuntimeTicks
Definition tasktriggerinfo.h:122
QString m_type
Definition tasktriggerinfo.h:118
void setTypeNull()
Definition tasktriggerinfo.cpp:112
std::optional< qint64 > timeOfDayTicks() const
Gets or sets the time of day.
Definition tasktriggerinfo.cpp:116
std::optional< qint64 > m_intervalTicks
Definition tasktriggerinfo.h:120
DayOfWeek dayOfWeek() const
Definition tasktriggerinfo.cpp:142
void setType(QString newType)
Gets or sets the type.
Definition tasktriggerinfo.cpp:105
void setIntervalTicks(std::optional< qint64 > newIntervalTicks)
Gets or sets the interval.
Definition tasktriggerinfo.cpp:131
bool maxRuntimeTicksNull() const
Definition tasktriggerinfo.cpp:153
void replaceData(TaskTriggerInfo &other)
Definition tasktriggerinfo.cpp:52
QString type() const
Gets or sets the type.
Definition tasktriggerinfo.cpp:103
std::optional< qint64 > intervalTicks() const
Gets or sets the interval.
Definition tasktriggerinfo.cpp:129
DayOfWeek m_dayOfWeek
Definition tasktriggerinfo.h:121
void setMaxRuntimeTicksNull()
Definition tasktriggerinfo.cpp:157
bool timeOfDayTicksNull() const
Definition tasktriggerinfo.cpp:121
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