Connects a GUIObject to the DataPool. DataPoolConnectors are used to observe values within the DataPool. GUIObjects, which are observing entries in the datapool must have a DataPoolConnector. A DataPoolConnector will be notified of changes to the DataPool via the OnNotification(DataPoolEntry&) Interface, and will notify its observers via the NotifyObservers (const CGUIValue&, const CGUIObject* const, const eC_UInt, const eC_UInt) interface if the value of its GUIObject changes.
More...
#include <GUIDataPool.h>
Connects a GUIObject to the DataPool. DataPoolConnectors are used to observe values within the DataPool. GUIObjects, which are observing entries in the datapool must have a DataPoolConnector. A DataPoolConnector will be notified of changes to the DataPool via the OnNotification(DataPoolEntry&) Interface, and will notify its observers via the NotifyObservers (const CGUIValue&, const CGUIObject* const, const eC_UInt, const eC_UInt) interface if the value of its GUIObject changes.
| The "data pool" module is providing all means for on the fly data updates of GUI controls. It supports automatic notification on data updates and enables easy data binding. The "data pool" offers connectors to attach single variables, arrays or even complex data structure including databases. Furthermore, the "data pool" ensures that all data access is performed Thread Save (Class: CGUIDataPool).
|
◆ CDataPoolConnector()
CDataPoolConnector::CDataPoolConnector |
( |
CGUIObject * |
pkParentObject = NULL | ) |
|
|
inline |
Constructs a DataPoolConnector and attaches it to the given Object
- Parameters
-
pkParentObject | Pointer to object to which the DataPoolConnector shall be attached |
◆ OnNotification()
virtual void CDataPoolConnector::OnNotification |
( |
CDataPoolEntry & |
kObservedValue | ) |
|
|
virtual |
Called by the DataPool if an entry has changed
- Parameters
-
kObservedValue | DataPoolEntry contain the updated value(s) |
◆ SetParentObject()
void CDataPoolConnector::SetParentObject |
( |
CGUIObject * |
pkParentObject | ) |
|
|
inline |
Sets the pointer to the parent CGUIObject to which this DataPoolConnector is attached
- Parameters
-
pkParentObject | Pointer to object to which the DataPoolConnector shall be attached |
The documentation for this class was generated from the following file: