ACF $AcfVersion:0$
Public Types | Signals | Public Member Functions | Protected Member Functions | List of all members
iqtgui::CProgressDialog Class Reference

#include <CProgressDialog.h>

Inheritance diagram for iqtgui::CProgressDialog:
ibase::CCumulatedProgressManagerBase ibase::IProgressManager istd::IPolymorphic

Public Types

typedef QProgressDialog BaseClass
 
- Public Types inherited from ibase::CCumulatedProgressManagerBase
enum class  TaskStatus { Created , Running , Finished }
 

Signals

void TaskTextChanged (const QString &text)
 
void ProgressChanged (int progress)
 

Public Member Functions

 CProgressDialog (const QString &title, const QString &defaultText, QWidget *parentWidget=NULL)
 
- Public Member Functions inherited from ibase::CCumulatedProgressManagerBase
 CCumulatedProgressManagerBase (const TaskInfo &defaultTaskInfo={"", ""})
 Create cumulated progress manager.
 
virtual ~CCumulatedProgressManagerBase ()
 
void SetDefaultTaskInfo (const TaskInfo &defaultTaskInfo)
 Set information of the default task.
 
double GetCumulatedProgress () const
 Get final progress beeing result of all task progress.
 
std::vector< TaskProgressInfoGetProcessedTasks (bool preferSorted=false, int maxCount=-1) const
 Get list of current processed tasks.
 
bool IsCancelable () const
 
virtual bool IsCanceled () const
 
void SetCanceled (bool state=true)
 
virtual void ResetProgressManager () override
 Reset progress manager and make it possible to reuse it.
 
std::unique_ptr< IProgressManagerCreateSubtaskManager (const QByteArray &taskId, const QString &taskDescription, double weight=1.0) override
 Create progress manager for the subtask.
 
virtual std::unique_ptr< IProgressLoggerStartProgressLogger (bool isCancelable=false, const QString &description={}) override
 Create progress logger.
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Protected Member Functions

virtual void OnProgressChanged (double cumulatedValue) override
 
virtual void OnTasksChanged () override
 
- Protected Member Functions inherited from ibase::CCumulatedProgressManagerBase
virtual void OpenTask (TaskBase *taskPtr, const TaskInfo &taskInfo, double weight, bool isCancelable)
 
virtual void CloseTask (TaskBase *taskPtr)
 
virtual void ReportTaskProgress (TaskBase *taskPtr, double progress, TaskStatus taskStatus)
 
void TryUpdateCumulatedProgress ()
 

Detailed Description

Definition at line 16 of file CProgressDialog.h.

Member Typedef Documentation

◆ BaseClass

typedef QProgressDialog iqtgui::CProgressDialog::BaseClass

Definition at line 21 of file CProgressDialog.h.

Constructor & Destructor Documentation

◆ CProgressDialog()

iqtgui::CProgressDialog::CProgressDialog ( const QString &  title,
const QString &  defaultText,
QWidget *  parentWidget = NULL 
)

Member Function Documentation

◆ OnProgressChanged()

virtual void iqtgui::CProgressDialog::OnProgressChanged ( double  cumulatedValue)
overrideprotectedvirtual

◆ OnTasksChanged()

virtual void iqtgui::CProgressDialog::OnTasksChanged ( )
overrideprotectedvirtual

◆ ProgressChanged

void iqtgui::CProgressDialog::ProgressChanged ( int  progress)
signal

◆ TaskTextChanged

void iqtgui::CProgressDialog::TaskTextChanged ( const QString &  text)
signal

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