Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
Jellyfin::ViewModel::PlatformMediaControl Class Reference

Exposes media control and information to the OS. Uses MPRIS on FreeDesktop-enabled systems. More...

#include <platformmediacontrol.h>

Inheritance diagram for Jellyfin::ViewModel::PlatformMediaControl:

Signals

void playbackManagerChanged (PlaybackManager *newPlaybackManager)
 
void canQuitChanged (bool newCanQuit)
 
void canRaiseChanged (bool newCanRaise)
 
void playerNameChanged (QString newPlayerName)
 
void desktopFileChanged (QString newDesktopFile)
 
void quitRequested ()
 
void raiseRequested ()
 

Public Member Functions

 PlatformMediaControl (QObject *parent=nullptr)
 
PlaybackManagerplaybackManager () const
 
void setPlaybackManager (PlaybackManager *newPlaybackManager)
 
bool canQuit () const
 
void setCanQuit (bool newCanQuit)
 
void requestQuit ()
 
bool canRaise () const
 
void setCanRaise (bool newCanRaise)
 
void requestRaise ()
 
QString playerName () const
 
void setPlayerName (QString newPlayerName)
 
QString desktopFile () const
 
void setDesktopFile (QString newDesktopFile)
 
void classBegin () override
 
void componentComplete () override
 

Properties

Jellyfin::ViewModel::PlaybackManagerplaybackManager
 
bool canQuit
 
bool canRaise
 
QString playerName
 
QString desktopFile
 

Detailed Description

Exposes media control and information to the OS. Uses MPRIS on FreeDesktop-enabled systems.

Constructor & Destructor Documentation

◆ PlatformMediaControl()

Jellyfin::ViewModel::PlatformMediaControl::PlatformMediaControl ( QObject * parent = nullptr)
explicit

Member Function Documentation

◆ canQuit()

bool Jellyfin::ViewModel::PlatformMediaControl::canQuit ( ) const
inline

◆ canQuitChanged

void Jellyfin::ViewModel::PlatformMediaControl::canQuitChanged ( bool newCanQuit)
signal

◆ canRaise()

bool Jellyfin::ViewModel::PlatformMediaControl::canRaise ( ) const
inline

◆ canRaiseChanged

void Jellyfin::ViewModel::PlatformMediaControl::canRaiseChanged ( bool newCanRaise)
signal

◆ classBegin()

void Jellyfin::ViewModel::PlatformMediaControl::classBegin ( )
inlineoverride

◆ componentComplete()

void Jellyfin::ViewModel::PlatformMediaControl::componentComplete ( )
inlineoverride

◆ desktopFile()

QString Jellyfin::ViewModel::PlatformMediaControl::desktopFile ( ) const
inline

◆ desktopFileChanged

void Jellyfin::ViewModel::PlatformMediaControl::desktopFileChanged ( QString newDesktopFile)
signal

◆ playbackManager()

PlaybackManager * Jellyfin::ViewModel::PlatformMediaControl::playbackManager ( ) const
inline

◆ playbackManagerChanged

void Jellyfin::ViewModel::PlatformMediaControl::playbackManagerChanged ( PlaybackManager * newPlaybackManager)
signal

◆ playerName()

QString Jellyfin::ViewModel::PlatformMediaControl::playerName ( ) const
inline

◆ playerNameChanged

void Jellyfin::ViewModel::PlatformMediaControl::playerNameChanged ( QString newPlayerName)
signal

◆ quitRequested

void Jellyfin::ViewModel::PlatformMediaControl::quitRequested ( )
signal

◆ raiseRequested

void Jellyfin::ViewModel::PlatformMediaControl::raiseRequested ( )
signal

◆ requestQuit()

void Jellyfin::ViewModel::PlatformMediaControl::requestQuit ( )
inline

◆ requestRaise()

void Jellyfin::ViewModel::PlatformMediaControl::requestRaise ( )
inline

◆ setCanQuit()

void Jellyfin::ViewModel::PlatformMediaControl::setCanQuit ( bool newCanQuit)
inline

◆ setCanRaise()

void Jellyfin::ViewModel::PlatformMediaControl::setCanRaise ( bool newCanRaise)
inline

◆ setDesktopFile()

void Jellyfin::ViewModel::PlatformMediaControl::setDesktopFile ( QString newDesktopFile)
inline

◆ setPlaybackManager()

void Jellyfin::ViewModel::PlatformMediaControl::setPlaybackManager ( PlaybackManager * newPlaybackManager)
inline

◆ setPlayerName()

void Jellyfin::ViewModel::PlatformMediaControl::setPlayerName ( QString newPlayerName)
inline

Property Documentation

◆ canQuit

bool Jellyfin::ViewModel::PlatformMediaControl::canQuit
readwrite

Whether the operating system can request the media player to quit. If set, the quitRequested signal may be emitted and the application should quit.

◆ canRaise

bool Jellyfin::ViewModel::PlatformMediaControl::canRaise
readwrite

◆ desktopFile

QString Jellyfin::ViewModel::PlatformMediaControl::desktopFile
readwrite

◆ playbackManager

Jellyfin::ViewModel::PlaybackManager * Jellyfin::ViewModel::PlatformMediaControl::playbackManager
readwrite

◆ playerName

QString Jellyfin::ViewModel::PlatformMediaControl::playerName
readwrite

The documentation for this class was generated from the following files: