Configuration profile. More...
#include <IvTune/IvTuneExtender/IvtProfile.h>
Public Member Functions | |
void | activate () |
Activate this profile and its associated extensions. | |
void | addExtension (IvtExtension *extension, IvtProfileSetting *preference) |
Add the given extension and its preferences to this profile. | |
void | addIncludeProfile (const SbString &profileName) |
Include the specified profile in this profile. | |
void | deactivate () |
Deactivate this profile and its associated extensions. | |
const std::map< IvtExtension *, IvtProfileSetting * > & | getExtensions () const |
Returns a map of the extensions and their associated preferences for this profile. | |
const std::list< SbString > & | getIncludeProfile () const |
Returns a list of names of the profiles included by the current profile. | |
SbString | getName () const |
Returns the name of this profile. | |
SbBool | isActive () const |
Returns true if this profile is active. | |
void | removeExtension (IvtExtension *extension) |
Remove the given extension. | |
IvtProfile (const SbString &name) | |
Constructor. | |
virtual | ~IvtProfile () |
Destructor. | |
This class handles IvTune extensions activated by a profile.
Definition at line 68 of file IvtProfile.h.
IvtProfile::IvtProfile | ( | const SbString & | name | ) |
Constructor.
name | the name of this profile. |
|
virtual |
Destructor.
void IvtProfile::activate | ( | ) |
Activate this profile and its associated extensions.
It also sets the preferences associated with the extensions.
void IvtProfile::addExtension | ( | IvtExtension * | extension, |
IvtProfileSetting * | preference | ||
) |
Add the given extension and its preferences to this profile.
extension | the extension to add. |
preference | the preference associated to the extension. |
void IvtProfile::addIncludeProfile | ( | const SbString & | profileName | ) |
Include the specified profile in this profile.
profileName | the name of the profile to include. |
void IvtProfile::deactivate | ( | ) |
Deactivate this profile and its associated extensions.
const std::map< IvtExtension *, IvtProfileSetting * > & IvtProfile::getExtensions | ( | ) | const |
Returns a map of the extensions and their associated preferences for this profile.
const std::list< SbString > & IvtProfile::getIncludeProfile | ( | ) | const |
Returns a list of names of the profiles included by the current profile.
SbString IvtProfile::getName | ( | ) | const |
Returns the name of this profile.
SbBool IvtProfile::isActive | ( | ) | const |
Returns true if this profile is active.
void IvtProfile::removeExtension | ( | IvtExtension * | extension | ) |
Remove the given extension.
extension | the extension to remove. |