Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CSettingsStore Class Reference

#include </home/clem/local/src/opie/inputmethods/dasher/SettingsStore.h>

List of all members.

Public Member Functions

virtual ~CSettingsStore ()
bool GetBoolOption (const std::string &Key)
long GetLongOption (const std::string &Key)
std::string & GetStringOption (const std::string &Key)
void SetBoolOption (const std::string &Key, bool Value)
void SetLongOption (const std::string &Key, long Value)
void SetStringOption (const std::string &Key, const std::string &Value)
void SetBoolDefault (const std::string &Key, bool Value)
void SetLongDefault (const std::string &Key, long Value)
void SetStringDefault (const std::string &Key, const std::string &Value)

Private Member Functions

virtual bool LoadSetting (const std::string &Key, bool *Value)
 Load a setting with a boolean value.
virtual bool LoadSetting (const std::string &Key, long *Value)
 Load a setting with a long value.
virtual bool LoadSetting (const std::string &Key, std::string *Value)
 Load a setting with a string value.
virtual void SaveSetting (const std::string &Key, bool Value)
 Save a setting with a boolean value.
virtual void SaveSetting (const std::string &Key, long Value)
 Save a setting with a long value.
virtual void SaveSetting (const std::string &Key, const std::string &Value)
 Save a setting with a string value.

Private Attributes

std::map< std::string, bool > BoolMap
std::map< std::string, long > LongMap
std::map< std::string, std::string > StringMap


Constructor & Destructor Documentation

CSettingsStore::~CSettingsStore  )  [virtual]
 

Definition at line 19 of file SettingsStore.cpp.


Member Function Documentation

bool CSettingsStore::GetBoolOption const std::string &  Key  ) 
 

Definition at line 24 of file SettingsStore.cpp.

References BoolMap, and LoadSetting().

Referenced by Dasher::CDasherInterface::ChangeEdit(), and Dasher::CDasherSettingsInterface::SettingsDefaults().

long CSettingsStore::GetLongOption const std::string &  Key  ) 
 

Definition at line 36 of file SettingsStore.cpp.

References l, LoadSetting(), and LongMap.

Referenced by Dasher::CDasherSettingsInterface::SettingsDefaults().

string & CSettingsStore::GetStringOption const std::string &  Key  ) 
 

Definition at line 48 of file SettingsStore.cpp.

References LoadSetting(), and Opie::Internal::string().

Referenced by Dasher::CDasherSettingsInterface::SettingsDefaults().

bool CSettingsStore::LoadSetting const std::string &  Key,
std::string *  Value
[private, virtual]
 

Load a setting with a string value.

Load a setting with a string value. Return true if successful

Parameters:
Key Name of the setting
Value Value of the setting, UTF8 encoded

Definition at line 122 of file SettingsStore.cpp.

bool CSettingsStore::LoadSetting const std::string &  Key,
long *  Value
[private, virtual]
 

Load a setting with a long value.

Load a setting with a long value. Return true if successful

Parameters:
Key Name of the setting
Value Value of the setting

Definition at line 116 of file SettingsStore.cpp.

bool CSettingsStore::LoadSetting const std::string &  Key,
bool *  Value
[private, virtual]
 

Load a setting with a boolean value.

Load a setting with a boolean value. Return true if successful

Parameters:
Key Name of the setting
Value Value of the setting

Definition at line 110 of file SettingsStore.cpp.

Referenced by GetBoolOption(), GetLongOption(), GetStringOption(), SetBoolDefault(), SetLongDefault(), and SetStringDefault().

void CSettingsStore::SaveSetting const std::string &  Key,
const std::string &  Value
[private, virtual]
 

Save a setting with a string value.

Parameters:
Key Name of the setting
Value Value of the setting, UTF8 encoded

Definition at line 138 of file SettingsStore.cpp.

void CSettingsStore::SaveSetting const std::string &  Key,
long  Value
[private, virtual]
 

Save a setting with a long value.

Parameters:
Key Name of the setting
Value Value of the setting

Definition at line 133 of file SettingsStore.cpp.

void CSettingsStore::SaveSetting const std::string &  Key,
bool  Value
[private, virtual]
 

Save a setting with a boolean value.

Parameters:
Key Name of the setting
Value Value of the setting

Definition at line 128 of file SettingsStore.cpp.

Referenced by SetBoolOption(), SetLongOption(), and SetStringOption().

void CSettingsStore::SetBoolDefault const std::string &  Key,
bool  Value
 

Definition at line 81 of file SettingsStore.cpp.

References BoolMap, LoadSetting(), and SetBoolOption().

Referenced by Dasher::CDasherSettingsInterface::SettingsDefaults().

void CSettingsStore::SetBoolOption const std::string &  Key,
bool  Value
 

Definition at line 60 of file SettingsStore.cpp.

References BoolMap, and SaveSetting().

Referenced by Dasher::CDasherInterface::CopyAllOnStop(), Dasher::CDasherInterface::DrawMouse(), Dasher::CDasherInterface::FixLayout(), Dasher::CDasherInterface::KeyControl(), SetBoolDefault(), Dasher::CDasherInterface::SetDasherDimensions(), Dasher::CDasherInterface::ShowSpeedSlider(), Dasher::CDasherInterface::ShowToolbar(), Dasher::CDasherInterface::ShowToolbarLargeIcons(), Dasher::CDasherInterface::ShowToolbarText(), Dasher::CDasherInterface::StartOnLeft(), Dasher::CDasherInterface::StartOnSpace(), Dasher::CDasherInterface::TimeStampNewFiles(), and Dasher::CDasherInterface::WindowPause().

void CSettingsStore::SetLongDefault const std::string &  Key,
long  Value
 

Definition at line 89 of file SettingsStore.cpp.

References LoadSetting(), LongMap, and SetLongOption().

Referenced by Dasher::CDasherSettingsInterface::SettingsDefaults().

void CSettingsStore::SetLongOption const std::string &  Key,
long  Value
 

Definition at line 67 of file SettingsStore.cpp.

References LongMap, and SaveSetting().

Referenced by Dasher::CDasherInterface::ChangeMaxBitRate(), Dasher::CDasherInterface::ChangeOrientation(), Dasher::CDasherInterface::SetDasherFontSize(), Dasher::CDasherInterface::SetEditFont(), Dasher::CDasherInterface::SetFileEncoding(), and SetLongDefault().

void CSettingsStore::SetStringDefault const std::string &  Key,
const std::string &  Value
 

Definition at line 97 of file SettingsStore.cpp.

References LoadSetting(), SetStringOption(), and Opie::Internal::string().

void CSettingsStore::SetStringOption const std::string &  Key,
const std::string &  Value
 

Definition at line 74 of file SettingsStore.cpp.

References SaveSetting().

Referenced by Dasher::CDasherInterface::ChangeAlphabet(), Dasher::CDasherInterface::SetDasherFont(), Dasher::CDasherInterface::SetEditFont(), and SetStringDefault().


Member Data Documentation

std::map<std::string, bool> CSettingsStore::BoolMap [private]
 

Definition at line 87 of file SettingsStore.h.

Referenced by GetBoolOption(), SetBoolDefault(), and SetBoolOption().

std::map<std::string, long> CSettingsStore::LongMap [private]
 

Definition at line 88 of file SettingsStore.h.

Referenced by GetLongOption(), SetLongDefault(), and SetLongOption().

std::map<std::string, std::string> CSettingsStore::StringMap [private]
 

Definition at line 89 of file SettingsStore.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:29:54 2005 for OPIE by  doxygen 1.4.2