diff options
author | Stef Walter <stef@thewalter.net> | 2003-09-17 19:07:23 +0000 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2003-09-17 19:07:23 +0000 |
commit | 3f95d417d9e623ac0c74df8ef11d7a01846392dd (patch) | |
tree | 45ec73f2dc07eafd7f41a6f62a8cdfbaa279469f /NSCmpts/NSSettings.h |
Diffstat (limited to 'NSCmpts/NSSettings.h')
-rw-r--r-- | NSCmpts/NSSettings.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/NSCmpts/NSSettings.h b/NSCmpts/NSSettings.h new file mode 100644 index 0000000..ab90341 --- /dev/null +++ b/NSCmpts/NSSettings.h @@ -0,0 +1,32 @@ +// NSSettings.h: interface for the CSettings class. +// +////////////////////////////////////////////////////////////////////// + +#if !defined(AFX_NSSETTINGS_H__4D76E505_722D_11D3_BF84_0020182B97FC__INCLUDED_) +#define AFX_NSSETTINGS_H__4D76E505_722D_11D3_BF84_0020182B97FC__INCLUDED_ + +#include <settings.h> +#include "../Common/CmptData.h" + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +class CNightSecSettings : + public settings, + public CPropertyBag +{ +public: + virtual HRESULT erase(const string& sKeyName) + { return DeleteProperty(sKeyName); }; + virtual HRESULT write_string(const string& sKeyName, const string& sValue) + { return WriteString(sKeyName, sValue); }; + virtual HRESULT write_int(const string& sKeyName, int nValue) + { return WriteInt(sKeyName, nValue); }; + virtual string get_string(const string& sKeyName, const string& sDefault) const + { return GetString(sKeyName, sDefault); }; + virtual int get_int(const string& sKeyName, int nDefault) const + { return GetInt(sKeyName, nDefault); } +}; + +#endif // !defined(AFX_NSSETTINGS_H__4D76E505_722D_11D3_BF84_0020182B97FC__INCLUDED_) |