DerivedAssetRepositoryDataInterface Class Reference

#include <assets.h>

Inheritance diagram for DerivedAssetRepositoryDataInterface:

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"))
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( DerivedAssetRepositoryDataInterface  ,
MAXON_REFERENCE_NORMAL  ,
"net.maxon.interface.derivedassetrepositorydata"  ,
MAXON_IMPLEMENTATION_MODULE("net.maxon.asset")   
)
private

◆ HandleBaseChanged()

MAXON_METHOD void HandleBaseChanged ( const AssetRepositoryRef &  repo,
const AssetRepositoryRef &  base,
Bool  added 
)

Gets called when the base of the asset repository has been changed.

Parameters
[in]repoThe asset repository which owns the derived data.
[in]baseThe base repository.
[in]addedTrue if base has been added, false if it has been removed.

◆ HandleAssetStored()

MAXON_METHOD void HandleAssetStored ( const AssetDescription &  asset)

Gets called when an asset has been stored.

Parameters
[in]assetThe description of the new asset version.

◆ HandleAssetErased()

MAXON_METHOD void HandleAssetErased ( const AssetDescription &  asset)

Gets called when an asset has been erased.

Parameters
[in]assetThe description of the erased asset version.

◆ HandleAssetUpdated()

MAXON_METHOD void HandleAssetUpdated ( const Asset asset)

Gets called when an asset has been updated.

Parameters
[in]assetThe updated asset.

◆ HandleMetaDataStored()

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.

Parameters
[in]assetThe asset.
[in]metaIdThe identifier of the stored meta data attribute.
[in]kindThe meta data kind.
[in]prevDataThe previous value of the attribute (may be empty).
[in]newDataThe new value of the attribute.

◆ HandleDownloadStateChanged()

MAXON_METHOD void HandleDownloadStateChanged ( const AssetRepositoryRef &  repository,
Bool  finished 
)

Informs all observers of ObservableDownloadStateChanged and calls HandleDownloadStateChanged on all derived repositories.

Parameters
[in]repositoryThe repository.
[in]finishedTrue if finished