FOSSredder 0.5.0
Loading...
Searching...
No Matches
ui::importing::ImportWorkflowState Class Reference

Public Member Functions

 ImportWorkflowState ()=default
bool isRunning () const noexcept
bool isPaused () const noexcept
double progress () const noexcept
const QString & phase () const noexcept
const QString & error () const noexcept
const QString & selectedFile () const noexcept
const QStringList & queuedFiles () const noexcept
bool hasDraft () const noexcept
core::ports::importing::draft::StatementDraft * draft () noexcept
const core::ports::importing::draft::StatementDraft * draft () const noexcept
const core::ports::workspace::WorkspaceSnapshot & catalogSnapshot () const noexcept
int currentTransactionIndex () const noexcept
void setCurrentTransactionIndex (int index)
int artifactCount () const noexcept
bool cancelRequested () const noexcept
bool setSelectedFile (const QString &path)
bool addFiles (const QStringList &paths)
bool resetStatus ()
bool clearDraft ()
QString currentImportFile () const
QString takeSelectedFileForStart ()
bool takeNextQueuedFile (QString &nextFile)
void beginImport (const QString &path)
void rejectStart (const QString &errorMessage)
void beginCancel (bool clearQueue)
bool setPaused (bool paused)
void recordCanceled ()
void recordFailed (const QString &errorMessage)
void recordFinished ()
bool populateDraft (const core::ports::importing::draft::StatementDraft &draft, const core::ports::workspace::WorkspaceSnapshot &state, const std::map< std::string, std::vector< uint8_t > > &artifacts, int currentTransactionIndex)
bool restoreDraft (const core::ports::importing::draft::StatementDraft &draft, const core::ports::workspace::WorkspaceSnapshot &state, const QString &draftId, int currentTransactionIndex)
void updateProgress (double progress, const QString &phase)

Detailed Description

Definition at line 29 of file ImportWorkflow.cpp.

Constructor & Destructor Documentation

◆ ImportWorkflowState()

ui::importing::ImportWorkflowState::ImportWorkflowState ( )
default

Member Function Documentation

◆ addFiles()

bool ui::importing::ImportWorkflowState::addFiles ( const QStringList & paths)

Definition at line 141 of file ImportWorkflow.cpp.

Here is the call graph for this function:

◆ artifactCount()

int ui::importing::ImportWorkflowState::artifactCount ( ) const
inlinenoexcept

Definition at line 71 of file ImportWorkflow.cpp.

◆ beginCancel()

void ui::importing::ImportWorkflowState::beginCancel ( bool clearQueue)

Definition at line 274 of file ImportWorkflow.cpp.

Here is the call graph for this function:

◆ beginImport()

void ui::importing::ImportWorkflowState::beginImport ( const QString & path)

Definition at line 253 of file ImportWorkflow.cpp.

Here is the call graph for this function:

◆ cancelRequested()

bool ui::importing::ImportWorkflowState::cancelRequested ( ) const
inlinenoexcept

Definition at line 74 of file ImportWorkflow.cpp.

◆ catalogSnapshot()

const core::ports::workspace::WorkspaceSnapshot & ui::importing::ImportWorkflowState::catalogSnapshot ( ) const
inlinenoexcept

Definition at line 64 of file ImportWorkflow.cpp.

◆ clearDraft()

bool ui::importing::ImportWorkflowState::clearDraft ( )

Definition at line 192 of file ImportWorkflow.cpp.

◆ currentImportFile()

QString ui::importing::ImportWorkflowState::currentImportFile ( ) const

Definition at line 221 of file ImportWorkflow.cpp.

◆ currentTransactionIndex()

int ui::importing::ImportWorkflowState::currentTransactionIndex ( ) const
inlinenoexcept

Definition at line 67 of file ImportWorkflow.cpp.

Here is the caller graph for this function:

◆ draft() [1/2]

const core::ports::importing::draft::StatementDraft * ui::importing::ImportWorkflowState::draft ( ) const
inlinenoexcept

Definition at line 60 of file ImportWorkflow.cpp.

◆ draft() [2/2]

core::ports::importing::draft::StatementDraft * ui::importing::ImportWorkflowState::draft ( )
inlinenoexcept

Definition at line 57 of file ImportWorkflow.cpp.

Here is the caller graph for this function:

◆ error()

