Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
playbackreporter.h
Go to the documentation of this file.
1/*
2 * Sailfin: a Jellyfin client written using Qt
3 * Copyright (C) 2021-2022 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#ifndef JELLYFIN_MODEL_PLAYBACKREPORTER_H
20#define JELLYFIN_MODEL_PLAYBACKREPORTER_H
21
22#include <QLoggingCategory>
23#include <QObject>
24#include <QScopedPointer>
25
26namespace Jellyfin {
27
28class ApiClient;
29
30namespace Model {
31
33
35
43class PlaybackReporter : public QObject {
44 Q_OBJECT
45 Q_DECLARE_PRIVATE(PlaybackReporter);
46public:
47 explicit PlaybackReporter(QObject *parent = nullptr);
48
49 void setPlaybackManager(LocalPlaybackManager *playbackManager);
50private:
52};
53
54}
55}
56
57#endif //JELLYFIN_MODEL_PLAYBACKREPORTER_H
58
Controls playback whithin this app.
Definition playbackmanager.h:187
Definition playbackreporter.cpp:37
Reports the current playback state to the Jellyfin server.
Definition playbackreporter.h:43
void setPlaybackManager(LocalPlaybackManager *playbackManager)
Definition playbackreporter.cpp:80
PlaybackReporter(QObject *parent=nullptr)
Definition playbackreporter.cpp:70
Q_DECLARE_LOGGING_CATEGORY(playbackManager)