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

#include <mediapathdto.h>

Public Member Functions

 MediaPathDto (QString name, QSharedPointer< MediaPathInfo > pathInfo)
 
 MediaPathDto (const MediaPathDto &other)
 
void replaceData (MediaPathDto &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
QString name () const
 Gets or sets the name of the library.
 
void setName (QString newName)
 Gets or sets the name of the library.
 
QString path () const
 Gets or sets the path to add.
 
void setPath (QString newPath)
 Gets or sets the path to add.
 
bool pathNull () const
 
void setPathNull ()
 
QSharedPointer< MediaPathInfopathInfo () const
 
void setPathInfo (QSharedPointer< MediaPathInfo > newPathInfo)
 

Static Public Member Functions

static MediaPathDto fromJson (QJsonObject source)
 

Protected Attributes

QString m_name
 
QString m_path
 
QSharedPointer< MediaPathInfom_pathInfo = QSharedPointer<MediaPathInfo>()
 

Constructor & Destructor Documentation

◆ MediaPathDto() [1/2]

Jellyfin::DTO::MediaPathDto::MediaPathDto ( QString name,
QSharedPointer< MediaPathInfo > pathInfo )

◆ MediaPathDto() [2/2]

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

Member Function Documentation

◆ fromJson()

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

◆ name()

QString Jellyfin::DTO::MediaPathDto::name ( ) const

Gets or sets the name of the library.

◆ path()

QString Jellyfin::DTO::MediaPathDto::path ( ) const

Gets or sets the path to add.

◆ pathInfo()

QSharedPointer< MediaPathInfo > Jellyfin::DTO::MediaPathDto::pathInfo ( ) const

◆ pathNull()

bool Jellyfin::DTO::MediaPathDto::pathNull ( ) const

◆ replaceData()

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

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

◆ setFromJson()

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

◆ setName()

void Jellyfin::DTO::MediaPathDto::setName ( QString newName)

Gets or sets the name of the library.

◆ setPath()

void Jellyfin::DTO::MediaPathDto::setPath ( QString newPath)

Gets or sets the path to add.

◆ setPathInfo()

void Jellyfin::DTO::MediaPathDto::setPathInfo ( QSharedPointer< MediaPathInfo > newPathInfo)

◆ setPathNull()

void Jellyfin::DTO::MediaPathDto::setPathNull ( )

◆ toJson()

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

Member Data Documentation

◆ m_name

QString Jellyfin::DTO::MediaPathDto::m_name
protected

◆ m_path

QString Jellyfin::DTO::MediaPathDto::m_path
protected

◆ m_pathInfo

QSharedPointer<MediaPathInfo> Jellyfin::DTO::MediaPathDto::m_pathInfo = QSharedPointer<MediaPathInfo>()
protected

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