Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
notifications.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_LOADER_HTTP_NOTIFICATIONS_H
31#define JELLYFIN_LOADER_HTTP_NOTIFICATIONS_H
32
33#include <optional>
34
42
43namespace Jellyfin {
44// Forward declaration
45class ApiClient;
46}
47namespace Jellyfin {
48namespace Loader {
49namespace HTTP {
50
51using namespace Jellyfin::DTO;
52
57class GetNotificationsLoader : public Jellyfin::Support::HttpLoader<NotificationResultDto, GetNotificationsParams> {
58public:
59 explicit GetNotificationsLoader(ApiClient *apiClient = nullptr);
60
61protected:
62 QString path(const GetNotificationsParams& parameters) const override;
63 QUrlQuery query(const GetNotificationsParams& parameters) const override;
64 QByteArray body(const GetNotificationsParams& parameters) const override;
65 QNetworkAccessManager::Operation operation() const override;
66};
71class SetReadLoader : public Jellyfin::Support::HttpLoader<void, SetReadParams> {
72public:
73 explicit SetReadLoader(ApiClient *apiClient = nullptr);
74
75protected:
76 QString path(const SetReadParams& parameters) const override;
77 QUrlQuery query(const SetReadParams& parameters) const override;
78 QByteArray body(const SetReadParams& parameters) const override;
79 QNetworkAccessManager::Operation operation() const override;
80};
85class GetNotificationsSummaryLoader : public Jellyfin::Support::HttpLoader<NotificationsSummaryDto, GetNotificationsSummaryParams> {
86public:
88
89protected:
90 QString path(const GetNotificationsSummaryParams& parameters) const override;
91 QUrlQuery query(const GetNotificationsSummaryParams& parameters) const override;
92 QByteArray body(const GetNotificationsSummaryParams& parameters) const override;
93 QNetworkAccessManager::Operation operation() const override;
94};
99class SetUnreadLoader : public Jellyfin::Support::HttpLoader<void, SetUnreadParams> {
100public:
101 explicit SetUnreadLoader(ApiClient *apiClient = nullptr);
102
103protected:
104 QString path(const SetUnreadParams& parameters) const override;
105 QUrlQuery query(const SetUnreadParams& parameters) const override;
106 QByteArray body(const SetUnreadParams& parameters) const override;
107 QNetworkAccessManager::Operation operation() const override;
108};
113class CreateAdminNotificationLoader : public Jellyfin::Support::HttpLoader<void, CreateAdminNotificationParams> {
114public:
116
117protected:
118 QString path(const CreateAdminNotificationParams& parameters) const override;
119 QUrlQuery query(const CreateAdminNotificationParams& parameters) const override;
120 QByteArray body(const CreateAdminNotificationParams& parameters) const override;
121 QNetworkAccessManager::Operation operation() const override;
122};
127class GetNotificationServicesLoader : public Jellyfin::Support::HttpLoader<QList<NameIdPair>, GetNotificationServicesParams> {
128public:
130
131protected:
132 QString path(const GetNotificationServicesParams& parameters) const override;
133 QUrlQuery query(const GetNotificationServicesParams& parameters) const override;
134 QByteArray body(const GetNotificationServicesParams& parameters) const override;
135 QNetworkAccessManager::Operation operation() const override;
136};
141class GetNotificationTypesLoader : public Jellyfin::Support::HttpLoader<QList<NotificationTypeInfo>, GetNotificationTypesParams> {
142public:
144
145protected:
146 QString path(const GetNotificationTypesParams& parameters) const override;
147 QUrlQuery query(const GetNotificationTypesParams& parameters) const override;
148 QByteArray body(const GetNotificationTypesParams& parameters) const override;
149 QNetworkAccessManager::Operation operation() const override;
150};
151
152} // NS HTTP
153} // NS Loader
154} // NS Jellyfin
155
156#endif // JELLYFIN_LOADER_HTTP_NOTIFICATIONS_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:13308
Definition requesttypes.h:13321
Sends a notification to all admins.
Definition notifications.h:113
QNetworkAccessManager::Operation operation() const override
Definition notifications.cpp:189
QString path(const CreateAdminNotificationParams &parameters) const override
Definition notifications.cpp:157
QByteArray body(const CreateAdminNotificationParams &parameters) const override
Definition notifications.cpp:185
CreateAdminNotificationLoader(ApiClient *apiClient=nullptr)
Definition notifications.cpp:154
QUrlQuery query(const CreateAdminNotificationParams &parameters) const override
Definition notifications.cpp:163
Gets notification services.
Definition notifications.h:127
QString path(const GetNotificationServicesParams &parameters) const override
Definition notifications.cpp:198
QUrlQuery query(const GetNotificationServicesParams &parameters) const override
Definition notifications.cpp:204
QByteArray body(const GetNotificationServicesParams &parameters) const override
Definition notifications.cpp:214
GetNotificationServicesLoader(ApiClient *apiClient=nullptr)
Definition notifications.cpp:195
QNetworkAccessManager::Operation operation() const override
Definition notifications.cpp:218
Gets notification types.
Definition notifications.h:141
QByteArray body(const GetNotificationTypesParams &parameters) const override
Definition notifications.cpp:243
QNetworkAccessManager::Operation operation() const override
Definition notifications.cpp:247
QString path(const GetNotificationTypesParams &parameters) const override
Definition notifications.cpp:227
GetNotificationTypesLoader(ApiClient *apiClient=nullptr)
Definition notifications.cpp:224
QUrlQuery query(const GetNotificationTypesParams &parameters) const override
Definition notifications.cpp:233
Gets a user's notifications.
Definition notifications.h:57
GetNotificationsLoader(ApiClient *apiClient=nullptr)
Definition notifications.cpp:38
QString path(const GetNotificationsParams &parameters) const override
Definition notifications.cpp:41
QByteArray body(const GetNotificationsParams &parameters) const override
Definition notifications.cpp:57
QUrlQuery query(const GetNotificationsParams &parameters) const override
Definition notifications.cpp:47
QNetworkAccessManager::Operation operation() const override
Definition notifications.cpp:61
Gets a user's notification summary.
Definition notifications.h:85
QUrlQuery query(const GetNotificationsSummaryParams &parameters) const override
Definition notifications.cpp:105
QString path(const GetNotificationsSummaryParams &parameters) const override
Definition notifications.cpp:99
QNetworkAccessManager::Operation operation() const override
Definition notifications.cpp:119
QByteArray body(const GetNotificationsSummaryParams &parameters) const override
Definition notifications.cpp:115
GetNotificationsSummaryLoader(ApiClient *apiClient=nullptr)
Definition notifications.cpp:96
Sets notifications as read.
Definition notifications.h:71
QByteArray body(const SetReadParams &parameters) const override
Definition notifications.cpp:86
QString path(const SetReadParams &parameters) const override
Definition notifications.cpp:70
SetReadLoader(ApiClient *apiClient=nullptr)
Definition notifications.cpp:67
QUrlQuery query(const SetReadParams &parameters) const override
Definition notifications.cpp:76
QNetworkAccessManager::Operation operation() const override
Definition notifications.cpp:90
Sets notifications as unread.
Definition notifications.h:99
QNetworkAccessManager::Operation operation() const override
Definition notifications.cpp:148
SetUnreadLoader(ApiClient *apiClient=nullptr)
Definition notifications.cpp:125
QUrlQuery query(const SetUnreadParams &parameters) const override
Definition notifications.cpp:134
QByteArray body(const SetUnreadParams &parameters) const override
Definition notifications.cpp:144
QString path(const SetUnreadParams &parameters) const override
Definition notifications.cpp:128
Definition requesttypes.h:28945
Definition requesttypes.h:29010
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.