#include <kanzi/core.ui/node/content_reference.hpp>
Public Types | |
typedef function< void()> | CallbackType |
typedef shared_ptr< TResourceType > | ResourceTypePtr |
Public Member Functions | |
operator bool_type () const | |
ContentReference (Node &thisObject) | |
~ContentReference () | |
void | setResource (const ResourceID &id) |
virtual void | onIdChanged () KZ_OVERRIDE |
virtual void | onResourceChanged () KZ_OVERRIDE |
virtual void | release () KZ_OVERRIDE |
virtual ResourceSharedPtr | getResource () KZ_OVERRIDE |
ResourceTypePtr | makeLocal () |
Clone reference to be an internal copy. More... | |
ResourceTypePtr | getUserResource () const |
Access user resource. More... | |
void | resetUserResource () |
Clear user resource. More... | |
void | setUserResource (ResourceTypePtr userResource) |
Set user resource. More... | |
void | setCallback (CallbackType callback) |
ResourceTypePtr | get () const |
TResourceType * | operator-> () const |
TResourceType & | operator* () const |
Protected Member Functions | |
ResourceTypePtr & | resolve () |
const ResourceTypePtr & | resolve () const |
void | updateResource () |
void | updateChangeFlags () const |
void | notifyCallback () |
Protected Member Functions inherited from kanzi::AbstractResourceReference | |
virtual | ~AbstractResourceReference () |
typedef function<void()> kanzi::ContentReference< TResourceType >::CallbackType |
typedef shared_ptr<TResourceType> kanzi::ContentReference< TResourceType >::ResourceTypePtr |
|
explicit |
kanzi::ContentReference< TResourceType >::~ContentReference | ( | ) |
|
inline |
|
inline |
|
inlinevirtual |
Implements kanzi::AbstractResourceReference.
|
inlinevirtual |
Implements kanzi::AbstractResourceReference.
|
inlinevirtual |
Implements kanzi::AbstractResourceReference.
|
inlinevirtual |
Implements kanzi::AbstractResourceReference.
|
inline |
Clone reference to be an internal copy.
Default implementation clones nothing, and returns an empty shared pointer.
|
inline |
Access user resource.
|
inline |
Clear user resource.
|
inline |
Set user resource.
userResource | New user resource. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
protected |
|
protected |
|
inlineprotected |