24
21
* @author The BibleTime team
26
23
class CProfileMgr {
31
/** Creates a new profile with the name "name" (first parameter).
32
* @return The profile object
34
CProfile* create( const QString name );
36
* @return a list of available profiles
38
const QList<CProfile*>& profiles();
40
* Removes the profile from the list and from the directory containg the profile files.
42
bool remove( CProfile* p );
44
* Removes the profile from the list and from the directory containg the profile files.
46
bool remove( const QString& );
48
* Returns the profile with the desired name. If there's no such profile 0 is returned.
50
CProfile* profile(const QString&);
52
* Returns the startup profile if it exists, otherwise return 0.
54
CProfile* startupProfile();
56
* Refreshes the profiles available on disk. Use this function to update the list of profiles after another instance of CProfileMgr created a new profile.
61
QList<CProfile*> m_profiles;
62
QString m_profilePath;
63
CProfile* m_startupProfile;
28
/** Creates a new profile with the name "name" (first parameter).
29
* @return The profile object
31
CProfile* create( const QString name );
33
* @return a list of available profiles
35
const QList<CProfile*>& profiles();
37
* Removes the profile from the list and from the directory containg the profile files.
39
bool remove( CProfile* p );
41
* Removes the profile from the list and from the directory containg the profile files.
43
bool remove( const QString& );
45
* Returns the profile with the desired name. If there's no such profile 0 is returned.
47
CProfile* profile(const QString&);
49
* Returns the startup profile if it exists, otherwise return 0.
51
CProfile* startupProfile();
53
* Refreshes the profiles available on disk. Use this function to update the list of profiles after another instance of CProfileMgr created a new profile.
58
QList<CProfile*> m_profiles;
59
QString m_profilePath;
60
CProfile* m_startupProfile;
66
63
} //end of namespace Profile