#include <UserPreferences.h>
Inherits PreferenceMap.
Inherited by CustomMatchPreferences, GameSpyLoginPreferences, GameSpyMiscPreferences, IgnorePreferences, LANPreferences, LadderPreferences, OptionPreferences, QuickMatchPreferences, SkirmishBattleHonors, and SkirmishPreferences.
Public Member Functions | |
| UserPreferences () | |
| virtual | ~UserPreferences () |
| virtual Bool | load (AsciiString fname) |
| virtual Bool | write (void) |
| Bool | getBool (AsciiString key, Bool defaultValue) const |
| Real | getReal (AsciiString key, Real defaultValue) const |
| Int | getInt (AsciiString key, Int defaultValue) const |
| AsciiString | getAsciiString (AsciiString key, AsciiString defaultValue) const |
| void | setBool (AsciiString key, Bool val) |
| void | setReal (AsciiString key, Real val) |
| void | setInt (AsciiString key, Int val) |
| void | setAsciiString (AsciiString key, AsciiString val) |
Protected Attributes | |
| AsciiString | m_filename |
Definition at line 52 of file UserPreferences.h.
| UserPreferences::UserPreferences | ( | void | ) |
Definition at line 114 of file UserPreferences.cpp.
|
virtual |
Definition at line 118 of file UserPreferences.cpp.
| AsciiString UserPreferences::getAsciiString | ( | AsciiString | key, |
| AsciiString | defaultValue ) const |
Definition at line 212 of file UserPreferences.cpp.
| Bool UserPreferences::getBool | ( | AsciiString | key, |
| Bool | defaultValue ) const |
Definition at line 178 of file UserPreferences.cpp.
| Int UserPreferences::getInt | ( | AsciiString | key, |
| Int | defaultValue ) const |
Definition at line 201 of file UserPreferences.cpp.
| Real UserPreferences::getReal | ( | AsciiString | key, |
| Real | defaultValue ) const |
Definition at line 190 of file UserPreferences.cpp.
|
virtual |
Reimplemented in GameSpyLoginPreferences.
Definition at line 123 of file UserPreferences.cpp.
| void UserPreferences::setAsciiString | ( | AsciiString | key, |
| AsciiString | val ) |
Definition at line 238 of file UserPreferences.cpp.
| void UserPreferences::setBool | ( | AsciiString | key, |
| Bool | val ) |
Definition at line 223 of file UserPreferences.cpp.
| void UserPreferences::setInt | ( | AsciiString | key, |
| Int | val ) |
Definition at line 233 of file UserPreferences.cpp.
| void UserPreferences::setReal | ( | AsciiString | key, |
| Real | val ) |
Definition at line 228 of file UserPreferences.cpp.
|
virtual |
Reimplemented in GameSpyLoginPreferences, LadderPreferences, and SkirmishPreferences.
Definition at line 158 of file UserPreferences.cpp.
|
protected |
Definition at line 72 of file UserPreferences.h.