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

#include <validatepathdto.h>

Public Member Functions

 ValidatePathDto (bool validateWritable)
 
 ValidatePathDto (const ValidatePathDto &other)
 
void replaceData (ValidatePathDto &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
bool validateWritable () const
 Gets or sets a value indicating whether validate if path is writable.
 
void setValidateWritable (bool newValidateWritable)
 Gets or sets a value indicating whether validate if path is writable.
 
QString path () const
 Gets or sets the path.
 
void setPath (QString newPath)
 Gets or sets the path.
 
bool pathNull () const
 
void setPathNull ()
 
std::optional< bool > isFile () const
 Gets or sets is path file.
 
void setIsFile (std::optional< bool > newIsFile)
 Gets or sets is path file.
 
bool isFileNull () const
 
void setIsFileNull ()
 

Static Public Member Functions

static ValidatePathDto fromJson (QJsonObject source)
 

Protected Attributes

bool m_validateWritable
 
QString m_path
 
std::optional< bool > m_isFile = std::nullopt
 

Constructor & Destructor Documentation

◆ ValidatePathDto() [1/2]

Jellyfin::DTO::ValidatePathDto::ValidatePathDto ( bool validateWritable)

◆ ValidatePathDto() [2/2]

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

Member Function Documentation

◆ fromJson()

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

◆ isFile()

std::optional< bool > Jellyfin::DTO::ValidatePathDto::isFile ( ) const

Gets or sets is path file.

◆ isFileNull()

bool Jellyfin::DTO::ValidatePathDto::isFileNull ( ) const

◆ path()

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

Gets or sets the path.

◆ pathNull()

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

◆ replaceData()

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

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

◆ setFromJson()

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

◆ setIsFile()

void Jellyfin::DTO::ValidatePathDto::setIsFile ( std::optional< bool > newIsFile)

Gets or sets is path file.

◆ setIsFileNull()

void Jellyfin::DTO::ValidatePathDto::setIsFileNull ( )

◆ setPath()

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

Gets or sets the path.

◆ setPathNull()

void Jellyfin::DTO::ValidatePathDto::setPathNull ( )

◆ setValidateWritable()

void Jellyfin::DTO::ValidatePathDto::setValidateWritable ( bool newValidateWritable)

Gets or sets a value indicating whether validate if path is writable.

◆ toJson()

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

◆ validateWritable()

bool Jellyfin::DTO::ValidatePathDto::validateWritable ( ) const

Gets or sets a value indicating whether validate if path is writable.

Member Data Documentation

◆ m_isFile

std::optional<bool> Jellyfin::DTO::ValidatePathDto::m_isFile = std::nullopt
protected

◆ m_path

QString Jellyfin::DTO::ValidatePathDto::m_path
protected

◆ m_validateWritable

bool Jellyfin::DTO::ValidatePathDto::m_validateWritable
protected

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