OpenMW
Public Member Functions | Private Attributes
CSMSettings::SettingContainer Class Reference

#include <settingcontainer.hpp>

List of all members.

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

Constructor & Destructor Documentation

CSMSettings::SettingContainer::SettingContainer ( QObject *  parent = 0) [explicit]
CSMSettings::SettingContainer::SettingContainer ( const QString &  value,
QObject *  parent = 0 
) [explicit]

Member Function Documentation

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

void CSMSettings::SettingContainer::update ( const QString &  value,
int  index = 0 
)

update an existing value index specifies multiple values


Member Data Documentation


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