Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorServiceMpris::MprisPlayerModel Class Reference

#include <PhosphorServiceMpris/MprisPlayerModel.h>

Inheritance diagram for PhosphorServiceMpris::MprisPlayerModel:
[legend]

Public Types

enum  Roles {
  PlayerRole = Qt::UserRole + 1 , IdentityRole , PlaybackStateRole , TrackTitleRole ,
  TrackArtistRole , ArtUrlRole
}

Signals

void hostChanged ()
void countChanged ()

Public Member Functions

 MprisPlayerModel (QObject *parent=nullptr)
 ~MprisPlayerModel () override
MprisHost * host () const
void setHost (MprisHost *host)
int rowCount (const QModelIndex &parent={}) const override
QVariant data (const QModelIndex &index, int role) const override
QHash< int, QByteArray > roleNames () const override

Member Enumeration Documentation

◆ Roles

Enumerator
PlayerRole 
IdentityRole 
PlaybackStateRole 
TrackTitleRole 
TrackArtistRole 
ArtUrlRole 

Constructor & Destructor Documentation

◆ MprisPlayerModel()

PhosphorServiceMpris::MprisPlayerModel::MprisPlayerModel ( QObject * parent = nullptr)
explicit

◆ ~MprisPlayerModel()

PhosphorServiceMpris::MprisPlayerModel::~MprisPlayerModel ( )
override

Member Function Documentation

◆ countChanged

void PhosphorServiceMpris::MprisPlayerModel::countChanged ( )
signal

◆ data()

QVariant PhosphorServiceMpris::MprisPlayerModel::data ( const QModelIndex & index,
int role ) const
nodiscardoverride

◆ host()

MprisHost * PhosphorServiceMpris::MprisPlayerModel::host ( ) const
nodiscard

◆ hostChanged

void PhosphorServiceMpris::MprisPlayerModel::hostChanged ( )
signal

◆ roleNames()

QHash< int, QByteArray > PhosphorServiceMpris::MprisPlayerModel::roleNames ( ) const
nodiscardoverride

◆ rowCount()

int PhosphorServiceMpris::MprisPlayerModel::rowCount ( const QModelIndex & parent = {}) const
nodiscardoverride

◆ setHost()

void PhosphorServiceMpris::MprisPlayerModel::setHost ( MprisHost * host)

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