BNodeDelegate Class Reference
[Data Model]

#include <storage/NodeDelegate.h>

Inheritance diagram for BNodeDelegate:

BGenericNode BnNodeObserver BnNode INodeObserver BBinder INode BBinder IInterface IBinder IInterface IBinder SAtom SAtom SAtom SAtom BCatalogDelegate List of all members.

Detailed Description

Provides base implementation of delegations for INode.

Given an existing object that implement the INode interfaces, provides a new object that delegates to the existing implementation.

Note:
This class only delegates the given base object. It will not create a wrapper for any objects retrieved from it, such as IDatums or other INodes.
See BCatalogDelegate for a class that delegates the INode, IIterable, and ICatalog interfaces.


INode

Delegation to INode interface. Uses the base implementation of BGenericNode for part parsing and meta-data. Note that this default implementation hides all except the default meta-data entries.

sptr< INodeBaseNode () const
 Returns original INode object, or NULL if that interface was not available.
virtual nsecs_t CreationDateLocked () const
 Returns original INode object, or NULL if that interface was not available.
virtual status_t LookupEntry (const SString &entry, uint32_t flags, SValue *node)
 Returns original INode object, or NULL if that interface was not available.
virtual SString MimeTypeLocked () const
 Returns original INode object, or NULL if that interface was not available.
virtual nsecs_t ModifiedDateLocked () const
 Returns original INode object, or NULL if that interface was not available.
virtual status_t StoreCreationDateLocked (nsecs_t value)
 Returns original INode object, or NULL if that interface was not available.
virtual status_t StoreMimeTypeLocked (const SString &value)
 Returns original INode object, or NULL if that interface was not available.
virtual status_t StoreModifiedDateLocked (nsecs_t value)
 Returns original INode object, or NULL if that interface was not available.

Bookkeeping

Creation, destruction, locking, etc.

 BNodeDelegate (const SContext &context, const sptr< INode > &base)
SContext Context ()
 Disambiguate.
virtual status_t Link (const sptr< IBinder > &target, const SValue &bindings, uint32_t flags)
 Perform linking with base object.
virtual status_t Unlink (const wptr< IBinder > &target, const SValue &bindings, uint32_t flags)
 Remove linking with base object.
virtual ~BNodeDelegate ()

Event Dispatching

Handling events from the base INode object. The default implementation simply pushes the same event from this object.

virtual void EntryCreated (const sptr< INode > &node, const SString &name, const sptr< IBinder > &entry)
 See INode::EntryCreated.
virtual void EntryModified (const sptr< INode > &node, const SString &name, const sptr< IBinder > &entry)
 See INode::EntryModified.
virtual void EntryRemoved (const sptr< INode > &node, const SString &name)
 See INode::EntryRemoved.
virtual void EntryRenamed (const sptr< INode > &node, const SString &old_name, const SString &new_name, const sptr< IBinder > &entry)
 See INode::EntryRenamed.
virtual void NodeChanged (const sptr< INode > &node, uint32_t flags, const SValue &hints)
 See INode::NodeChanged.


Constructor & Destructor Documentation

BNodeDelegate const SContext context,
const sptr< INode > &  base
 

~BNodeDelegate  )  [protected, virtual]
 


Member Function Documentation

sptr<INode> BaseNode  )  const [inline]
 

Returns original INode object, or NULL if that interface was not available.

SContext Context  )  [inline]
 

Disambiguate.

Reimplemented in BCatalogDelegate.

nsecs_t CreationDateLocked  )  const [virtual]
 

Returns original INode object, or NULL if that interface was not available.

Implements BGenericNode.

void EntryCreated const sptr< INode > &  node,
const SString name,
const sptr< IBinder > &  entry
[virtual]
 

See INode::EntryCreated.

Implements INodeObserver.

void EntryModified const sptr< INode > &  node,
const SString name,
const sptr< IBinder > &  entry
[virtual]
 

See INode::EntryModified.

Implements INodeObserver.

void EntryRemoved const sptr< INode > &  node,
const SString name
[virtual]
 

See INode::EntryRemoved.

Implements INodeObserver.

void EntryRenamed const sptr< INode > &  node,
const SString old_name,
const SString new_name,
const sptr< IBinder > &  entry
[virtual]
 

See INode::EntryRenamed.

Implements INodeObserver.

status_t Link const sptr< IBinder > &  target,
const SValue bindings,
uint32_t  flags
[virtual]
 

Perform linking with base object.

Reimplemented from BBinder.

status_t LookupEntry const SString entry,
uint32_t  flags,
SValue node
[virtual]
 

Returns original INode object, or NULL if that interface was not available.

Implements BGenericNode.

SString MimeTypeLocked  )  const [virtual]
 

Returns original INode object, or NULL if that interface was not available.

Reimplemented from BGenericNode.

nsecs_t ModifiedDateLocked  )  const [virtual]
 

Returns original INode object, or NULL if that interface was not available.

Implements BGenericNode.

void NodeChanged const sptr< INode > &  node,
uint32_t  flags,
const SValue hints
[virtual]
 

See INode::NodeChanged.

Implements INodeObserver.

status_t StoreCreationDateLocked nsecs_t  value  )  [virtual]
 

Returns original INode object, or NULL if that interface was not available.

Reimplemented from BGenericNode.

status_t StoreMimeTypeLocked const SString value  )  [virtual]
 

Returns original INode object, or NULL if that interface was not available.

Reimplemented from BGenericNode.

status_t StoreModifiedDateLocked nsecs_t  value  )  [virtual]
 

Returns original INode object, or NULL if that interface was not available.

Reimplemented from BGenericNode.

status_t Unlink const wptr< IBinder > &  target,
const SValue bindings,
uint32_t  flags
[virtual]
 

Remove linking with base object.

Reimplemented from BBinder.


The documentation for this class was generated from the following files: