Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
stenzek
GitHub Repository: stenzek/duckstation
Path: blob/master/src/duckstation-qt/achievementsettingswidget.h
4246 views
1
// SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <[email protected]>
2
// SPDX-License-Identifier: CC-BY-NC-ND-4.0
3
4
#pragma once
5
#include <QtWidgets/QWidget>
6
#include "ui_achievementsettingswidget.h"
7
8
class SettingsWindow;
9
10
class AchievementSettingsWidget : public QWidget
11
{
12
Q_OBJECT
13
14
public:
15
explicit AchievementSettingsWidget(SettingsWindow* dialog, QWidget* parent);
16
~AchievementSettingsWidget();
17
18
private Q_SLOTS:
19
void updateEnableState();
20
void onHardcoreModeStateChanged();
21
void onAchievementsNotificationDurationSliderChanged();
22
void onLeaderboardsNotificationDurationSliderChanged();
23
void onLoginLogoutPressed();
24
void onViewProfilePressed();
25
void onAchievementsRefreshed(quint32 id, const QString& game_info_string);
26
27
private:
28
void updateLoginState();
29
30
Ui::AchievementSettingsWidget m_ui;
31
32
SettingsWindow* m_dialog;
33
};
34
35