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

#include <livetvinfo.h>

Public Member Functions

 LiveTvInfo (QList< LiveTvServiceInfo > services, bool isEnabled, QStringList enabledUsers)
 LiveTvInfo (const LiveTvInfo &other)
void replaceData (LiveTvInfo &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
QList< LiveTvServiceInfoservices () const
 Gets or sets the services.
void setServices (QList< LiveTvServiceInfo > newServices)
 Gets or sets the services.
bool isEnabled () const
 Gets or sets a value indicating whether this instance is enabled.
void setIsEnabled (bool newIsEnabled)
 Gets or sets a value indicating whether this instance is enabled.
QStringList enabledUsers () const
 Gets or sets the enabled users.
void setEnabledUsers (QStringList newEnabledUsers)
 Gets or sets the enabled users.

Static Public Member Functions

static LiveTvInfo fromJson (QJsonObject source)

Protected Attributes

QList< LiveTvServiceInfom_services
bool m_isEnabled
QStringList m_enabledUsers

Constructor & Destructor Documentation

◆ LiveTvInfo() [1/2]

Jellyfin::DTO::LiveTvInfo::LiveTvInfo ( QList< LiveTvServiceInfo > services,
bool isEnabled,
QStringList enabledUsers )

◆ LiveTvInfo() [2/2]

Jellyfin::DTO::LiveTvInfo::LiveTvInfo ( const LiveTvInfo & other)

Member Function Documentation

◆ enabledUsers()

QStringList Jellyfin::DTO::LiveTvInfo::enabledUsers ( ) const

Gets or sets the enabled users.

◆ fromJson()

LiveTvInfo Jellyfin::DTO::LiveTvInfo::fromJson ( QJsonObject source)
static

◆ isEnabled()

bool Jellyfin::DTO::LiveTvInfo::isEnabled ( ) const

Gets or sets a value indicating whether this instance is enabled.

◆ replaceData()

void Jellyfin::DTO::LiveTvInfo::replaceData ( LiveTvInfo & other)

Replaces the data being hold by this class with that of the other.

◆ services()

QList< LiveTvServiceInfo > Jellyfin::DTO::LiveTvInfo::services ( ) const

Gets or sets the services.

◆ setEnabledUsers()

void Jellyfin::DTO::LiveTvInfo::setEnabledUsers ( QStringList newEnabledUsers)

Gets or sets the enabled users.

◆ setFromJson()

void Jellyfin::DTO::LiveTvInfo::setFromJson ( QJsonObject source)

◆ setIsEnabled()

void Jellyfin::DTO::LiveTvInfo::setIsEnabled ( bool newIsEnabled)

Gets or sets a value indicating whether this instance is enabled.

◆ setServices()

void Jellyfin::DTO::LiveTvInfo::setServices ( QList< LiveTvServiceInfo > newServices)

Gets or sets the services.

◆ toJson()

QJsonObject Jellyfin::DTO::LiveTvInfo::toJson ( ) const

Member Data Documentation

◆ m_enabledUsers

QStringList Jellyfin::DTO::LiveTvInfo::m_enabledUsers
protected

◆ m_isEnabled

bool Jellyfin::DTO::LiveTvInfo::m_isEnabled
protected

◆ m_services

QList<LiveTvServiceInfo> Jellyfin::DTO::LiveTvInfo::m_services
protected

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