pcsx2/pcsx2-qt/Settings/AchievementSettingsWidget.h

34 lines
813 B
C
Raw Permalink Normal View History

// SPDX-FileCopyrightText: 2002-2024 PCSX2 Dev Team
// SPDX-License-Identifier: GPL-3.0+
#pragma once
#include <QtWidgets/QWidget>
#include "ui_AchievementSettingsWidget.h"
class SettingsWindow;
class AchievementSettingsWidget : public QWidget
{
2023-09-17 10:19:51 +00:00
Q_OBJECT
public:
explicit AchievementSettingsWidget(SettingsWindow* dialog, QWidget* parent);
2023-09-17 10:19:51 +00:00
~AchievementSettingsWidget();
private Q_SLOTS:
2023-09-17 10:19:51 +00:00
void updateEnableState();
void onHardcoreModeStateChanged();
void onAchievementsNotificationDurationSliderChanged();
void onLeaderboardsNotificationDurationSliderChanged();
void onLoginLogoutPressed();
void onViewProfilePressed();
void onAchievementsRefreshed(quint32 id, const QString& game_info_string);
private:
2023-09-17 10:19:51 +00:00
void updateLoginState();
2023-09-17 10:19:51 +00:00
Ui::AchievementSettingsWidget m_ui;
SettingsWindow* m_dialog;
};