summaryrefslogtreecommitdiff
path: root/NSCmpts/NSSettings.h
diff options
context:
space:
mode:
Diffstat (limited to 'NSCmpts/NSSettings.h')
-rw-r--r--NSCmpts/NSSettings.h32
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_)