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

#include <taskinfo.h>

Public Member Functions

 TaskInfo (TaskState state, QSharedPointer< TaskResult > lastExecutionResult, bool isHidden)
 
 TaskInfo (const TaskInfo &other)
 
void replaceData (TaskInfo &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
QString name () const
 Gets or sets the name.
 
void setName (QString newName)
 Gets or sets the name.
 
bool nameNull () const
 
void setNameNull ()
 
TaskState state () const
 
void setState (TaskState newState)
 
std::optional< double > currentProgressPercentage () const
 Gets or sets the progress.
 
void setCurrentProgressPercentage (std::optional< double > newCurrentProgressPercentage)
 Gets or sets the progress.
 
bool currentProgressPercentageNull () const
 
void setCurrentProgressPercentageNull ()
 
QString jellyfinId () const
 Gets or sets the id.
 
void setJellyfinId (QString newJellyfinId)
 Gets or sets the id.
 
bool jellyfinIdNull () const
 
void setJellyfinIdNull ()
 
QSharedPointer< TaskResultlastExecutionResult () const
 
void setLastExecutionResult (QSharedPointer< TaskResult > newLastExecutionResult)
 
QList< TaskTriggerInfotriggers () const
 Gets or sets the triggers.
 
void setTriggers (QList< TaskTriggerInfo > newTriggers)
 Gets or sets the triggers.
 
bool triggersNull () const
 
void setTriggersNull ()
 
QString description () const
 Gets or sets the description.
 
void setDescription (QString newDescription)
 Gets or sets the description.
 
bool descriptionNull () const
 
void setDescriptionNull ()
 
QString category () const
 Gets or sets the category.
 
void setCategory (QString newCategory)
 Gets or sets the category.
 
bool categoryNull () const
 
void setCategoryNull ()
 
bool isHidden () const
 Gets or sets a value indicating whether this instance is hidden.
 
void setIsHidden (bool newIsHidden)
 Gets or sets a value indicating whether this instance is hidden.
 
QString key () const
 Gets or sets the key.
 
void setKey (QString newKey)
 Gets or sets the key.
 
bool keyNull () const
 
void setKeyNull ()
 

Static Public Member Functions

static TaskInfo fromJson (QJsonObject source)
 

Protected Attributes

QString m_name
 
TaskState m_state
 
std::optional< double > m_currentProgressPercentage = std::nullopt
 
QString m_jellyfinId
 
QSharedPointer< TaskResultm_lastExecutionResult = QSharedPointer<TaskResult>()
 
QList< TaskTriggerInfom_triggers
 
QString m_description
 
QString m_category
 
bool m_isHidden
 
QString m_key
 

Constructor & Destructor Documentation

◆ TaskInfo() [1/2]

Jellyfin::DTO::TaskInfo::TaskInfo ( TaskState state,
QSharedPointer< TaskResult > lastExecutionResult,
bool isHidden )

◆ TaskInfo() [2/2]

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

Member Function Documentation

◆ category()

QString Jellyfin::DTO::TaskInfo::category ( ) const

Gets or sets the category.

◆ categoryNull()

bool Jellyfin::DTO::TaskInfo::categoryNull ( ) const

◆ currentProgressPercentage()

std::optional< double > Jellyfin::DTO::TaskInfo::currentProgressPercentage ( ) const

Gets or sets the progress.

◆ currentProgressPercentageNull()

bool Jellyfin::DTO::TaskInfo::currentProgressPercentageNull ( ) const

◆ description()

QString Jellyfin::DTO::TaskInfo::description ( ) const

Gets or sets the description.

◆ descriptionNull()

bool Jellyfin::DTO::TaskInfo::descriptionNull ( ) const

◆ fromJson()

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

◆ isHidden()

bool Jellyfin::DTO::TaskInfo::isHidden ( ) const

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

◆ jellyfinId()

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

Gets or sets the id.

◆ jellyfinIdNull()

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

◆ key()

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

Gets or sets the key.

◆ keyNull()

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

◆ lastExecutionResult()

QSharedPointer< TaskResult > Jellyfin::DTO::TaskInfo::lastExecutionResult ( ) const

◆ name()

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

Gets or sets the name.

◆ nameNull()

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

◆ replaceData()

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

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

◆ setCategory()

void Jellyfin::DTO::TaskInfo::setCategory ( QString newCategory)

Gets or sets the category.

◆ setCategoryNull()

void Jellyfin::DTO::TaskInfo::setCategoryNull ( )

◆ setCurrentProgressPercentage()

void Jellyfin::DTO::TaskInfo::setCurrentProgressPercentage ( std::optional< double > newCurrentProgressPercentage)

Gets or sets the progress.

◆ setCurrentProgressPercentageNull()

void Jellyfin::DTO::TaskInfo::setCurrentProgressPercentageNull ( )

◆ setDescription()

void Jellyfin::DTO::TaskInfo::setDescription ( QString newDescription)

Gets or sets the description.

◆ setDescriptionNull()

void Jellyfin::DTO::TaskInfo::setDescriptionNull ( )

◆ setFromJson()

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

◆ setIsHidden()

void Jellyfin::DTO::TaskInfo::setIsHidden ( bool newIsHidden)

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

◆ setJellyfinId()

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

Gets or sets the id.

◆ setJellyfinIdNull()

void Jellyfin::DTO::TaskInfo::setJellyfinIdNull ( )

◆ setKey()

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

Gets or sets the key.

◆ setKeyNull()

void Jellyfin::DTO::TaskInfo::setKeyNull ( )

◆ setLastExecutionResult()

void Jellyfin::DTO::TaskInfo::setLastExecutionResult ( QSharedPointer< TaskResult > newLastExecutionResult)

◆ setName()

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

Gets or sets the name.

◆ setNameNull()

void Jellyfin::DTO::TaskInfo::setNameNull ( )

◆ setState()

void Jellyfin::DTO::TaskInfo::setState ( TaskState newState)

◆ setTriggers()

void Jellyfin::DTO::TaskInfo::setTriggers ( QList< TaskTriggerInfo > newTriggers)

Gets or sets the triggers.

◆ setTriggersNull()

void Jellyfin::DTO::TaskInfo::setTriggersNull ( )

◆ state()

TaskState Jellyfin::DTO::TaskInfo::state ( ) const

◆ toJson()

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

◆ triggers()

QList< TaskTriggerInfo > Jellyfin::DTO::TaskInfo::triggers ( ) const

Gets or sets the triggers.

◆ triggersNull()

bool Jellyfin::DTO::TaskInfo::triggersNull ( ) const

Member Data Documentation

◆ m_category

QString Jellyfin::DTO::TaskInfo::m_category
protected

◆ m_currentProgressPercentage

std::optional<double> Jellyfin::DTO::TaskInfo::m_currentProgressPercentage = std::nullopt
protected

◆ m_description

QString Jellyfin::DTO::TaskInfo::m_description
protected

◆ m_isHidden

bool Jellyfin::DTO::TaskInfo::m_isHidden
protected

◆ m_jellyfinId

QString Jellyfin::DTO::TaskInfo::m_jellyfinId
protected

◆ m_key

QString Jellyfin::DTO::TaskInfo::m_key
protected

◆ m_lastExecutionResult

QSharedPointer<TaskResult> Jellyfin::DTO::TaskInfo::m_lastExecutionResult = QSharedPointer<TaskResult>()
protected

◆ m_name

QString Jellyfin::DTO::TaskInfo::m_name
protected

◆ m_state

TaskState Jellyfin::DTO::TaskInfo::m_state
protected

◆ m_triggers

QList<TaskTriggerInfo> Jellyfin::DTO::TaskInfo::m_triggers
protected

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