#include <hostprofiles.h>
Public Member Functions | |
int | loadHostProfiles () |
Load host profiles from disk. | |
int | saveHostProfiles () |
Save all known host profiles to disk. | |
const QStringList | getHostProfileNames () const |
Returns a list of all available host profile names. | |
int | insertProfile (const NHostInfo &info) |
Inserts a new host profile. | |
bool | exists (const QString &name) const |
Checks to see if a profile exists. | |
const NHostInfo | findProfile (const QString &name) const |
Locate the host profile corresponding to name. | |
Static Public Member Functions | |
HostProfileManager & | instance () |
Returns a reference to the host profile manager object. | |
const HostProfileManager & | const_instance () |
Returns a const reference to the host profile manager object. | |
Protected Member Functions | |
HostProfileManager () | |
Initialize the host profile manager. | |
~HostProfileManager () | |
Destructor. | |
Friends | |
class | std::auto_ptr< HostProfileManager > |
Gives auto_ptr<nvemSettings> access to our destructor. |
Handles the loading/saving of the lists, and keeps the list in memory for quick access. In the future, it may only parse for available profiles and load on demand.
|
Initialize the host profile manager.
|
|
Destructor.
|
|
Returns a const reference to the host profile manager object.
|
|
Checks to see if a profile exists. name must be non-empty/null.
|
|
Locate the host profile corresponding to name.
|
|
Returns a list of all available host profile names.
|
|
Inserts a new host profile. Checks if the profile exists() first, and inserts it if it does not.
|
|
Returns a reference to the host profile manager object.
|
|
Load host profiles from disk. In the future, this may accept a parameter for an alternate file.
|
|
Save all known host profiles to disk. In the future, this may accept a parameter for an alternate file.
|
|
Gives auto_ptr<nvemSettings> access to our destructor.
|