OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
Config::LauncherSettings Class Reference

#include <launchersettings.hpp>

Inheritance diagram for Config::LauncherSettings:
Collaboration diagram for Config::LauncherSettings:

Public Member Functions

 LauncherSettings ()
 
 ~LauncherSettings ()
 
bool writeFile (QTextStream &stream)
 
QStringList getContentLists ()
 
void setContentList (const GameSettings &gameSettings)
 Set initially selected content list to match values from openmw.cfg, creating if necessary. More...
 
void setContentList (const QString &contentListName, const QStringList &fileNames)
 Create a Content List (or replace if it already exists) More...
 
void removeContentList (const QString &contentListName)
 
void setCurrentContentListName (const QString &contentListName)
 
QString getCurrentContentListName () const
 
QStringList getContentListFiles (const QString &contentListName) const
 
- Public Member Functions inherited from Config::SettingsBase< QMap< QString, QString > >
 SettingsBase ()
 
 ~SettingsBase ()
 
QString value (const QString &key, const QString &defaultValue=QString()) const
 
void setValue (const QString &key, const QString &value)
 
void setMultiValue (const QString &key, const QString &value)
 
void setMultiValueEnabled (bool enable)
 
void remove (const QString &key)
 
QMap< QString, QString > getSettings () const
 
bool readFile (QTextStream &stream)
 
void clear ()
 

Static Public Member Functions

static QStringList reverse (const QStringList &toReverse)
 

Static Public Attributes

static const char sLauncherConfigFileName [] = "launcher.cfg"
 

Private Member Functions

QStringList subKeys (const QString &key)
 

Static Private Member Functions

static QString makeContentListKey (const QString &contentListName)
 
static bool isEqual (const QStringList &list1, const QStringList &list2)
 
static QString makeNewContentListName ()
 

Static Private Attributes

static const char sCurrentContentListKey [] = "Profiles/currentprofile"
 name of entry in launcher.cfg that holds name of currently selected Content List More...
 
static const char sContentListsSectionPrefix [] = "Profiles/"
 section of launcher.cfg holding the Content Lists More...
 
static const char sContentListSuffix [] = "/content"
 

Constructor & Destructor Documentation

Config::LauncherSettings::LauncherSettings ( )
Config::LauncherSettings::~LauncherSettings ( )

Member Function Documentation

QStringList Config::LauncherSettings::getContentListFiles ( const QString &  contentListName) const
QStringList Config::LauncherSettings::getContentLists ( )
Returns
names of all Content Lists in the launcher's .cfg file.
QString Config::LauncherSettings::getCurrentContentListName ( ) const
bool Config::LauncherSettings::isEqual ( const QStringList &  list1,
const QStringList &  list2 
)
staticprivate
Returns
true if both lists are same
QString Config::LauncherSettings::makeContentListKey ( const QString &  contentListName)
staticprivate
Returns
key to use to get/set the files in the specified Content List
QString Config::LauncherSettings::makeNewContentListName ( )
staticprivate
void Config::LauncherSettings::removeContentList ( const QString &  contentListName)
QStringList Config::LauncherSettings::reverse ( const QStringList &  toReverse)
static
Returns
new list that is reversed order of input

Here is the caller graph for this function:

void Config::LauncherSettings::setContentList ( const GameSettings gameSettings)

Set initially selected content list to match values from openmw.cfg, creating if necessary.

Here is the call graph for this function:

void Config::LauncherSettings::setContentList ( const QString &  contentListName,
const QStringList &  fileNames 
)

Create a Content List (or replace if it already exists)

void Config::LauncherSettings::setCurrentContentListName ( const QString &  contentListName)
QStringList Config::LauncherSettings::subKeys ( const QString &  key)
private

Here is the call graph for this function:

bool Config::LauncherSettings::writeFile ( QTextStream &  stream)

Here is the call graph for this function:

Member Data Documentation

const char Config::LauncherSettings::sContentListsSectionPrefix = "Profiles/"
staticprivate

section of launcher.cfg holding the Content Lists

const char Config::LauncherSettings::sContentListSuffix = "/content"
staticprivate
const char Config::LauncherSettings::sCurrentContentListKey = "Profiles/currentprofile"
staticprivate

name of entry in launcher.cfg that holds name of currently selected Content List

const char Config::LauncherSettings::sLauncherConfigFileName = "launcher.cfg"
static

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