LeechCraft 0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::ProgressManager Class Reference

#include "progressmanager.h"

Inheritance diagram for LC::Util::ProgressManager:
Collaboration diagram for LC::Util::ProgressManager:

Classes

struct  Initializers

Public Member Functions

 ProgressManager (QObject *parent=nullptr)
void SetGlobalData (const QVariant &data, int role)
QAbstractItemModel & GetModel ()
IJobHolderRepresentationHandler_ptr CreateDefaultHandler ()
std::unique_ptr< ProgressModelRowAddRow (RowInfo)
std::unique_ptr< ProgressModelRowAddRow (RowInfo, Initializers)
QVariant GetCustomData (const QModelIndex &) const

Static Public Attributes

static constexpr auto CustomDataRole = MaxValue<JobHolderProcessRole> + 1
static constexpr auto MaxRole = CustomDataRole

Friends

class ProgressModelRow

Detailed Description

Definition at line 40 of file progressmanager.h.

Constructor & Destructor Documentation

◆ ProgressManager()

LC::Util::ProgressManager::ProgressManager ( QObject * parent = nullptr)
explicit

Definition at line 75 of file progressmanager.cpp.

Member Function Documentation

◆ AddRow() [1/2]

std::unique_ptr< ProgressModelRow > LC::Util::ProgressManager::AddRow ( RowInfo info)
nodiscard

Definition at line 110 of file progressmanager.cpp.

References AddRow().

Referenced by AddRow().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddRow() [2/2]

◆ CreateDefaultHandler()

IJobHolderRepresentationHandler_ptr LC::Util::ProgressManager::CreateDefaultHandler ( )

Definition at line 90 of file progressmanager.cpp.

◆ GetCustomData()

QVariant LC::Util::ProgressManager::GetCustomData ( const QModelIndex & index) const

Definition at line 132 of file progressmanager.cpp.

◆ GetModel()

QAbstractItemModel & LC::Util::ProgressManager::GetModel ( )

Definition at line 85 of file progressmanager.cpp.

◆ SetGlobalData()

void LC::Util::ProgressManager::SetGlobalData ( const QVariant & data,
int role )

Definition at line 80 of file progressmanager.cpp.

◆ ProgressModelRow

friend class ProgressModelRow
friend

Definition at line 42 of file progressmanager.h.

References ProgressModelRow.

Referenced by ProgressModelRow.

Member Data Documentation

◆ CustomDataRole

auto LC::Util::ProgressManager::CustomDataRole = MaxValue<JobHolderProcessRole> + 1
staticconstexpr

Definition at line 44 of file progressmanager.h.

◆ MaxRole

auto LC::Util::ProgressManager::MaxRole = CustomDataRole
staticconstexpr

Definition at line 46 of file progressmanager.h.


The documentation for this class was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.18450.gabe19ee3b0-build/leechcraft-0.6.70-18450-gabe19ee3b0/src/util/xpc/progressmanager.h
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.18450.gabe19ee3b0-build/leechcraft-0.6.70-18450-gabe19ee3b0/src/util/xpc/progressmanager.cpp