#include <assets.h>
Public Member Functions | |
MAXON_METHOD void | HandleBaseChanged (const AssetRepositoryRef &repo, const AssetRepositoryRef &base, Bool added) |
MAXON_METHOD void | HandleAssetStored (const AssetDescription &asset) |
MAXON_METHOD void | HandleAssetErased (const AssetDescription &asset) |
MAXON_METHOD void | HandleAssetUpdated (const Asset &asset) |
MAXON_METHOD void | HandleMetaDataStored (const AssetDescription &asset, const InternedId &metaId, AssetMetaDataInterface::KIND kind, const Data &prevData, const Data &newData) |
MAXON_METHOD void | HandleDownloadStateChanged (const AssetRepositoryRef &repository, Bool finished) |
Private Member Functions | |
MAXON_INTERFACE (DerivedAssetRepositoryDataInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.derivedassetrepositorydata", MAXON_IMPLEMENTATION_MODULE("net.maxon.asset")) | |
|
private |
MAXON_METHOD void HandleBaseChanged | ( | const AssetRepositoryRef & | repo, |
const AssetRepositoryRef & | base, | ||
Bool | added | ||
) |
Gets called when the base of the asset repository has been changed.
[in] | repo | The asset repository which owns the derived data. |
[in] | base | The base repository. |
[in] | added | True if base has been added, false if it has been removed. |
MAXON_METHOD void HandleAssetStored | ( | const AssetDescription & | asset | ) |
Gets called when an asset has been stored.
[in] | asset | The description of the new asset version. |
MAXON_METHOD void HandleAssetErased | ( | const AssetDescription & | asset | ) |
Gets called when an asset has been erased.
[in] | asset | The description of the erased asset version. |
MAXON_METHOD void HandleAssetUpdated | ( | const Asset & | asset | ) |
Gets called when an asset has been updated.
[in] | asset | The updated asset. |
MAXON_METHOD void HandleMetaDataStored | ( | const AssetDescription & | asset, |
const InternedId & | metaId, | ||
AssetMetaDataInterface::KIND | kind, | ||
const Data & | prevData, | ||
const Data & | newData | ||
) |
Gets called when meta data has been stored.
[in] | asset | The asset. |
[in] | metaId | The identifier of the stored meta data attribute. |
[in] | kind | The meta data kind. |
[in] | prevData | The previous value of the attribute (may be empty). |
[in] | newData | The new value of the attribute. |
MAXON_METHOD void HandleDownloadStateChanged | ( | const AssetRepositoryRef & | repository, |
Bool | finished | ||
) |
Informs all observers of ObservableDownloadStateChanged and calls HandleDownloadStateChanged on all derived repositories.
[in] | repository | The repository. |
[in] | finished | True if finished |