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

Unified structure for all importable games. More...

#include <gameimportdialog.h>

Public Types

enum class  SourceType {
  Steam , Lutris , Bottles , HeroicEpic ,
  HeroicGOG , Legendary , Native , WinePrefix
}

Public Member Functions

QString getUniqueId () const
Game toGame () const

Public Attributes

bool alreadyImported = false
QString existingGameId
bool isInstalled = true
QString name
QString path
QString runner
std::shared_ptr< ScannedGame > scannedGame
uint64_t sizeBytes = 0
QString sourceIcon
QString sourceName
SourceType sourceType
std::shared_ptr< SteamGame > steamGame

Detailed Description

Unified structure for all importable games.

Wraps either a SteamGame or ScannedGame with common interface

Definition at line 79 of file gameimportdialog.h.

Member Enumeration Documentation

◆ SourceType

enum class ImportableGame::SourceType
strong
Enumerator
Steam 
Lutris 
Bottles 
HeroicEpic 
HeroicGOG 
Legendary 
Native 
WinePrefix 

Definition at line 81 of file gameimportdialog.h.

Member Function Documentation

◆ getUniqueId()

QString ImportableGame::getUniqueId ( ) const

Definition at line 98 of file gameimportdialog.cpp.

References scannedGame, and steamGame.

◆ toGame()

Game ImportableGame::toGame ( ) const

Definition at line 85 of file gameimportdialog.cpp.

References Game, scannedGame, and steamGame.

Member Data Documentation

◆ alreadyImported

bool ImportableGame::alreadyImported = false

Definition at line 101 of file gameimportdialog.h.

◆ existingGameId

QString ImportableGame::existingGameId

Definition at line 102 of file gameimportdialog.h.

◆ isInstalled

bool ImportableGame::isInstalled = true

Definition at line 100 of file gameimportdialog.h.

◆ name

QString ImportableGame::name

Definition at line 93 of file gameimportdialog.h.

◆ path

QString ImportableGame::path

Definition at line 98 of file gameimportdialog.h.

◆ runner

QString ImportableGame::runner

Definition at line 97 of file gameimportdialog.h.

◆ scannedGame

std::shared_ptr<ScannedGame> ImportableGame::scannedGame

Definition at line 106 of file gameimportdialog.h.

Referenced by getUniqueId(), and toGame().

◆ sizeBytes

uint64_t ImportableGame::sizeBytes = 0

Definition at line 99 of file gameimportdialog.h.

◆ sourceIcon

QString ImportableGame::sourceIcon

Definition at line 96 of file gameimportdialog.h.

◆ sourceName

QString ImportableGame::sourceName

Definition at line 95 of file gameimportdialog.h.

◆ sourceType

SourceType ImportableGame::sourceType

Definition at line 94 of file gameimportdialog.h.

◆ steamGame

std::shared_ptr<SteamGame> ImportableGame::steamGame

Definition at line 105 of file gameimportdialog.h.

Referenced by getUniqueId(), and toGame().


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