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

#include <library_export_dialog.h>

Inheritance diagram for LibraryExportWorker:
Collaboration diagram for LibraryExportWorker:

Public Types

enum class  Operation {
  ExportJson , ExportCsv , ImportJson , BackupDatabase ,
  RestoreDatabase
}

Public Member Functions

 LibraryExportWorker (QObject *parent=nullptr)
void cancel ()
void doWork ()
void error (const QString &message)
void finished (bool success, const QString &message)
void progress (int current, int total, const QString &status)
void setController (core::GameLibraryController *controller)
void setFilePath (const QString &path)
void setOperation (Operation op)
void setOverwriteExisting (bool overwrite)
void setSelectedGames (const std::vector< std::string > &gameIds)

Detailed Description

Definition at line 41 of file library_export_dialog.h.

Member Enumeration Documentation

◆ Operation

enum class LibraryExportWorker::Operation
strong
Enumerator
ExportJson 
ExportCsv 
ImportJson 
BackupDatabase 
RestoreDatabase 

Definition at line 46 of file library_export_dialog.h.

Constructor & Destructor Documentation

◆ LibraryExportWorker()

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

Definition at line 35 of file library_export_dialog.cpp.

Member Function Documentation

◆ cancel()

void LibraryExportWorker::cancel ( )

Definition at line 62 of file library_export_dialog.cpp.

◆ doWork()

void LibraryExportWorker::doWork ( )

◆ error()

void LibraryExportWorker::error ( const QString & message)

References ExportJson.

◆ finished()

void LibraryExportWorker::finished ( bool success,
const QString & message )

◆ progress()

void LibraryExportWorker::progress ( int current,
int total,
const QString & status )

◆ setController()

void LibraryExportWorker::setController ( core::GameLibraryController * controller)

Definition at line 47 of file library_export_dialog.cpp.

◆ setFilePath()

void LibraryExportWorker::setFilePath ( const QString & path)

Definition at line 42 of file library_export_dialog.cpp.

◆ setOperation()

void LibraryExportWorker::setOperation ( Operation op)

Definition at line 37 of file library_export_dialog.cpp.

◆ setOverwriteExisting()

void LibraryExportWorker::setOverwriteExisting ( bool overwrite)

Definition at line 57 of file library_export_dialog.cpp.

◆ setSelectedGames()

void LibraryExportWorker::setSelectedGames ( const std::vector< std::string > & gameIds)

Definition at line 52 of file library_export_dialog.cpp.


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