Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CRegistry Class Reference

#include <Registry.h>

List of all members.

Public Member Functions

 CRegistry ()
 ~CRegistry ()
CString GetString (LPCTSTR pszSection, LPCTSTR pszName, LPCTSTR pszDefault=NULL)
int GetInt (LPCTSTR pszSection, LPCTSTR pszName, int nDefault=0)
DWORD GetDword (LPCTSTR pszSection, LPCTSTR pszName, DWORD dwDefault=0)
double GetFloat (LPCTSTR pszSection, LPCTSTR pszName, double fDefault=0.0f)
BOOL SetString (LPCTSTR pszSection, LPCTSTR pszName, LPCTSTR pszValue)
BOOL SetInt (LPCTSTR pszSection, LPCTSTR pszName, int nValue)

Protected Member Functions

void DisplayErrorMessageBox (LPCTSTR pszName, DWORD nErrorCode)


Constructor & Destructor Documentation

CRegistry::CRegistry  ) 
 

Definition at line 30 of file Registry.cpp.

CRegistry::~CRegistry  ) 
 

Definition at line 34 of file Registry.cpp.


Member Function Documentation

void CRegistry::DisplayErrorMessageBox LPCTSTR  pszName,
DWORD  nErrorCode
[protected]
 

Definition at line 189 of file Registry.cpp.

References NULL.

Referenced by GetInt(), GetString(), SetInt(), and SetString().

DWORD CRegistry::GetDword LPCTSTR  pszSection,
LPCTSTR  pszName,
DWORD  dwDefault = 0
 

Definition at line 107 of file Registry.cpp.

References GetInt().

Referenced by CSettings::Item::Load().

double CRegistry::GetFloat LPCTSTR  pszSection,
LPCTSTR  pszName,
double  fDefault = 0.0f
 

Definition at line 115 of file Registry.cpp.

References GetString().

Referenced by CSettings::Item::Load().

int CRegistry::GetInt LPCTSTR  pszSection,
LPCTSTR  pszName,
int  nDefault = 0
 

Definition at line 76 of file Registry.cpp.

References DisplayErrorMessageBox().

Referenced by GetDword(), CSettings::Load(), CSettings::LoadList(), CSettings::LoadWindow(), and CSettings::SmartUpgrade().

CString CRegistry::GetString LPCTSTR  pszSection,
LPCTSTR  pszName,
LPCTSTR  pszDefault = NULL
 

Definition at line 41 of file Registry.cpp.

References DisplayErrorMessageBox(), and NULL.

Referenced by GetFloat(), CSettings::Item::Load(), and CSettings::LoadList().

BOOL CRegistry::SetInt LPCTSTR  pszSection,
LPCTSTR  pszName,
int  nValue
 

Definition at line 157 of file Registry.cpp.

References DisplayErrorMessageBox(), and NULL.

Referenced by CSettings::Load(), CSettings::Item::Save(), CSettings::Save(), CSettings::SaveList(), and CSettings::SaveWindow().

BOOL CRegistry::SetString LPCTSTR  pszSection,
LPCTSTR  pszName,
LPCTSTR  pszValue
 

Definition at line 125 of file Registry.cpp.

References DisplayErrorMessageBox(), and NULL.

Referenced by CSettings::Item::Save(), and CSettings::SaveList().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:11 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2