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