BBoB_Settings Class Reference

#include <bbob_settings.h>

List of all members.


Detailed Description

Wrapper for QSettings.

Definition at line 10 of file bbob_settings.h.


Public Member Functions

 BBoB_Settings (QString program)
 This will use INI format, so settings can be edited easily.
 ~BBoB_Settings ()
QVariant getValue (QString name, QVariant default_string)
 QSettings::value() for the key name.
QVariant getValue (QString group, QString name, QVariant default_value)
 QSettings::value() for the group and key name.
QStringList getGroups (QString group)
 QSettings::childGroups() for the group.
QStringList getValues (QString group)
 QSettings::allKeys() for the group.
void setValue (QString key, QVariant value)
void setValue (QString group, QString key, QVariant value)
QStringList getList (QString group)
QVariant getListValue (QString group, QString name, QVariant default_value)
void setList (QString name)
void writeList (QString group, QString key, QVariant value)
void removeValues (QString group, QString key)
void Sync ()

Public Attributes

QString Program
QString groupName
QSettingssettings

Constructor & Destructor Documentation

BBoB_Settings::BBoB_Settings ( QString  program  ) 

This will use INI format, so settings can be edited easily.

Definition at line 12 of file bbob_settings.cpp.

References Program, and settings.

BBoB_Settings::~BBoB_Settings (  ) 

Definition at line 19 of file bbob_settings.cpp.

References Sync().

Here is the call graph for this function:


Member Function Documentation

QVariant BBoB_Settings::getValue ( QString  name,
QVariant  default_string 
)

QSettings::value() for the key name.

Definition at line 30 of file bbob_settings.cpp.

References settings, and QSettings::value().

Referenced by BCore::loadConnections(), Qonsole::loadDesks(), Qonsole::LoadForStartup(), UdpPlugin::LoadSettings(), TimeCodePlugin::LoadSettings(), TcpPlugin::LoadSettings(), SoundPlugin::LoadSettings(), SerialPlugin::LoadSettings(), SDLPlugin::LoadSettings(), PluginViewerPlugin::LoadSettings(), LightTreePlugin::LoadSettings(), GlExamplePlugin::LoadSettings(), FmodSystemPlugin::LoadSettings(), FaderBlockPlugin::LoadSettings(), ButtonBlockPlugin::LoadSettings(), BusConsolePlugin::LoadSettings(), and bbobdThread::run().

Here is the call graph for this function:

QVariant BBoB_Settings::getValue ( QString  group,
QString  name,
QVariant  default_value 
)

QSettings::value() for the group and key name.

Definition at line 35 of file bbob_settings.cpp.

References QSettings::beginGroup(), QSettings::endGroup(), settings, and QSettings::value().

Here is the call graph for this function:

QStringList BBoB_Settings::getGroups ( QString  group  ) 

QSettings::childGroups() for the group.

Definition at line 43 of file bbob_settings.cpp.

References QSettings::beginGroup(), QSettings::childGroups(), QSettings::endGroup(), QString::isEmpty(), and settings.

Referenced by BCore::loadCues().

Here is the call graph for this function:

QStringList BBoB_Settings::getValues ( QString  group  ) 

QSettings::allKeys() for the group.

Definition at line 55 of file bbob_settings.cpp.

References QSettings::allKeys(), QSettings::beginGroup(), QSettings::endGroup(), groupName, QString::isEmpty(), and settings.

Referenced by BCore::loadCues().

Here is the call graph for this function:

void BBoB_Settings::setValue ( QString  key,
QVariant  value 
)

Definition at line 69 of file bbob_settings.cpp.

References settings, and QSettings::setValue().

Referenced by Qonsole::LoadForStartup(), BCore::saveConnections(), Qonsole::saveDesks(), Qonsole::SaveSettings(), UdpPlugin::SaveSettings(), TimeCodePlugin::SaveSettings(), TestPlugin::SaveSettings(), TcpPlugin::SaveSettings(), SoundPlugin::SaveSettings(), SerialPlugin::SaveSettings(), SDLPlugin::SaveSettings(), PluginViewerPlugin::SaveSettings(), LiveUpdatePlugin::SaveSettings(), LightTreePlugin::SaveSettings(), GlExamplePlugin::SaveSettings(), FmodSystemPlugin::SaveSettings(), FaderBlockPlugin::SaveSettings(), ButtonBlockPlugin::SaveSettings(), and BusConsolePlugin::SaveSettings().

Here is the call graph for this function:

void BBoB_Settings::setValue ( QString  group,
QString  key,
QVariant  value 
)

Definition at line 74 of file bbob_settings.cpp.

References QSettings::beginGroup(), QSettings::endGroup(), settings, and QSettings::setValue().

Here is the call graph for this function:

QStringList BBoB_Settings::getList ( QString  group  ) 

Definition at line 81 of file bbob_settings.cpp.

References QSettings::beginGroup(), QSettings::childKeys(), QSettings::endGroup(), groupName, QString::isEmpty(), and settings.

Referenced by BCore::loadConnections(), and FmodSystemPlugin::LoadSettings().

Here is the call graph for this function:

QVariant BBoB_Settings::getListValue ( QString  group,
QString  name,
QVariant  default_value 
)

Definition at line 95 of file bbob_settings.cpp.

References QSettings::beginGroup(), QSettings::endGroup(), groupName, QString::isEmpty(), settings, and QSettings::value().

Referenced by BCore::loadCues(), and FmodSystemPlugin::LoadSettings().

Here is the call graph for this function:

void BBoB_Settings::setList ( QString  name  ) 

Definition at line 109 of file bbob_settings.cpp.

References groupName.

Referenced by BCore::loadConnections(), BCore::loadCues(), FmodSystemPlugin::LoadSettings(), BCore::saveCues(), and FmodSystemPlugin::SaveSettings().

void BBoB_Settings::writeList ( QString  group,
QString  key,
QVariant  value 
)

Definition at line 114 of file bbob_settings.cpp.

References QSettings::beginGroup(), QSettings::endGroup(), groupName, settings, and QSettings::setValue().

Referenced by BCore::saveCues(), and FmodSystemPlugin::SaveSettings().

Here is the call graph for this function:

void BBoB_Settings::removeValues ( QString  group,
QString  key 
)

Definition at line 121 of file bbob_settings.cpp.

References QSettings::beginGroup(), QSettings::endGroup(), groupName, QString::isEmpty(), QSettings::remove(), and settings.

Referenced by BCore::saveCues().

Here is the call graph for this function:

void BBoB_Settings::Sync (  ) 

Definition at line 24 of file bbob_settings.cpp.

References settings, and QSettings::sync().

Referenced by Qonsole::SaveSettings(), and ~BBoB_Settings().

Here is the call graph for this function:


Member Data Documentation

QString BBoB_Settings::Program

Definition at line 17 of file bbob_settings.h.

Referenced by BBoB_Settings(), and Qonsole::SaveSettings().

QString BBoB_Settings::groupName

Definition at line 19 of file bbob_settings.h.

Referenced by getList(), getListValue(), getValues(), removeValues(), setList(), and writeList().

QSettings* BBoB_Settings::settings

Definition at line 21 of file bbob_settings.h.

Referenced by BBoB_Settings(), getGroups(), getList(), getListValue(), getValue(), getValues(), removeValues(), setValue(), Sync(), and writeList().


The documentation for this class was generated from the following files:
Generated on Sun Oct 28 22:51:34 2007 for BBoB by  doxygen 1.5.3