Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
Loading...
Searching...
No Matches
settings_card_database_path_provider.h
Go to the documentation of this file.
1
#ifndef SETTINGS_CARD_DATABASE_PATH_PROVIDER_H
2
#define SETTINGS_CARD_DATABASE_PATH_PROVIDER_H
3
4
#include "
../../client/settings/cache_settings.h
"
5
6
#include <
libcockatrice/interfaces/interface_card_database_path_provider.h
>
7
#include <
libcockatrice/settings/paths_settings.h
>
8
9
class
SettingsCardDatabasePathProvider
:
public
ICardDatabasePathProvider
10
{
11
Q_OBJECT
12
13
public
:
14
explicit
SettingsCardDatabasePathProvider
(QObject *parent =
nullptr
) :
ICardDatabasePathProvider
(parent)
15
{
16
connect(&
SettingsCache::instance
().paths(), &
PathsSettings::cardDatabasePathChanged
,
this
,
17
&
ICardDatabasePathProvider::cardDatabasePathChanged
);
18
}
19
20
[[nodiscard]] QString
getCardDatabasePath
()
const override
21
{
22
return
SettingsCache::instance
().
paths
().
getCardDatabasePath
();
23
}
24
25
[[nodiscard]] QString
getCustomCardDatabasePath
()
const override
26
{
27
return
SettingsCache::instance
().
paths
().
getCustomCardDatabasePath
();
28
}
29
30
[[nodiscard]] QString
getTokenDatabasePath
()
const override
31
{
32
return
SettingsCache::instance
().
paths
().
getTokenDatabasePath
();
33
}
34
35
[[nodiscard]]
virtual
QString
getSpoilerCardDatabasePath
()
const override
36
{
37
return
SettingsCache::instance
().
paths
().
getSpoilerCardDatabasePath
();
38
}
39
};
40
41
#endif
// SETTINGS_CARD_DATABASE_PATH_PROVIDER_H
cache_settings.h
ICardDatabasePathProvider
Definition
interface_card_database_path_provider.h:6
ICardDatabasePathProvider::cardDatabasePathChanged
void cardDatabasePathChanged()
PathsSettings::getTokenDatabasePath
QString getTokenDatabasePath() const override
Definition
paths_settings.cpp:56
PathsSettings::getCardDatabasePath
QString getCardDatabasePath() const override
Definition
paths_settings.cpp:46
PathsSettings::getCustomCardDatabasePath
QString getCustomCardDatabasePath() const override
Definition
paths_settings.cpp:51
PathsSettings::getSpoilerCardDatabasePath
QString getSpoilerCardDatabasePath() const override
Definition
paths_settings.cpp:61
PathsSettings::cardDatabasePathChanged
void cardDatabasePathChanged()
SettingsCache::paths
PathsSettings & paths() const
Definition
cache_settings.cpp:453
SettingsCache::instance
static SettingsCache & instance()
Definition
cache_settings.cpp:48
SettingsCardDatabasePathProvider::SettingsCardDatabasePathProvider
SettingsCardDatabasePathProvider(QObject *parent=nullptr)
Definition
settings_card_database_path_provider.h:14
SettingsCardDatabasePathProvider::getTokenDatabasePath
QString getTokenDatabasePath() const override
Definition
settings_card_database_path_provider.h:30
SettingsCardDatabasePathProvider::getCustomCardDatabasePath
QString getCustomCardDatabasePath() const override
Definition
settings_card_database_path_provider.h:25
SettingsCardDatabasePathProvider::getSpoilerCardDatabasePath
virtual QString getSpoilerCardDatabasePath() const override
Definition
settings_card_database_path_provider.h:35
SettingsCardDatabasePathProvider::getCardDatabasePath
QString getCardDatabasePath() const override
Definition
settings_card_database_path_provider.h:20
interface_card_database_path_provider.h
paths_settings.h
cockatrice
src
database
interface
settings_card_database_path_provider.h
Generated by
1.18.0