Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
GameScanner Class Referencefinal

#include <GameScanner.hpp>

Inheritance diagram for GameScanner:

Public Slots

void pause ()
 
void resume ()
 
void abort ()
 
bool isRunning ()
 
bool isPaused ()
 
void emitComplete ()
 

Signals

void scanComplete ()
 
void foundGame (const GameImportData data)
 
void prescanWaiting ()
 Emitted when the prescanner has reached the point of waiting for the other threads to finish their work.
 

Public Member Functions

void start (const std::filesystem::path path, const QString regex, const bool size_folders)
 
 ~GameScanner () override
 

Public Attributes

std::atomic< uint64_t > directories_left { 0 }
 

Private Member Functions

void mainRunner (QPromise< void > &promise, const std::filesystem::path base, const QString regex, const bool size_folder)
 

Private Attributes

QFuture< void > m_runner_future {}
 
QFutureWatcher< void > m_watcher {}
 

Constructor & Destructor Documentation

◆ ~GameScanner()

GameScanner::~GameScanner ( )
override

Member Function Documentation

◆ abort

void GameScanner::abort ( )
slot

◆ emitComplete

void GameScanner::emitComplete ( )
inlineslot

◆ foundGame

void GameScanner::foundGame ( const GameImportData data)
signal

◆ isPaused

bool GameScanner::isPaused ( )
slot

◆ isRunning

bool GameScanner::isRunning ( )
slot

◆ mainRunner()

void GameScanner::mainRunner ( QPromise< void > & promise,
const std::filesystem::path base,
const QString regex,
const bool size_folder )
private

◆ pause

void GameScanner::pause ( )
slot

◆ prescanWaiting

void GameScanner::prescanWaiting ( )
signal

Emitted when the prescanner has reached the point of waiting for the other threads to finish their work.

◆ resume

void GameScanner::resume ( )
slot

◆ scanComplete

void GameScanner::scanComplete ( )
signal

◆ start()

void GameScanner::start ( const std::filesystem::path path,
const QString regex,
const bool size_folders )

Member Data Documentation

◆ directories_left

std::atomic< uint64_t > GameScanner::directories_left { 0 }

◆ m_runner_future

QFuture< void > GameScanner::m_runner_future {}
private

◆ m_watcher

QFutureWatcher< void > GameScanner::m_watcher {}
private

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