Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
PersonalSettings Class Reference

#include <personal_settings.h>

Inheritance diagram for PersonalSettings:
[legend]
Collaboration diagram for PersonalSettings:
[legend]

Public Types

enum class  CrashReportingMode { Ask = 0 , AlwaysSend = 1 , NeverSend = 2 }

Signals

void langChanged ()
void crashReportingModeChanged (CrashReportingMode mode)

Public Member Functions

QString getLang () const override
bool getShowTipsOnStartup () const override
QList< int > getSeenTips () const override
void setLang (const QString &_lang)
void setShowTipsOnStartup (bool _showTipsOnStartup)
void setSeenTips (const QList< int > &_seenTips)
CrashReportingMode getCrashReportingMode () const
void setCrashReportingMode (CrashReportingMode _crashReportingMode)
 PersonalSettings (const QString &settingPath, QObject *parent=nullptr)
Public Member Functions inherited from SettingsManager
 SettingsManager (const QString &settingPath, const QString &defaultGroup=QString(), const QString &defaultSubGroup=QString(), QObject *parent=nullptr)
QVariant getValue (const QString &name) const
QVariant getValue (const QString &name, const QString &group, const QString &subGroup=QString()) const
QVariant getValue (const QString &name, const QString &group, const QString &subGroup, const QVariant &defaultValue) const
void batchWrite (std::function< void(QSettings &)> batchWriteFunction)
void sync ()
Public Member Functions inherited from IPersonalSettingsProvider
virtual ~IPersonalSettingsProvider ()=default

Private Member Functions

 PersonalSettings (const PersonalSettings &)

Friends

class SettingsCache

Additional Inherited Members

Protected Member Functions inherited from SettingsManager
QSettings getSettings () const
void setValue (const QVariant &value, const QString &name)
void setValue (const QVariant &value, const QString &name, const QString &group, const QString &subGroup=QString())
void deleteValue (const QString &name)
void deleteValue (const QString &name, const QString &group, const QString &subGroup=QString())
Protected Attributes inherited from SettingsManager
QString settingPath
QString defaultGroup
QString defaultSubGroup

Member Enumeration Documentation

◆ CrashReportingMode

Enumerator
Ask 

Show the crash-report dialog after an unclean exit.

AlwaysSend 

Upload crash reports without asking.

NeverSend 

Never upload; stay silent.

Constructor & Destructor Documentation

◆ PersonalSettings() [1/2]

PersonalSettings::PersonalSettings ( const QString & settingPath,
QObject * parent = nullptr )
explicit
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PersonalSettings() [2/2]

PersonalSettings::PersonalSettings ( const PersonalSettings & )
private
Here is the call graph for this function:

Member Function Documentation

◆ crashReportingModeChanged

void PersonalSettings::crashReportingModeChanged ( CrashReportingMode mode)
signal
Here is the caller graph for this function:

◆ getCrashReportingMode()

PersonalSettings::CrashReportingMode PersonalSettings::getCrashReportingMode ( ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLang()

QString PersonalSettings::getLang ( ) const
nodiscardoverridevirtual

Implements IPersonalSettingsProvider.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSeenTips()

QList< int > PersonalSettings::getSeenTips ( ) const
nodiscardoverridevirtual

Implements IPersonalSettingsProvider.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getShowTipsOnStartup()

bool PersonalSettings::getShowTipsOnStartup ( ) const
nodiscardoverridevirtual

Implements IPersonalSettingsProvider.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ langChanged

void PersonalSettings::langChanged ( )
signal
Here is the caller graph for this function:

◆ setCrashReportingMode()

void PersonalSettings::setCrashReportingMode ( CrashReportingMode _crashReportingMode)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLang()

void PersonalSettings::setLang ( const QString & _lang)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSeenTips()

void PersonalSettings::setSeenTips ( const QList< int > & _seenTips)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setShowTipsOnStartup()

void PersonalSettings::setShowTipsOnStartup ( bool _showTipsOnStartup)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SettingsCache

friend class SettingsCache
friend

The documentation for this class was generated from the following files: