libosmscout 1.1.1
Loading...
Searching...
No Matches
osmscout::QtSettingsStorage Class Reference

#include <libosmscout-client-qt/include/osmscoutclientqt/QtSettingsStorage.h>

Inheritance diagram for osmscout::QtSettingsStorage:
Collaboration diagram for osmscout::QtSettingsStorage:

Public Member Functions

 QtSettingsStorage (QSettings *providedStorage=nullptr)
virtual ~QtSettingsStorage ()=default
void SetValue (const std::string &key, double d) override
void SetValue (const std::string &key, uint32_t i) override
void SetValue (const std::string &key, const std::string &str) override
void SetValue (const std::string &key, bool b) override
void SetValue (const std::string &key, std::vector< char > bytes) override
double GetDouble (const std::string &key, double defaultValue=0) override
uint32_t GetUInt (const std::string &key, uint32_t defaultValue=0) override
std::string GetString (const std::string &key, const std::string &defaultValue="") override
bool GetBool (const std::string &key, bool defaultValue=0) override
std::vector< char > GetBytes (const std::string &key) override
std::vector< std::string > Keys (const std::string &prefix) override

Constructor & Destructor Documentation

◆ QtSettingsStorage()

osmscout::QtSettingsStorage::QtSettingsStorage ( QSettings * providedStorage = nullptr)
explicit
Parameters
providedStoragecustom provider when not null. Storage takes ownership. When it is null, default Qt settings is used.

◆ ~QtSettingsStorage()

virtual osmscout::QtSettingsStorage::~QtSettingsStorage ( )
virtualdefault

Member Function Documentation

◆ GetBool()

bool osmscout::QtSettingsStorage::GetBool ( const std::string & key,
bool defaultValue = 0 )
override

◆ GetBytes()

std::vector< char > osmscout::QtSettingsStorage::GetBytes ( const std::string & key)
override

◆ GetDouble()

double osmscout::QtSettingsStorage::GetDouble ( const std::string & key,
double defaultValue = 0 )
override

◆ GetString()

std::string osmscout::QtSettingsStorage::GetString ( const std::string & key,
const std::string & defaultValue = "" )
override

◆ GetUInt()

uint32_t osmscout::QtSettingsStorage::GetUInt ( const std::string & key,
uint32_t defaultValue = 0 )
override

◆ Keys()

std::vector< std::string > osmscout::QtSettingsStorage::Keys ( const std::string & prefix)
override

◆ SetValue() [1/5]

void osmscout::QtSettingsStorage::SetValue ( const std::string & key,
bool b )
override

◆ SetValue() [2/5]

void osmscout::QtSettingsStorage::SetValue ( const std::string & key,
const std::string & str )
override

◆ SetValue() [3/5]

void osmscout::QtSettingsStorage::SetValue ( const std::string & key,
double d )
override

◆ SetValue() [4/5]

void osmscout::QtSettingsStorage::SetValue ( const std::string & key,
std::vector< char > bytes )
override

◆ SetValue() [5/5]

void osmscout::QtSettingsStorage::SetValue ( const std::string & key,
uint32_t i )
override

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