const QString & ui::importing::ImportWorkflowState::error ( ) const
inlinenoexcept

Definition at line 45 of file ImportWorkflow.cpp.

◆ hasDraft()

bool ui::importing::ImportWorkflowState::hasDraft ( ) const
inlinenoexcept

Definition at line 54 of file ImportWorkflow.cpp.

◆ isPaused()

bool ui::importing::ImportWorkflowState::isPaused ( ) const
inlinenoexcept

Definition at line 36 of file ImportWorkflow.cpp.

◆ isRunning()

bool ui::importing::ImportWorkflowState::isRunning ( ) const
inlinenoexcept

Definition at line 33 of file ImportWorkflow.cpp.

◆ phase()

const QString & ui::importing::ImportWorkflowState::phase ( ) const
inlinenoexcept

Definition at line 42 of file ImportWorkflow.cpp.

Here is the caller graph for this function:

◆ populateDraft()

bool ui::importing::ImportWorkflowState::populateDraft ( const core::ports::importing::draft::StatementDraft & draft,
const core::ports::workspace::WorkspaceSnapshot & state,
const std::map< std::string, std::vector< uint8_t > > & artifacts,
int currentTransactionIndex )

Definition at line 321 of file ImportWorkflow.cpp.

Here is the call graph for this function:

◆ progress()

double ui::importing::ImportWorkflowState::progress ( ) const
inlinenoexcept

Definition at line 39 of file ImportWorkflow.cpp.

Here is the caller graph for this function:

◆ queuedFiles()

const QStringList & ui::importing::ImportWorkflowState::queuedFiles ( ) const
inlinenoexcept

Definition at line 51 of file ImportWorkflow.cpp.

◆ recordCanceled()

void ui::importing::ImportWorkflowState::recordCanceled ( )

Definition at line 300 of file ImportWorkflow.cpp.

Here is the call graph for this function:

◆ recordFailed()

void ui::importing::ImportWorkflowState::recordFailed ( const QString & errorMessage)

Definition at line 312 of file ImportWorkflow.cpp.

Here is the call graph for this function:

◆ recordFinished()

void ui::importing::ImportWorkflowState::recordFinished ( )

Definition at line 212 of file ImportWorkflow.cpp.

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

◆ rejectStart()

void ui::importing::ImportWorkflowState::rejectStart ( const QString & errorMessage)

Definition at line 265 of file ImportWorkflow.cpp.

◆ resetStatus()

bool ui::importing::ImportWorkflowState::resetStatus ( )

Definition at line 174 of file ImportWorkflow.cpp.

◆ restoreDraft()

bool ui::importing::ImportWorkflowState::restoreDraft ( const core::ports::importing::draft::StatementDraft & draft,
const core::ports::workspace::WorkspaceSnapshot & state,
const QString & draftId,
int currentTransactionIndex )

Definition at line 341 of file ImportWorkflow.cpp.

Here is the call graph for this function:

◆ selectedFile()

const QString & ui::importing::ImportWorkflowState::selectedFile ( ) const
inlinenoexcept

Definition at line 48 of file ImportWorkflow.cpp.

◆ setCurrentTransactionIndex()

void ui::importing::ImportWorkflowState::setCurrentTransactionIndex ( int index)

Definition at line 203 of file ImportWorkflow.cpp.

Here is the caller graph for this function:

◆ setPaused()

bool ui::importing::ImportWorkflowState::setPaused ( bool paused)

Definition at line 287 of file ImportWorkflow.cpp.

Here is the call graph for this function:

◆ setSelectedFile()

bool ui::importing::ImportWorkflowState::setSelectedFile ( const QString & path)

Definition at line 133 of file ImportWorkflow.cpp.

Here is the caller graph for this function:

◆ takeNextQueuedFile()

bool ui::importing::ImportWorkflowState::takeNextQueuedFile ( QString & nextFile)

Definition at line 234 of file ImportWorkflow.cpp.

◆ takeSelectedFileForStart()

QString ui::importing::ImportWorkflowState::takeSelectedFileForStart ( )

Definition at line 225 of file ImportWorkflow.cpp.

◆ updateProgress()

void ui::importing::ImportWorkflowState::updateProgress ( double progress,
const QString & phase )

Definition at line 360 of file ImportWorkflow.cpp.

Here is the call graph for this function:

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