1 /////////////////////////////////////////////////////////////////////////////
3 // This file is part of ResizableLib
4 // http://sourceforge.net/projects/resizablelib
6 // Copyright (C) 2000-2004 by Paolo Messina
7 // http://www.geocities.com/ppescher - mailto:ppescher@hotmail.com
9 // The contents of this file are subject to the Artistic License (the "License").
10 // You may not use this file except in compliance with the License.
11 // You may obtain a copy of the License at:
12 // http://www.opensource.org/licenses/artistic-license.html
14 // If you find this code useful, credits would be nice!
16 /////////////////////////////////////////////////////////////////////////////
20 * @brief Interface for the CResizableState class.
23 #if !defined(AFX_RESIZABLESTATE_H__INCLUDED_)
24 #define AFX_RESIZABLESTATE_H__INCLUDED_
28 #endif // _MSC_VER > 1000
30 /*! @addtogroup CoreComponents
34 //! @brief Provides basic persisting capabilities
36 * Derive from this class to persist user interface settings, or anything
37 * suitable. The base implementation uses the application profile, which can
38 * be set to either the Registry or an INI File. Other storing methods
39 * can be implemented in derived classes.
43 static CString m_sDefaultStorePath
;
48 //! @brief Get default path where state is stored
49 static LPCTSTR
GetDefaultStateStore();
51 //! @brief Set default path where state is stored
52 static void SetDefaultStateStore(LPCTSTR szPath
);
54 //! @brief Get current path where state is stored
55 LPCTSTR
GetStateStore();
57 //! @brief Set current path where state is stored
58 void SetStateStore(LPCTSTR szPath
);
60 //! @name Overridables
63 //! @brief Read state information
64 virtual BOOL
ReadState(LPCTSTR szId
, CString
& rsState
);
66 //! @brief Write state information
67 virtual BOOL
WriteState(LPCTSTR szId
, LPCTSTR szState
);
73 virtual ~CResizableState();
77 #endif // !defined(AFX_RESIZABLESTATE_H__INCLUDED_)