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

#include <taskresult.h>

Public Member Functions

 TaskResult (QDateTime startTimeUtc, QDateTime endTimeUtc, TaskCompletionStatus status)
 
 TaskResult (const TaskResult &other)
 
void replaceData (TaskResult &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
QDateTime startTimeUtc () const
 Gets or sets the start time UTC.
 
void setStartTimeUtc (QDateTime newStartTimeUtc)
 Gets or sets the start time UTC.
 
QDateTime endTimeUtc () const
 Gets or sets the end time UTC.
 
void setEndTimeUtc (QDateTime newEndTimeUtc)
 Gets or sets the end time UTC.
 
TaskCompletionStatus status () const
 
void setStatus (TaskCompletionStatus newStatus)
 
QString name () const
 Gets or sets the name.
 
void setName (QString newName)
 Gets or sets the name.
 
bool nameNull () const
 
void setNameNull ()
 
QString key () const
 Gets or sets the key.
 
void setKey (QString newKey)
 Gets or sets the key.
 
bool keyNull () const
 
void setKeyNull ()
 
QString jellyfinId () const
 Gets or sets the id.
 
void setJellyfinId (QString newJellyfinId)
 Gets or sets the id.
 
bool jellyfinIdNull () const
 
void setJellyfinIdNull ()
 
QString errorMessage () const
 Gets or sets the error message.
 
void setErrorMessage (QString newErrorMessage)
 Gets or sets the error message.
 
bool errorMessageNull () const
 
void setErrorMessageNull ()
 
QString longErrorMessage () const
 Gets or sets the long error message.
 
void setLongErrorMessage (QString newLongErrorMessage)
 Gets or sets the long error message.
 
bool longErrorMessageNull () const
 
void setLongErrorMessageNull ()
 

Static Public Member Functions

static TaskResult fromJson (QJsonObject source)
 

Protected Attributes

QDateTime m_startTimeUtc
 
QDateTime m_endTimeUtc
 
TaskCompletionStatus m_status
 
QString m_name
 
QString m_key
 
QString m_jellyfinId
 
QString m_errorMessage
 
QString m_longErrorMessage
 

Constructor & Destructor Documentation

◆ TaskResult() [1/2]

Jellyfin::DTO::TaskResult::TaskResult ( QDateTime startTimeUtc,
QDateTime endTimeUtc,
TaskCompletionStatus status )

◆ TaskResult() [2/2]

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

Member Function Documentation

◆ endTimeUtc()

QDateTime Jellyfin::DTO::TaskResult::endTimeUtc ( ) const

Gets or sets the end time UTC.

◆ errorMessage()

QString Jellyfin::DTO::TaskResult::errorMessage ( ) const

Gets or sets the error message.

◆ errorMessageNull()

bool Jellyfin::DTO::TaskResult::errorMessageNull ( ) const

◆ fromJson()

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

◆ jellyfinId()

QString Jellyfin::DTO::TaskResult::jellyfinId ( ) const

Gets or sets the id.

◆ jellyfinIdNull()

bool Jellyfin::DTO::TaskResult::jellyfinIdNull ( ) const

◆ key()

QString Jellyfin::DTO::TaskResult::key ( ) const

Gets or sets the key.

◆ keyNull()

bool Jellyfin::DTO::TaskResult::keyNull ( ) const

◆ longErrorMessage()

QString Jellyfin::DTO::TaskResult::longErrorMessage ( ) const

Gets or sets the long error message.

◆ longErrorMessageNull()

bool Jellyfin::DTO::TaskResult::longErrorMessageNull ( ) const

◆ name()

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

Gets or sets the name.

◆ nameNull()

bool Jellyfin::DTO::TaskResult::nameNull ( ) const

◆ replaceData()

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

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

◆ setEndTimeUtc()

void Jellyfin::DTO::TaskResult::setEndTimeUtc ( QDateTime newEndTimeUtc)

Gets or sets the end time UTC.

◆ setErrorMessage()

void Jellyfin::DTO::TaskResult::setErrorMessage ( QString newErrorMessage)

Gets or sets the error message.

◆ setErrorMessageNull()

void Jellyfin::DTO::TaskResult::setErrorMessageNull ( )

◆ setFromJson()

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

◆ setJellyfinId()

void Jellyfin::DTO::TaskResult::setJellyfinId ( QString newJellyfinId)

Gets or sets the id.

◆ setJellyfinIdNull()

void Jellyfin::DTO::TaskResult::setJellyfinIdNull ( )

◆ setKey()

void Jellyfin::DTO::TaskResult::setKey ( QString newKey)

Gets or sets the key.

◆ setKeyNull()

void Jellyfin::DTO::TaskResult::setKeyNull ( )

◆ setLongErrorMessage()

void Jellyfin::DTO::TaskResult::setLongErrorMessage ( QString newLongErrorMessage)

Gets or sets the long error message.

◆ setLongErrorMessageNull()

void Jellyfin::DTO::TaskResult::setLongErrorMessageNull ( )

◆ setName()

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

Gets or sets the name.

◆ setNameNull()

void Jellyfin::DTO::TaskResult::setNameNull ( )

◆ setStartTimeUtc()

void Jellyfin::DTO::TaskResult::setStartTimeUtc ( QDateTime newStartTimeUtc)

Gets or sets the start time UTC.

◆ setStatus()

void Jellyfin::DTO::TaskResult::setStatus ( TaskCompletionStatus newStatus)

◆ startTimeUtc()

QDateTime Jellyfin::DTO::TaskResult::startTimeUtc ( ) const

Gets or sets the start time UTC.

◆ status()

TaskCompletionStatus Jellyfin::DTO::TaskResult::status ( ) const

◆ toJson()

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

Member Data Documentation

◆ m_endTimeUtc

QDateTime Jellyfin::DTO::TaskResult::m_endTimeUtc
protected

◆ m_errorMessage

QString Jellyfin::DTO::TaskResult::m_errorMessage
protected

◆ m_jellyfinId

QString Jellyfin::DTO::TaskResult::m_jellyfinId
protected

◆ m_key

QString Jellyfin::DTO::TaskResult::m_key
protected

◆ m_longErrorMessage

QString Jellyfin::DTO::TaskResult::m_longErrorMessage
protected

◆ m_name

QString Jellyfin::DTO::TaskResult::m_name
protected

◆ m_startTimeUtc

QDateTime Jellyfin::DTO::TaskResult::m_startTimeUtc
protected

◆ m_status

TaskCompletionStatus Jellyfin::DTO::TaskResult::m_status
protected

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