qBittorrent
|
#include <profile.h>
Public Member Functions | |
QString | location (SpecialFolder folder) const |
SettingsPtr | applicationSettings (const QString &name) const |
QString | rootPath () const |
QString | configurationName () const |
QString | profileName () const |
QString | toPortablePath (const QString &absolutePath) const |
QString | fromPortablePath (const QString &portablePath) const |
Static Public Member Functions | |
static void | initInstance (const QString &rootProfilePath, const QString &configurationName, bool convertPathsToProfileRelative) |
static void | freeInstance () |
static const Profile * | instance () |
Private Member Functions | |
Profile (const QString &rootProfilePath, const QString &configurationName, bool convertPathsToProfileRelative) | |
~Profile ()=default | |
void | ensureDirectoryExists (SpecialFolder folder) const |
Private Attributes | |
std::unique_ptr< Private::Profile > | m_profileImpl |
std::unique_ptr< Private::PathConverter > | m_pathConverterImpl |
Static Private Attributes | |
static Profile * | m_instance = nullptr |
|
private |
Definition at line 36 of file profile.cpp.
References Cache, Config, configurationName(), Data, ensureDirectoryExists(), m_pathConverterImpl, and m_profileImpl.
Referenced by initInstance().
|
privatedefault |
SettingsPtr Profile::applicationSettings | ( | const QString & | name | ) | const |
Definition at line 109 of file profile.cpp.
References m_profileImpl.
Referenced by anonymous_namespace{settingsstorage.cpp}::TransactionalSettings::deserialize(), Statistics::load(), RSS::Feed::loadArticlesLegacy(), RSS::AutoDownloader::loadRulesLegacy(), Statistics::save(), and anonymous_namespace{settingsstorage.cpp}::TransactionalSettings::serialize().
QString Profile::configurationName | ( | ) | const |
Definition at line 99 of file profile.cpp.
References m_profileImpl.
Referenced by initInstance(), and Profile().
|
private |
Definition at line 114 of file profile.cpp.
References location().
Referenced by Profile().
|
static |
Definition at line 61 of file profile.cpp.
References m_instance.
Referenced by Application::cleanup().
QString Profile::fromPortablePath | ( | const QString & | portablePath | ) | const |
Definition at line 126 of file profile.cpp.
References m_pathConverterImpl.
Referenced by BitTorrent::DBResumeDataStorage::load(), and BitTorrent::BencodeResumeDataStorage::loadTorrentResumeData().
|
static |
Definition at line 53 of file profile.cpp.
References configurationName(), m_instance, and Profile().
Referenced by Application::Application().
|
static |
Definition at line 67 of file profile.cpp.
References m_instance.
Referenced by Application::Application(), anonymous_namespace{settingsstorage.cpp}::TransactionalSettings::deserialize(), Statistics::load(), BitTorrent::DBResumeDataStorage::load(), RSS::Feed::loadArticlesLegacy(), RSS::AutoDownloader::loadRulesLegacy(), BitTorrent::BencodeResumeDataStorage::loadTorrentResumeData(), Statistics::save(), anonymous_namespace{settingsstorage.cpp}::TransactionalSettings::serialize(), specialFolderLocation(), BitTorrent::BencodeResumeDataStorage::Worker::store(), and BitTorrent::DBResumeDataStorage::Worker::store().
QString Profile::location | ( | SpecialFolder | folder | ) | const |
Definition at line 72 of file profile.cpp.
References Cache, Config, Data, Downloads, and m_profileImpl.
Referenced by Application::Application(), ensureDirectoryExists(), and specialFolderLocation().
QString Profile::profileName | ( | ) | const |
Returns either default name for configuration file (QCoreApplication::applicationName()) or the value, supplied via parameters
Definition at line 104 of file profile.cpp.
References m_profileImpl.
QString Profile::rootPath | ( | ) | const |
Definition at line 94 of file profile.cpp.
References m_profileImpl.
QString Profile::toPortablePath | ( | const QString & | absolutePath | ) | const |
Definition at line 121 of file profile.cpp.
References m_pathConverterImpl.
Referenced by BitTorrent::BencodeResumeDataStorage::Worker::store(), and BitTorrent::DBResumeDataStorage::Worker::store().
|
staticprivate |
Definition at line 83 of file profile.h.
Referenced by freeInstance(), initInstance(), and instance().
|
private |
Definition at line 82 of file profile.h.
Referenced by fromPortablePath(), Profile(), and toPortablePath().
|
private |
Definition at line 81 of file profile.h.
Referenced by applicationSettings(), configurationName(), location(), Profile(), profileName(), and rootPath().