3
* This file is part of BibleTime's source code, http://www.bibletime.info/.
5
* Copyright 1999-2006 by the BibleTime developers.
6
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
15
#include "cprofilewindow.h"
22
/** Manages one profile file. Provides functions to save and restore settings of the available display windows.
23
* @author The BibleTime team
27
CProfile(const QString& fileName, const QString& name = QString::null);
31
* Saves the profile to the file given in the constructor.
32
* @param windows The list of windows available in the profile.
34
const bool save( QPtrList<CProfileWindow> windows );
36
* Saves the profile to the file given in the constructor.
40
* Loads the profile from the file given in the constructor.
41
* @return The list of profiled window which exist in the profile.
43
QPtrList<CProfileWindow> load();
45
* Returns the name of this profile.
47
const QString& name();
49
* Returns the filename used for this profile.
51
const QString& filename();
53
* Initializes the XML for the first time (use to create a new profile)
55
void init(const QString);
57
* Chnages the name of this profile.
59
void setName( const QString& );
61
* Returns true if the main window was in fullscreen mode as the profile was saved.
63
const bool fullscreen() const;
65
* Set the parameter to true if the main window coveres the full screen size.
67
void setFullscreen( const bool fullscreen );
69
* Returns true if the main window was maximized as the profile was saved.
71
const bool maximized() const;
73
* Set the parameter to true if the main window is maximized.
75
void setMaximized( const bool maximized );
77
* Sets the geoemtry of the main window
79
void setGeometry( const QRect rect );
81
* Returns the geometry of the main window
83
const QRect geometry();
87
* Loads the basic settings requires for proper operation.
92
QPtrList<CProfileWindow> m_profileWindows;
100
} //end of namespace Profile