#include <djv_profiles.h>
Public Member Functions | |
virtual void | reload ()=0 |
virtual bool | sync ()=0 |
virtual bool | isModified () const =0 |
virtual void | backupSave (const String &inFileName) const =0 |
virtual bool | isModifiedExternally () const =0 |
virtual void | enumProfiles (SimpleArray< String > &outProfileNames) const =0 |
virtual AutoPtr< const Profile > | loadProfile (const String &inProfileName) const =0 |
virtual AutoPtr< Profile > | loadProfile (const String &inProfileName)=0 |
virtual void | installProfile (Profile *inProfile, const String &inProfileName=NullString)=0 |
virtual void | removeProfile (const String &inProfileName)=0 |
virtual bool | doesExist (const String &inProfileName) const =0 |
virtual void | renameProfile (const String &inOldProfileName, const String &inNewProfileName)=0 |
virtual | ~ProfileRepository () |
Public Member Functions inherited from Celartem::Referable | |
Referable () | |
void | addRef () const |
void | releaseRef () const |
size_t | getReferenceCount () const |
Static Public Member Functions | |
static AutoPtr< ProfileRepository > | loadRepository (const String &inProfileRepositoryUrl=NullString) |
Static Public Member Functions inherited from Celartem::Referable | |
static void | dumpDbgAllRefCount () |
ProfileRepository manages profiles installed on a machine.
|
inlinevirtual |
Destructor.
|
pure virtual |
Helper method for backup on external file.
inFileName | File name to save the repository content to. |
|
pure virtual |
Determine whether a profile by the name exists or not.
inProfileName | Name of profile. |
true
if a profile by the name already exists; otherwise false
.
|
pure virtual |
Enumerate installed profiles.
outProfileNames | An array which receives the list of profile names. |
|
pure virtual |
Install a new profile to repository.
If the repository is read-only, this method will fail and throw an exception.
inProfile | Pointer to a Profile instance. |
inProfileName | Name of profile. It should not exist on the repository. If this is NULL , this method use the profile's name to install the profile. |
|
pure virtual |
Determine whether the repository is modified (not synchronized) or not.
true
if modified; otherwise false
.
|
pure virtual |
This method determines whether the repository is modified out of the program or not.
This method is useful when running several repository editors.
true
if the repository is externally modified; otherwise false
.
|
pure virtual |
Load a profile.
This method is for read-only purpose.
inProfileName | Name of profile. This is not a file name but one of the names obtained by enumProfiles method. |
|
pure virtual |
Load a profile.
If the profile or the repository is read-only, this method will fail and throw an exception; you should use read-only version of this method.
inProfileName | Name of profile. This is not a file name but one of the names obtained by enumProfiles method. |
|
static |
Load profile repository.
inProfileRepositoryUrl | Reserved; should be NullString for normal purpose. |
|
pure virtual |
Reload the repository.
This method reloads the repository to memory.
|
pure virtual |
Remove an existing profile from repository
inProfileName | Name of profile. |
|
pure virtual |
Rename an existing profile in repository.
inOldProfileName | Existing name of a profile. |
inNewProfileName | New name of the profile; it should not exist. |
|
pure virtual |
Synchronize the repository.
This method confirms that the repository is synchronizes with the instance (the memory instance is written out to the storage.)