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

#include <userdata.h>

Inheritance diagram for Jellyfin::ViewModel::UserData:

Signals

void ratingChanged (double newRating)
 
void playedPercentageChanged (double newPlayedPercentage)
 
void unplayedItemCountChanged (int newUnplayedItemCount)
 
void playbackPositionTicksChanged (qint64 newPlaybackPositionTicks)
 
void playCountChanged (int newPlayCount)
 
void favoriteChanged (bool newFavorite)
 
void likesChanged (bool newLikes)
 
void lastPlayedDateChanged (QDateTime newLastPlayedDate)
 
void playedChanged (bool newPLayed)
 
void keyChanged (QString newKey)
 

Public Member Functions

 UserData (QObject *parent=nullptr)
 
 UserData (QSharedPointer< DTO::UserItemDataDto > data, QObject *parent=nullptr)
 
void setData (QSharedPointer< DTO::UserItemDataDto > data)
 
double rating () const
 
double playedPercentage () const
 
int unplayedItemCount () const
 
qint64 playbackPositionTicks () const
 
int playCount () const
 
bool favorite () const
 
bool likes () const
 
QDateTime lastPlayedDate () const
 
bool played () const
 
QString key () const
 

Properties

double rating
 
double playedPercentage
 
int unplayedItemCount
 
qint64 playbackPositionTicks
 
int playCount
 
bool favorite
 
bool m_likes
 
QDateTime lastPlayedDate
 
bool played
 
QString key
 

Constructor & Destructor Documentation

◆ UserData() [1/2]

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

◆ UserData() [2/2]

Jellyfin::ViewModel::UserData::UserData ( QSharedPointer< DTO::UserItemDataDto > data,
QObject * parent = nullptr )
explicit

Member Function Documentation

◆ favorite()

bool Jellyfin::ViewModel::UserData::favorite ( ) const
inline

◆ favoriteChanged

void Jellyfin::ViewModel::UserData::favoriteChanged ( bool newFavorite)
signal

◆ key()

QString Jellyfin::ViewModel::UserData::key ( ) const
inline

◆ keyChanged

void Jellyfin::ViewModel::UserData::keyChanged ( QString newKey)
signal

◆ lastPlayedDate()

QDateTime Jellyfin::ViewModel::UserData::lastPlayedDate ( ) const
inline

◆ lastPlayedDateChanged

void Jellyfin::ViewModel::UserData::lastPlayedDateChanged ( QDateTime newLastPlayedDate)
signal

◆ likes()

bool Jellyfin::ViewModel::UserData::likes ( ) const
inline

◆ likesChanged

void Jellyfin::ViewModel::UserData::likesChanged ( bool newLikes)
signal

◆ playbackPositionTicks()

qint64 Jellyfin::ViewModel::UserData::playbackPositionTicks ( ) const
inline

◆ playbackPositionTicksChanged

void Jellyfin::ViewModel::UserData::playbackPositionTicksChanged ( qint64 newPlaybackPositionTicks)
signal

◆ playCount()

int Jellyfin::ViewModel::UserData::playCount ( ) const
inline

◆ playCountChanged

void Jellyfin::ViewModel::UserData::playCountChanged ( int newPlayCount)
signal

◆ played()

bool Jellyfin::ViewModel::UserData::played ( ) const
inline

◆ playedChanged

void Jellyfin::ViewModel::UserData::playedChanged ( bool newPLayed)
signal

◆ playedPercentage()

double Jellyfin::ViewModel::UserData::playedPercentage ( ) const
inline

◆ playedPercentageChanged

void Jellyfin::ViewModel::UserData::playedPercentageChanged ( double newPlayedPercentage)
signal

◆ rating()

double Jellyfin::ViewModel::UserData::rating ( ) const
inline

◆ ratingChanged

void Jellyfin::ViewModel::UserData::ratingChanged ( double newRating)
signal

◆ setData()

void Jellyfin::ViewModel::UserData::setData ( QSharedPointer< DTO::UserItemDataDto > data)

◆ unplayedItemCount()

int Jellyfin::ViewModel::UserData::unplayedItemCount ( ) const
inline

◆ unplayedItemCountChanged

void Jellyfin::ViewModel::UserData::unplayedItemCountChanged ( int newUnplayedItemCount)
signal

Property Documentation

◆ favorite

bool Jellyfin::ViewModel::UserData::favorite
read

◆ key

QString Jellyfin::ViewModel::UserData::key
read

◆ lastPlayedDate

QDateTime Jellyfin::ViewModel::UserData::lastPlayedDate
read

◆ m_likes

bool Jellyfin::ViewModel::UserData::m_likes
read

◆ playbackPositionTicks

qint64 Jellyfin::ViewModel::UserData::playbackPositionTicks
read

◆ playCount

int Jellyfin::ViewModel::UserData::playCount
read

◆ played

bool Jellyfin::ViewModel::UserData::played
read

◆ playedPercentage

double Jellyfin::ViewModel::UserData::playedPercentage
read

◆ rating

double Jellyfin::ViewModel::UserData::rating
read

◆ unplayedItemCount

int Jellyfin::ViewModel::UserData::unplayedItemCount
read

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