game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
GameImportWorker Class Reference

Background worker for scanning all sources. More...

#include <gameimportdialog.h>

Inheritance diagram for GameImportWorker:
Collaboration diagram for GameImportWorker:

Public Member Functions

 GameImportWorker (QObject *parent=nullptr)
void cancel ()
void doScan ()
void progressUpdate (const QString &source, const QString &operation, int percent)
void scanComplete (const std::vector< ImportableGame > &games)
void scanError (const QString &error)
void setSourceConfig (const ImportSourceConfig &config)
void sourceComplete (const QString &source, int gamesFound)

Detailed Description

Background worker for scanning all sources.

Definition at line 122 of file gameimportdialog.h.

Constructor & Destructor Documentation

◆ GameImportWorker()

GameImportWorker::GameImportWorker ( QObject * parent = nullptr)
explicit

Definition at line 116 of file gameimportdialog.cpp.

Member Function Documentation

◆ cancel()

void GameImportWorker::cancel ( )

Definition at line 226 of file gameimportdialog.cpp.

◆ doScan()

void GameImportWorker::doScan ( )

Definition at line 123 of file gameimportdialog.cpp.

References progressUpdate(), scanComplete(), and sourceComplete().

◆ progressUpdate()

void GameImportWorker::progressUpdate ( const QString & source,
const QString & operation,
int percent )

Referenced by doScan().

◆ scanComplete()

void GameImportWorker::scanComplete ( const std::vector< ImportableGame > & games)

Referenced by doScan().

◆ scanError()

void GameImportWorker::scanError ( const QString & error)

◆ setSourceConfig()

void GameImportWorker::setSourceConfig ( const ImportSourceConfig & config)

Definition at line 118 of file gameimportdialog.cpp.

◆ sourceComplete()

void GameImportWorker::sourceComplete ( const QString & source,
int gamesFound )

Referenced by doScan().


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