Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
stenzek
GitHub Repository: stenzek/duckstation
Path: blob/master/src/duckstation-qt/achievementsettingswidget.h
4802 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
6
#include "ui_achievementsettingswidget.h"
7
8
#include <QtWidgets/QWidget>
9
10
class SettingsWindow;
11
12
class AchievementSettingsWidget : public QWidget
13
{
14
Q_OBJECT
15
16
public:
17
explicit AchievementSettingsWidget(SettingsWindow* dialog, QWidget* parent);
18
~AchievementSettingsWidget();
19
20
private:
21
void updateLoginState();
22
23
void updateEnableState();
24
void onHardcoreModeStateChanged();
25
void onAchievementsNotificationDurationSliderChanged();
26
void onLeaderboardsNotificationDurationSliderChanged();
27
void onLoginLogoutPressed();
28
void onLoginCompleted();
29
void onViewProfilePressed();
30
void onAchievementsRefreshed(quint32 id, const QString& game_info_string);
31
32
Ui::AchievementSettingsWidget m_ui;
33
34
SettingsWindow* m_dialog;
35
};
36
37