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.
21
/** The manager for profiles.
22
* Provides functions to create, delete, save and load profiles.
23
* @author The BibleTime team
30
/** Creates a new profile with the name "name" (first parameter).
31
* @return The profile object
33
CProfile* create( const QString name );
35
* @return a list of available profiles
37
const QPtrList<CProfile>& profiles();
39
* Removes the profile from the list and from the directory containg the profile files.
44
* Removes the profile from the list and from the directory containg the profile files.
49
* Returns the profile with the desired name. If there's no such profile 0 is returned.
51
CProfile* profile(const QString&);
53
* Returns the startup profile if it exists, otherwise return 0.
55
CProfile* startupProfile();
57
* Refreshes the profiles available on disk. Use this function to update the list of profiles after another instance of CProfileMgr created a new profile.
62
QPtrList<CProfile> m_profiles;
63
QString m_profilePath;
64
CProfile* m_startupProfile;
67
} //end of namespace Profile