BnTable Class Reference

#include <support/ITable.h>

Inheritance diagram for BnTable:

ITable BBinder IInterface IBinder SAtom SAtom BIndexedTableNode BSchemaTableNode List of all members.

Public Member Functions

virtual SValue Inspect (const sptr< IBinder > &caller, const SValue &which, uint32_t flags=0)
 Probe binder for interface information.
virtual sptr< IInterfaceInterfaceFor (const SValue &descriptor, uint32_t flags=0)
 Retrieve direct interface for this binder.
void PushCellModified (const sptr< ITable > &who, const SString &row, const SString &column, const sptr< IBinder > &entry)
 This event is sent when a cell (data associated with a row and column) in a table is modified.
void PushColumnNames (const SValue &value)
void PushSchema (const SValue &value)
void PushTableChanged (const sptr< ITable > &who, uint32_t flags, const SValue &hints)
 This event is sent whenever some change happens in the table.

Protected Member Functions

virtual sptr< const IBinderAsBinderImpl () const
virtual sptr< IBinderAsBinderImpl ()
 BnTable (const SContext &context)
 BnTable ()
virtual status_t HandleEffect (const SValue &, const SValue &, const SValue &, SValue *)
virtual status_t Transact (uint32_t code, SParcel &data, SParcel *reply, uint32_t flags)
 Low-level data transfer.
virtual ~BnTable ()

Constructor & Destructor Documentation

BnTable  )  [protected]
 

BnTable const SContext context  )  [protected]
 

virtual ~BnTable  )  [protected, virtual]
 


Member Function Documentation

virtual sptr<const IBinder> AsBinderImpl  )  const [protected, virtual]
 

Reimplemented from IInterface.

virtual sptr<IBinder> AsBinderImpl  )  [protected, virtual]
 

Reimplemented from IInterface.

virtual status_t HandleEffect const SValue ,
const SValue ,
const SValue ,
SValue
[protected, virtual]
 

Reimplemented from BBinder.

virtual SValue Inspect const sptr< IBinder > &  caller,
const SValue which,
uint32_t  flags = 0
[virtual]
 

Probe binder for interface information.

Return interfaces implemented by this binder object that are requested by which. This is a composition of all interfaces, expressed as { descriptor -> binder } mappings, which are selected through which.

Much more information on Inspect() can be found at Binder Inspect() Details.

Reimplemented from BBinder.

Reimplemented in BSchemaTableNode, and BIndexedTableNode.

virtual sptr<IInterface> InterfaceFor const SValue descriptor,
uint32_t  flags = 0
[virtual]
 

Retrieve direct interface for this binder.

Given a SValue interface descriptor, return an IInterface implementing it. The default implementation of this function returns NULL, meaning it does not implement a direct interface to it. If the return is non-NULL, you are guaranteed to be able to static_cast<> the returned interface into the requested subclass and have it work.

Note that this is NOT the same as calling Inspect(), which performs conversion between different IBinder objects. This method converts to an IInterface only for this binder object.

Reimplemented from BBinder.

void PushCellModified const sptr< ITable > &  who,
const SString row,
const SString column,
const sptr< IBinder > &  entry
 

This event is sent when a cell (data associated with a row and column) in a table is modified.

Parameters:
[in] who The parent table in which this change occured.
[in] row The name of the row entry that changed.
[in] column The name of the column that changed.
[in] entry The entry itself, either an INode or IDatum.
This informs you of a non-structural change to the table, where the data inside one of its cells has changed. The IBinder entry identifying the changed cell is the same IBinder that is returned by Walk() and IIterator, and follows the same identity rules as defined for those APIs.

void PushColumnNames const SValue value  ) 
 

void PushSchema const SValue value  ) 
 

void PushTableChanged const sptr< ITable > &  who,
uint32_t  flags,
const SValue hints
 

This event is sent whenever some change happens in the table.

Parameters:
[in] who The table that has changed.
[in] flags Provides more information about the change.
[in] hints May provide even more info, but is currently unnused.
This event indicates that something has changed in the table, but not what that change is. If the table is not also pushing another change event (as indicated by the CHANGE_DETAILS_SENT flag), then you can't assuming anything about the current contents of the table.

This event is a superset of the INode::NodeChanged() event -- it tells you about changes both to the rows, as well as the cells inside of each of those rows.

virtual status_t Transact uint32_t  code,
SParcel data,
SParcel reply,
uint32_t  flags
[protected, virtual]
 

Low-level data transfer.

This is the Binder's IPC primitive. It allows you to send a parcel of data to another Binder (possibly in another process or language) and get a parcel of data back. The parcel can contain IBinder objects to transfer references between environments. The code can be any arbitrary value, though some standard codes are defined for parts of the higher-level IBinder protocol (B_EFFECT_TRANSACTION, B_INSPECT_TRANSACTION, etc). The flags are used for internal IPC implementation and must always be set to 0 when calling. If your implementation of Transact() returns an error code (instead of B_OK), that code will be propagated back to the caller WITHOUT any reply data.

Reimplemented from BBinder.


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