Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Toggle main menu visibility
Loading...
Searching...
No Matches
eventbus.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
#ifndef JELLYFIN_EVENTBUS_H
21
#define JELLYFIN_EVENTBUS_H
22
23
#include <QObject>
24
25
namespace
Jellyfin
{
26
namespace
DTO
{
27
class
UserItemDataDto
;
28
class
PlaystateRequest
;
29
class
SessionInfoDto
;
30
}
31
35
class
EventBus
:
public
QObject {
36
Q_OBJECT
37
public
:
38
explicit
EventBus
(QObject *parent =
nullptr
);
39
40
signals:
46
void
itemUserDataUpdated
(
const
QString &itemId,
const
Jellyfin::DTO::UserItemDataDto
&userData);
47
53
void
sessionInfoUpdated
(
const
QString &sessionId,
const
Jellyfin::DTO::SessionInfoDto
&sessionInfo);
54
61
void
displayMessage
(
const
QString &header,
const
QString &message,
int
timeout = -1);
62
63
void
playstateCommandReceived
(
const
Jellyfin::DTO::PlaystateRequest
&request);
64
};
65
66
}
67
68
#endif
//JELLYVIN_EVENTBUS_H
Jellyfin::DTO::PlaystateRequest
Definition
playstaterequest.h:49
Jellyfin::DTO::SessionInfoDto
Definition
sessioninfodto.h:60
Jellyfin::DTO::UserItemDataDto
Definition
useritemdatadto.h:49
Jellyfin::EventBus::displayMessage
void displayMessage(const QString &header, const QString &message, int timeout=-1)
The server has requested to display an message to the user.
Jellyfin::EventBus::itemUserDataUpdated
void itemUserDataUpdated(const QString &itemId, const Jellyfin::DTO::UserItemDataDto &userData)
The UserData of an Item has been updated.
Jellyfin::EventBus::EventBus
EventBus(QObject *parent=nullptr)
Definition
eventbus.cpp:23
Jellyfin::EventBus::sessionInfoUpdated
void sessionInfoUpdated(const QString &sessionId, const Jellyfin::DTO::SessionInfoDto &sessionInfo)
The information about a session has been updated.
Jellyfin::EventBus::playstateCommandReceived
void playstateCommandReceived(const Jellyfin::DTO::PlaystateRequest &request)
Jellyfin::DTO
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Jellyfin
core
include
JellyfinQt
eventbus.h
Generated by
1.17.0