Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
mediaplayer2.h
Go to the documentation of this file.
1/*
2 * This file was generated by qdbusxml2cpp version 0.8
3 * Command line was: qdbusxml2cpp org.mpris.MediaPlayer2.xml -a ../include/JellyfinQt/platform/freedesktop/mediaplayer2.h:../src/platform/freedesktop/mediaplayer2.cpp
4 *
5 * qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
6 *
7 * This is an auto-generated file.
8 * This file may have been hand-edited. Look for HAND-EDIT comments
9 * before re-generating it.
10 */
11
12//HAND-EDIT: include-guard
13#ifndef JELLYFIN_PLATFORM_FREEDESKTOP_MEDIAPLAYER2_H
14#define JELLYFIN_PLATFORM_FREEDESKTKOP_MEDIAPLAYER2_H
15
16#include <QtCore/QObject>
17#include <QtDBus/QtDBus>
18QT_BEGIN_NAMESPACE
19class QByteArray;
20template<class T> class QList;
21template<class Key, class Value> class QMap;
22class QString;
23class QStringList;
24class QVariant;
25QT_END_NAMESPACE
26
27//HAND-EDIT: added namespaces
28namespace Jellyfin {
29namespace ViewModel {
30 class PlatformMediaControl;
31}
32
33namespace Platform {
34namespace FreeDesktop {
35
36/*
37 * Adaptor class for interface org.mpris.MediaPlayer2
38 */
39class MediaPlayer2Adaptor: public QDBusAbstractAdaptor
40{
41 Q_OBJECT
42 Q_CLASSINFO("D-Bus Interface", "org.mpris.MediaPlayer2")
43 Q_CLASSINFO("D-Bus Introspection", ""
44" <interface name=\"org.mpris.MediaPlayer2\">\n"
45" <annotation value=\"true\" name=\"org.freedesktop.DBus.Property.EmitsChangedSignal\"/>\n"
46" <method name=\"Raise\">\n"
47" </method>\n"
48" <method name=\"Quit\">\n"
49" </method>\n"
50" <property access=\"read\" type=\"b\" name=\"CanQuit\">\n"
51" </property>\n"
52" <property access=\"readwrite\" type=\"b\" name=\"Fullscreen\">\n"
53" <annotation value=\"true\" name=\"org.mpris.MediaPlayer2.property.optional\"/>\n"
54" </property>\n"
55" <property access=\"read\" type=\"b\" name=\"CanSetFullscreen\">\n"
56" <annotation value=\"true\" name=\"org.mpris.MediaPlayer2.property.optional\"/>\n"
57" </property>\n"
58" <property access=\"read\" type=\"b\" name=\"CanRaise\">\n"
59" </property>\n"
60" <property access=\"read\" type=\"b\" name=\"HasTrackList\">\n"
61" </property>\n"
62" <property access=\"read\" type=\"s\" name=\"Identity\">\n"
63" </property>\n"
64" <property access=\"read\" type=\"s\" name=\"DesktopEntry\">\n"
65" <annotation value=\"true\" name=\"org.mpris.MediaPlayer2.property.optional\"/>\n"
66" </property>\n"
67" <property access=\"read\" type=\"as\" name=\"SupportedUriSchemes\">\n"
68" </property>\n"
69" <property access=\"read\" type=\"as\" name=\"SupportedMimeTypes\">\n"
70" </property>\n"
71" </interface>\n"
72 "")
73public:
75 virtual ~MediaPlayer2Adaptor();
76
77public: // PROPERTIES
78 Q_PROPERTY(bool CanQuit READ canQuit)
79 bool canQuit() const;
80
81 Q_PROPERTY(bool CanRaise READ canRaise)
82 bool canRaise() const;
83
84 Q_PROPERTY(bool CanSetFullscreen READ canSetFullscreen)
85 bool canSetFullscreen() const;
86
87 Q_PROPERTY(QString DesktopEntry READ desktopEntry)
88 QString desktopEntry() const;
89
90 Q_PROPERTY(bool Fullscreen READ fullscreen WRITE setFullscreen)
91 bool fullscreen() const;
92 void setFullscreen(bool value);
93
94 Q_PROPERTY(bool HasTrackList READ hasTrackList)
95 bool hasTrackList() const;
96
97 Q_PROPERTY(QString Identity READ identity)
98 QString identity() const;
99
100 Q_PROPERTY(QStringList SupportedMimeTypes READ supportedMimeTypes)
101 QStringList supportedMimeTypes() const;
102
103 Q_PROPERTY(QStringList SupportedUriSchemes READ supportedUriSchemes)
104 QStringList supportedUriSchemes() const;
105
106public Q_SLOTS: // METHODS
107 void Quit();
108 void Raise();
109Q_SIGNALS: // SIGNALS
110private:
111 ViewModel::PlatformMediaControl *m_mediaControl;
112};
113
114} // NS FreeDesktop
115} // NS Platform
116} // NS Jellyfin
117
118#endif
bool hasTrackList() const
Definition mediaplayer2.cpp:78
QString identity() const
Definition mediaplayer2.cpp:85
QStringList SupportedMimeTypes
Definition mediaplayer2.h:100
bool CanSetFullscreen
Definition mediaplayer2.h:84
QStringList supportedMimeTypes() const
Definition mediaplayer2.cpp:91
QString desktopEntry() const
Definition mediaplayer2.cpp:60
bool canQuit() const
Definition mediaplayer2.cpp:42
QStringList supportedUriSchemes() const
Definition mediaplayer2.cpp:97
bool canRaise() const
Definition mediaplayer2.cpp:48
void Raise()
Definition mediaplayer2.cpp:110
bool HasTrackList
Definition mediaplayer2.h:94
QString DesktopEntry
Definition mediaplayer2.h:87
QString Identity
Definition mediaplayer2.h:97
void setFullscreen(bool value)
Definition mediaplayer2.cpp:72
void Quit()
Definition mediaplayer2.cpp:105
bool fullscreen() const
Definition mediaplayer2.cpp:66
bool canSetFullscreen() const
Definition mediaplayer2.cpp:54
bool Fullscreen
Definition mediaplayer2.h:90
QStringList SupportedUriSchemes
Definition mediaplayer2.h:103
Exposes media control and information to the OS. Uses MPRIS on FreeDesktop-enabled systems.
Definition platformmediacontrol.h:35
Definition mediaplayer2.h:20
Definition mediaplayer2.h:21