#include <kanzi/core.ui/node/content_reference.hpp>
|
bool | m_attached |
| Current resource reference state. Note that attach() is only called once. More...
|
|
◆ CallbackType
template<typename TResourceType >
◆ ResourceTypePtr
template<typename TResourceType >
◆ ContentReference() [1/2]
template<typename TResourceType >
◆ ContentReference() [2/2]
template<typename TResourceType >
◆ ~ContentReference()
template<typename TResourceType >
◆ operator bool_type()
template<typename TResourceType >
◆ setResource()
template<typename TResourceType >
Sets the resource-ID of the content reference.
If the current reference is attached, acquires the resource.
◆ getResourceId()
template<typename TResourceType >
Gets the resource ID the content reference is tracking.
- Returns
- Resource ID being tracked.
◆ attachOverride()
template<typename TResourceType >
Attaches the content reference.
Acquires the resource referenced by the resource ID.
Note: The attach() is only called once.
Implements kanzi::AbstractResourceReference.
◆ onResourceChangeOverride()
template<typename TResourceType >
This method is called when the resource referenced by the existing resource-ID is changed.
Acquires the new resource and executes the callback only if the the new resource is not the same as before.
Note: This method is only called on attached resource references.
Implements kanzi::AbstractResourceReference.
◆ detachOverride()
template<typename TResourceType >
◆ getResource()
template<typename TResourceType >
◆ makeLocal()
template<typename TResourceType >
Clone reference to be an internal copy.
Default implementation clones nothing, and returns an empty shared pointer.
◆ getUserResource()
template<typename TResourceType >
Access user resource.
- Returns
- User resource shared pointer.
◆ resetUserResource()
template<typename TResourceType >
◆ setUserResource()
template<typename TResourceType >
Set user resource.
- Parameters
-
userResource | New user resource. |
◆ setCallback()
template<typename TResourceType >
◆ get()
template<typename TResourceType >
◆ operator->()
template<typename TResourceType >
◆ operator*()
template<typename TResourceType >
◆ resolve() [1/2]
template<typename TResourceType >
◆ resolve() [2/2]
template<typename TResourceType >
◆ updateResource()
template<typename TResourceType >
◆ updateChangeFlags()
template<typename TResourceType >
◆ notifyCallback()
template<typename TResourceType >
◆ updateResolveNotify()
template<typename TResourceType >
The documentation for this class was generated from the following file: