Duckstation/src/duckstation-qt/achievementsettingswidget.h

34 lines
869 B
C
Raw Normal View History

// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
2021-02-26 14:44:53 +00:00
#pragma once
#include <QtWidgets/QWidget>
#include "ui_achievementsettingswidget.h"
class SettingsDialog;
class AchievementSettingsWidget : public QWidget
{
Q_OBJECT
public:
explicit AchievementSettingsWidget(SettingsDialog* dialog, QWidget* parent);
2021-02-26 14:44:53 +00:00
~AchievementSettingsWidget();
private Q_SLOTS:
void updateEnableState();
2023-09-07 10:13:48 +00:00
void onHardcoreModeStateChanged();
void onAchievementsNotificationDurationSliderChanged();
void onLeaderboardsNotificationDurationSliderChanged();
2021-02-26 14:44:53 +00:00
void onLoginLogoutPressed();
void onViewProfilePressed();
2023-09-07 10:13:48 +00:00
void onAchievementsRefreshed(quint32 id, const QString& game_info_string);
2021-02-26 14:44:53 +00:00
private:
2021-03-03 09:14:01 +00:00
void updateLoginState();
2021-02-26 14:44:53 +00:00
Ui::AchievementSettingsWidget m_ui;
SettingsDialog* m_dialog;
2021-02-26 14:44:53 +00:00
};