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

Public Member Functions

 Impl ()=default
bool initialize (const std::string &dataDir)
void loadAllProfiles ()
void loadGameProfiles (const std::string &gameId)
void loadGlobalProfiles ()
bool saveGameProfiles (const std::string &gameId)

Public Attributes

std::string dataDir_
std::map< std::string, GamePerformanceData > gameProfiles_
std::vector< PerformanceProfile > globalProfiles_
bool initialized_ = false
OnProfileChanged onProfileChanged_

Detailed Description

Definition at line 268 of file performance_profile_service.cpp.

Constructor & Destructor Documentation

◆ Impl()

PerformanceProfileService::Impl::Impl ( )
default

Member Function Documentation

◆ initialize()

bool PerformanceProfileService::Impl::initialize ( const std::string & dataDir)
inline

◆ loadAllProfiles()

void PerformanceProfileService::Impl::loadAllProfiles ( )
inline

Definition at line 298 of file performance_profile_service.cpp.

References dataDir_, loadGameProfiles(), and Logger::warn().

Referenced by initialize().

◆ loadGameProfiles()

◆ loadGlobalProfiles()

void PerformanceProfileService::Impl::loadGlobalProfiles ( )
inline

◆ saveGameProfiles()

bool PerformanceProfileService::Impl::saveGameProfiles ( const std::string & gameId)
inline

Member Data Documentation

◆ dataDir_

std::string PerformanceProfileService::Impl::dataDir_

◆ gameProfiles_

std::map<std::string, GamePerformanceData> PerformanceProfileService::Impl::gameProfiles_

Definition at line 534 of file performance_profile_service.cpp.

Referenced by loadGameProfiles(), and saveGameProfiles().

◆ globalProfiles_

std::vector<PerformanceProfile> PerformanceProfileService::Impl::globalProfiles_

Definition at line 535 of file performance_profile_service.cpp.

Referenced by loadGlobalProfiles().

◆ initialized_

bool PerformanceProfileService::Impl::initialized_ = false

Definition at line 532 of file performance_profile_service.cpp.

Referenced by initialize().

◆ onProfileChanged_

OnProfileChanged PerformanceProfileService::Impl::onProfileChanged_

Definition at line 536 of file performance_profile_service.cpp.


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