OpenMW
|
#include <settingcontainer.hpp>
Public Member Functions | |
SettingContainer (QObject *parent=0) | |
SettingContainer (const QString &value, QObject *parent=0) | |
void | insert (const QString &value) |
void | update (const QString &value, int index=0) |
QString | getValue (int index=-1) const |
return value at specified index | |
QStringList * | getValues () const |
retrieve list of all values | |
int | count () const |
return size of list | |
bool | isEmpty () const |
bool | isMultiValue () const |
Private Attributes | |
QString * | mValue |
QStringList * | mValues |
CSMSettings::SettingContainer::SettingContainer | ( | QObject * | parent = 0 | ) | [explicit] |
CSMSettings::SettingContainer::SettingContainer | ( | const QString & | value, |
QObject * | parent = 0 |
||
) | [explicit] |
int CSMSettings::SettingContainer::count | ( | ) | const |
return size of list
QString CSMSettings::SettingContainer::getValue | ( | int | index = -1 | ) | const |
return value at specified index
QStringList* CSMSettings::SettingContainer::getValues | ( | ) | const [inline] |
retrieve list of all values
void CSMSettings::SettingContainer::insert | ( | const QString & | value | ) |
add a value to the container multiple values supported
bool CSMSettings::SettingContainer::isEmpty | ( | ) | const [inline] |
test for empty container useful for default-constructed containers returned by QMap when invalid key is passed
bool CSMSettings::SettingContainer::isMultiValue | ( | ) | const [inline] |
void CSMSettings::SettingContainer::update | ( | const QString & | value, |
int | index = 0 |
||
) |
update an existing value index specifies multiple values
QString* CSMSettings::SettingContainer::mValue [private] |
QStringList* CSMSettings::SettingContainer::mValues [private] |