Freya  0.0.1
A Gtk3 MPD Client
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Data Structures | Namespaces | Defines
src/Config/Handler.hh File Reference
#include <libxml/parser.h>
#include <glibmm/ustring.h>
#include "Model.hh"
#include "../Utils/Singleton.hh"
Include dependency graph for Handler.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  Config::Handler
 A singleton class to provide Config access, use the macros down instead. More...

Namespaces

namespace  Config
 The Config namespace offers macros to manipulate and get values from the config.

Defines

#define CONFIG_SET(x, y)   Config::Handler::instance().set_value(x,y)
#define CONFIG_GET(x)   Config::Handler::instance().get_value(x)
#define CONFIG_SET_AS_INT(x, y)   Config::Handler::instance().set_value_as_int(x,y)
#define CONFIG_GET_AS_INT(x)   Config::Handler::instance().get_value_as_int(x)
#define CONFIG_SAVE_NOW()   Config::Handler::instance().save_config_now()
#define CONFIG_GET_DEFAULT(x)   Config::Handler::instance().get_default_value(x)
#define CONFIG_GET_DEFAULT_AS_INT(x)   Config::Handler::instance().get_default_value_as_int(x)

Define Documentation

#define CONFIG_GET (   x)    Config::Handler::instance().get_value(x)

Definition at line 126 of file Handler.hh.

#define CONFIG_GET_AS_INT (   x)    Config::Handler::instance().get_value_as_int(x)

Definition at line 129 of file Handler.hh.

#define CONFIG_GET_DEFAULT (   x)    Config::Handler::instance().get_default_value(x)

Definition at line 133 of file Handler.hh.

#define CONFIG_GET_DEFAULT_AS_INT (   x)    Config::Handler::instance().get_default_value_as_int(x)

Definition at line 134 of file Handler.hh.

#define CONFIG_SAVE_NOW ( )    Config::Handler::instance().save_config_now()

Definition at line 131 of file Handler.hh.

#define CONFIG_SET (   x,
  y 
)    Config::Handler::instance().set_value(x,y)

Definition at line 125 of file Handler.hh.

#define CONFIG_SET_AS_INT (   x,
  y 
)    Config::Handler::instance().set_value_as_int(x,y)

Definition at line 128 of file Handler.hh.