LMMS
Loading...
Searching...
No Matches
calf_utils::gkeyfile_config_db Class Reference

#include <gui_config.h>

Inheritance diagram for calf_utils::gkeyfile_config_db:
calf_utils::config_db_iface

Classes

class  notifier

Public Member Functions

 gkeyfile_config_db (GKeyFile *kf, const char *filename, const char *section)
virtual bool has_dir (const char *key)
virtual bool get_bool (const char *key, bool def_value)
virtual int get_int (const char *key, int def_value)
virtual std::string get_string (const char *key, const std::string &def_value)
virtual void set_bool (const char *key, bool value)
virtual void set_int (const char *key, int value)
virtual void set_string (const char *key, const std::string &value)
virtual void save ()
virtual config_notifier_ifaceadd_listener (config_listener_iface *listener)
virtual ~gkeyfile_config_db ()
Public Member Functions inherited from calf_utils::config_db_iface
virtual ~config_db_iface ()

Protected Member Functions

void handle_error (GError *error)
void remove_notifier (notifier *n)

Protected Attributes

GKeyFile * keyfile
std::string filename
std::string section
std::vector< notifier * > notifiers

Friends

class notifier

Constructor & Destructor Documentation

◆ gkeyfile_config_db()

gkeyfile_config_db::gkeyfile_config_db ( GKeyFile * kf,
const char * filename,
const char * section )

◆ ~gkeyfile_config_db()

gkeyfile_config_db::~gkeyfile_config_db ( )
virtual

Member Function Documentation

◆ add_listener()

config_notifier_iface * gkeyfile_config_db::add_listener ( config_listener_iface * listener)
virtual

◆ get_bool()

bool gkeyfile_config_db::get_bool ( const char * key,
bool def_value )
virtual

◆ get_int()

int gkeyfile_config_db::get_int ( const char * key,
int def_value )
virtual

◆ get_string()

std::string gkeyfile_config_db::get_string ( const char * key,
const std::string & def_value )
virtual

◆ handle_error()

void gkeyfile_config_db::handle_error ( GError * error)
protected

◆ has_dir()

bool gkeyfile_config_db::has_dir ( const char * key)
virtual

◆ remove_notifier()

void gkeyfile_config_db::remove_notifier ( notifier * n)
protected

◆ save()

void gkeyfile_config_db::save ( )
virtual

◆ set_bool()

void gkeyfile_config_db::set_bool ( const char * key,
bool value )
virtual

◆ set_int()

void gkeyfile_config_db::set_int ( const char * key,
int value )
virtual

◆ set_string()

void gkeyfile_config_db::set_string ( const char * key,
const std::string & value )
virtual

◆ notifier

friend class notifier
friend

Member Data Documentation

◆ filename

std::string calf_utils::gkeyfile_config_db::filename
protected

◆ keyfile

GKeyFile* calf_utils::gkeyfile_config_db::keyfile
protected

◆ notifiers

std::vector<notifier *> calf_utils::gkeyfile_config_db::notifiers
protected

◆ section

std::string calf_utils::gkeyfile_config_db::section
protected

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