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

Unified widget for displaying game compatibility and recommendations. More...

#include <recommendations_widget.h>

Inheritance diagram for RecommendationsWidget:
Collaboration diagram for RecommendationsWidget:

Public Member Functions

 RecommendationsWidget (QWidget *parent=nullptr, ThemeManager *themeManager=nullptr)
 ~RecommendationsWidget () override
void applyRequested (const GameSuggestions &suggestions)
 Emitted when user clicks "Apply Recommendations".
void clear ()
 Clear all displayed data.
const GameSuggestions & getCurrentSuggestions () const
 Get the current recommendations (for applying).
bool hasRecommendations () const
 Check if recommendations are available.
void loadingComplete (bool success)
 Emitted when loading completes (async).
void loadRecommendations (int steamAppId, const QString &gameName)
 Load recommendations for a game by Steam App ID.
void setRecommendations (const GameSuggestions &suggestions)
 Set recommendations directly (for when already fetched).

Detailed Description

Unified widget for displaying game compatibility and recommendations.

Combines data from multiple sources:

  • ProtonDB (tier, tweaks, notes)
  • Steam Deck compatibility (Valve verification)
  • Lutris installers
  • Native Linux detection

Displays a confidence score and provides a single "Apply" button.

Definition at line 37 of file recommendations_widget.h.

Constructor & Destructor Documentation

◆ RecommendationsWidget()

RecommendationsWidget::RecommendationsWidget ( QWidget * parent = nullptr,
ThemeManager * themeManager = nullptr )
explicit

Definition at line 23 of file recommendations_widget.cpp.

References ThemeManager::themeChanged().

◆ ~RecommendationsWidget()

RecommendationsWidget::~RecommendationsWidget ( )
override

Definition at line 36 of file recommendations_widget.cpp.

Member Function Documentation

◆ applyRequested()

void RecommendationsWidget::applyRequested ( const GameSuggestions & suggestions)

Emitted when user clicks "Apply Recommendations".

◆ clear()

void RecommendationsWidget::clear ( )

Clear all displayed data.

Definition at line 109 of file recommendations_widget.cpp.

References ThemeColors::inputBackground, and ThemeColors::textMuted.

◆ getCurrentSuggestions()

const GameSuggestions & RecommendationsWidget::getCurrentSuggestions ( ) const
inline

Get the current recommendations (for applying).

Definition at line 55 of file recommendations_widget.h.

◆ hasRecommendations()

bool RecommendationsWidget::hasRecommendations ( ) const
inline

Check if recommendations are available.

Definition at line 61 of file recommendations_widget.h.

◆ loadingComplete()

void RecommendationsWidget::loadingComplete ( bool success)

Emitted when loading completes (async).

Referenced by loadRecommendations().

◆ loadRecommendations()

void RecommendationsWidget::loadRecommendations ( int steamAppId,
const QString & gameName )

◆ setRecommendations()

void RecommendationsWidget::setRecommendations ( const GameSuggestions & suggestions)

Set recommendations directly (for when already fetched).

Definition at line 103 of file recommendations_widget.cpp.

Referenced by loadRecommendations().


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