Duckstation/src/duckstation-qt/achievementsettingswidget.h

32 lines
796 B
C
Raw Normal View History

2021-02-26 14:44:53 +00:00
#pragma once
#include <QtWidgets/QWidget>
#include "ui_achievementsettingswidget.h"
class QtHostInterface;
class SettingsDialog;
class AchievementSettingsWidget : public QWidget
{
Q_OBJECT
public:
explicit AchievementSettingsWidget(QtHostInterface* host_interface, QWidget* parent, SettingsDialog* dialog);
~AchievementSettingsWidget();
private Q_SLOTS:
2021-03-03 09:14:01 +00:00
void onEnableToggled(bool checked);
void onChallengeModeToggled(bool checked);
2021-02-26 14:44:53 +00:00
void onLoginLogoutPressed();
void onViewProfilePressed();
void onAchievementsLoaded(quint32 id, const QString& game_info_string, quint32 total, quint32 points);
private:
2021-03-03 09:14:01 +00:00
bool confirmChallengeModeEnable();
void updateEnableState();
void updateLoginState();
2021-02-26 14:44:53 +00:00
Ui::AchievementSettingsWidget m_ui;
QtHostInterface* m_host_interface;
};