My Project
 
Loading...
Searching...
No Matches
Preferences Class Reference

#include <preferences.h>

Public Member Functions

int getInt (const std::string &key, int defValue)
 
bool getBool (const std::string &key, bool defValue)
 
std::string getString (const std::string &key, const std::string &defValue)
 
void put (const std::string &key, int value)
 
void put (const std::string &key, bool value)
 
void put (const std::string &key, const std::string &value)
 

Static Public Member Functions

static Preferencesget ()
 

Static Public Attributes

static const std::string KEY_LANDSCAPE = "landscape"
 
static const std::string KEY_IMMERSIVE = "immersive"
 
static const std::string KEY_GOOGLE_PLAY = "google_play"
 
static const std::string KEY_SCALE_UP = "scaleup"
 
static const std::string KEY_MUSIC = "music"
 
static const std::string KEY_SOUND_FX = "soundfx"
 
static const std::string KEY_ZOOM = "zoom"
 
static const std::string KEY_LAST_CLASS = "last_class"
 
static const std::string KEY_CHALLENGES = "challenges"
 
static const std::string KEY_DONATED = "donated"
 
static const std::string KEY_INTRO = "intro"
 
static const std::string KEY_BRIGHTNESS = "brightness"
 

Member Function Documentation

◆ get()

Preferences * Preferences::get ( )
static
Here is the caller graph for this function:

◆ getBool()

bool Preferences::getBool ( const std::string & key,
bool defValue )
Here is the caller graph for this function:

◆ getInt()

int Preferences::getInt ( const std::string & key,
int defValue )
Here is the caller graph for this function:

◆ getString()

std::string Preferences::getString ( const std::string & key,
const std::string & defValue )
Here is the caller graph for this function:

◆ put() [1/3]

void Preferences::put ( const std::string & key,
bool value )

◆ put() [2/3]

void Preferences::put ( const std::string & key,
const std::string & value )

◆ put() [3/3]

void Preferences::put ( const std::string & key,
int value )
Here is the caller graph for this function:

Member Data Documentation

◆ KEY_BRIGHTNESS

const std::string Preferences::KEY_BRIGHTNESS = "brightness"
static

◆ KEY_CHALLENGES

const std::string Preferences::KEY_CHALLENGES = "challenges"
static

◆ KEY_DONATED

const std::string Preferences::KEY_DONATED = "donated"
static

◆ KEY_GOOGLE_PLAY

const std::string Preferences::KEY_GOOGLE_PLAY = "google_play"
static

◆ KEY_IMMERSIVE

const std::string Preferences::KEY_IMMERSIVE = "immersive"
static

◆ KEY_INTRO

const std::string Preferences::KEY_INTRO = "intro"
static

◆ KEY_LANDSCAPE

const std::string Preferences::KEY_LANDSCAPE = "landscape"
static

◆ KEY_LAST_CLASS

const std::string Preferences::KEY_LAST_CLASS = "last_class"
static

◆ KEY_MUSIC

const std::string Preferences::KEY_MUSIC = "music"
static

◆ KEY_SCALE_UP

const std::string Preferences::KEY_SCALE_UP = "scaleup"
static

◆ KEY_SOUND_FX

const std::string Preferences::KEY_SOUND_FX = "soundfx"
static

◆ KEY_ZOOM

const std::string Preferences::KEY_ZOOM = "zoom"
static

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