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

#include <pathsubstitution.h>

Public Member Functions

 PathSubstitution (QString from, QString to)
 PathSubstitution (const PathSubstitution &other)
void replaceData (PathSubstitution &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
QString from () const
 Gets or sets the value to substitute.
void setFrom (QString newFrom)
 Gets or sets the value to substitute.
QString to () const
 Gets or sets the value to substitution with.
void setTo (QString newTo)
 Gets or sets the value to substitution with.

Static Public Member Functions

static PathSubstitution fromJson (QJsonObject source)

Protected Attributes

QString m_from
QString m_to

Constructor & Destructor Documentation

◆ PathSubstitution() [1/2]

Jellyfin::DTO::PathSubstitution::PathSubstitution ( QString from,
QString to )

◆ PathSubstitution() [2/2]

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

Member Function Documentation

◆ from()

QString Jellyfin::DTO::PathSubstitution::from ( ) const

Gets or sets the value to substitute.

◆ fromJson()

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

◆ replaceData()

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

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

◆ setFrom()

void Jellyfin::DTO::PathSubstitution::setFrom ( QString newFrom)

Gets or sets the value to substitute.

◆ setFromJson()

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

◆ setTo()

void Jellyfin::DTO::PathSubstitution::setTo ( QString newTo)

Gets or sets the value to substitution with.

◆ to()

QString Jellyfin::DTO::PathSubstitution::to ( ) const

Gets or sets the value to substitution with.

◆ toJson()

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

Member Data Documentation

◆ m_from

QString Jellyfin::DTO::PathSubstitution::m_from
protected

◆ m_to

QString Jellyfin::DTO::PathSubstitution::m_to
protected

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