Qt 4.8
|
#include <qdeclarativebinding_p.h>
Public Types | |
enum | DestroyMode { DisconnectBinding, KeepBindingConnected } |
enum | DisconnectMode { DisconnectOne, DisconnectAll } |
typedef QWeakPointer< QDeclarativeAbstractBinding > | Pointer |
enum | Type { PropertyBinding, ValueTypeProxy } |
Public Functions | |
void | addToObject (QObject *, int) |
Add this binding to object. More... | |
virtual Type | bindingType () const |
virtual void | destroy (DestroyMode mode=DisconnectBinding) |
Destroy the binding. More... | |
virtual void | disconnect (DisconnectMode disconnectMode)=0 |
virtual QString | expression () const |
QObject * | object () const |
int | propertyIndex () const |
QDeclarativeAbstractBinding () | |
void | removeFromObject () |
Remove the binding from the object. More... | |
void | setEnabled (bool e) |
virtual void | setEnabled (bool, QDeclarativePropertyPrivate::WriteFlags)=0 |
void | update () |
virtual void | update (QDeclarativePropertyPrivate::WriteFlags)=0 |
Static Public Functions | |
static Pointer | getPointer (QDeclarativeAbstractBinding *p) |
Protected Functions | |
void | clear () |
virtual | ~QDeclarativeAbstractBinding () |
Private Functions | |
Pointer | weakPointer () |
Definition at line 67 of file qdeclarativebinding_p.h.
Definition at line 70 of file qdeclarativebinding_p.h.
Enumerator | |
---|---|
DisconnectBinding | |
KeepBindingConnected |
Definition at line 74 of file qdeclarativebinding_p.h.
Enumerator | |
---|---|
PropertyBinding | |
ValueTypeProxy |
Definition at line 107 of file qdeclarativebinding_p.h.
QDeclarativeAbstractBinding::QDeclarativeAbstractBinding | ( | ) |
Definition at line 60 of file qdeclarativebinding.cpp.
|
protectedvirtual |
Definition at line 65 of file qdeclarativebinding.cpp.
void QDeclarativeAbstractBinding::addToObject | ( | QObject * | object, |
int | index | ||
) |
Add this binding to object.
This transfers ownership of the binding to the object, marks the object's property as being bound.
However, it does not enable the binding itself or call update() on it.
Definition at line 97 of file qdeclarativebinding.cpp.
Referenced by addToObject(), QDeclarativePropertyPrivate::setBinding(), and QDeclarativePropertyPrivate::setBindingNoEnable().
|
inlinevirtual |
Reimplemented in QDeclarativeValueTypeProxyBinding.
Definition at line 108 of file qdeclarativebinding_p.h.
Referenced by addToObject(), QDeclarativePropertyPrivate::binding(), QDeclarativePropertyPrivate::setBinding(), and QDeclarativePropertyPrivate::setBindingNoEnable().
|
protected |
Definition at line 187 of file qdeclarativebinding.cpp.
Referenced by destroy().
|
virtual |
Destroy the binding.
Use this instead of calling delete.
Bindings are free to implement their own memory management, so the delete operator is not necessarily safe. The default implementation clears the binding, removes it from the object and calls delete.
Reimplemented in QDeclarativeCompiledBindingsPrivate::Binding.
Definition at line 78 of file qdeclarativebinding.cpp.
Referenced by QDeclarativeState::apply(), QDeclarativeTransitionManager::cancel(), QDeclarativeState::changeBindingInRevertList(), QDeclarativePropertyChanges::changeExpression(), QDeclarativePropertyChanges::changeValue(), QDeclarativeData::destroyed(), QDeclarativeAnchorChanges::execute(), QDeclarativeVMEMetaObject::metaCall(), QDeclarativeState::removeAllEntriesFromRevertList(), removeBindingOnProperty(), QDeclarativeValueTypeProxyBinding::removeBindings(), QDeclarativeState::removeEntryFromRevertList(), QDeclarativeEngineDebugService::resetBinding(), QDeclarativeEngineDebugService::setBinding(), QDeclarativePropertyPrivate::setBinding(), QDeclarativePropertyPrivate::setBindingNoEnable(), QDeclarativeValueTypeScriptClass::setProperty(), QDeclarativeObjectScriptClass::setProperty(), QDeclarativePropertyPrivate::writeValueProperty(), and QDeclarativeValueTypeProxyBinding::~QDeclarativeValueTypeProxyBinding().
|
pure virtual |
Implemented in QDeclarativeCompiledBindingsPrivate::Binding, QDeclarativeBinding, and QDeclarativeValueTypeProxyBinding.
Referenced by destroy(), and QDeclarativeData::disconnectNotifiers().
|
virtual |
Reimplemented in QDeclarativeBinding.
Definition at line 195 of file qdeclarativebinding.cpp.
Referenced by QDeclarativeEngineDebugService::propertyData().
|
inlinestatic |
Definition at line 122 of file qdeclarativebinding_p.h.
Referenced by QDeclarativeState::apply(), QDeclarativeSimpleAction::operator=(), QDeclarativeSimpleAction::QDeclarativeSimpleAction(), and QDeclarativeSimpleAction::setBinding().
QObject * QDeclarativeAbstractBinding::object | ( | ) | const |
int QDeclarativeAbstractBinding::propertyIndex | ( | ) | const |
Definition at line 205 of file qdeclarativebinding.cpp.
Referenced by addToObject(), QDeclarativePropertyPrivate::binding(), QDeclarativeValueTypeProxyBinding::binding(), QDeclarativeValueTypeProxyBinding::removeBindings(), removeFromObject(), QDeclarativePropertyPrivate::setBinding(), and QDeclarativePropertyPrivate::setBindingNoEnable().
void QDeclarativeAbstractBinding::removeFromObject | ( | ) |
Remove the binding from the object.
Definition at line 151 of file qdeclarativebinding.cpp.
Referenced by addToObject(), destroy(), QDeclarativePropertyPrivate::setBinding(), and QDeclarativePropertyPrivate::setBindingNoEnable().
|
inline |
Definition at line 113 of file qdeclarativebinding_p.h.
Referenced by QDeclarativePropertyChanges::changeExpression(), QDeclarativePropertyChanges::changeValue(), QDeclarativeComponentPrivate::complete(), QDeclarativeValueTypeProxyBinding::recursiveDisable(), QDeclarativeValueTypeProxyBinding::recursiveEnable(), QDeclarativePropertyPrivate::setBinding(), setEnabled(), and QDeclarativeValueTypeProxyBinding::~QDeclarativeValueTypeProxyBinding().
|
pure virtual |
Implemented in QDeclarativeCompiledBindingsPrivate::Binding, QDeclarativeBinding, and QDeclarativeValueTypeProxyBinding.
Definition at line 210 of file qdeclarativebinding.cpp.
|
inline |
|
pure virtual |
Implemented in QDeclarativeCompiledBindingsPrivate::Binding, QDeclarativeBinding, and QDeclarativeValueTypeProxyBinding.
|
private |
Definition at line 179 of file qdeclarativebinding.cpp.
Referenced by getPointer().
|
friend |
Definition at line 132 of file qdeclarativebinding_p.h.
|
friend |
Definition at line 131 of file qdeclarativebinding_p.h.
|
friend |
Definition at line 134 of file qdeclarativebinding_p.h.
|
friend |
Definition at line 133 of file qdeclarativebinding_p.h.
Referenced by addToObject().
|
friend |
Definition at line 135 of file qdeclarativebinding_p.h.
|
friend |
Definition at line 136 of file qdeclarativebinding_p.h.
|
private |
Definition at line 140 of file qdeclarativebinding_p.h.
Referenced by clear(), QDeclarativeComponentPrivate::complete(), and ~QDeclarativeAbstractBinding().
|
private |
Definition at line 142 of file qdeclarativebinding_p.h.
Referenced by addToObject(), QDeclarativePropertyPrivate::binding(), QDeclarativeValueTypeProxyBinding::binding(), QDeclarativeData::destroyed(), QDeclarativeData::disconnectNotifiers(), QDeclarativeValueTypeProxyBinding::recursiveDisable(), QDeclarativeValueTypeProxyBinding::recursiveEnable(), QDeclarativeValueTypeProxyBinding::removeBindings(), removeFromObject(), QDeclarativePropertyPrivate::setBinding(), and QDeclarativePropertyPrivate::setBindingNoEnable().
|
private |
Definition at line 138 of file qdeclarativebinding_p.h.
Referenced by addToObject(), object(), and removeFromObject().
|
private |
Definition at line 141 of file qdeclarativebinding_p.h.
Referenced by addToObject(), QDeclarativeData::destroyed(), QDeclarativeValueTypeProxyBinding::removeBindings(), removeFromObject(), and ~QDeclarativeAbstractBinding().
|
private |
Definition at line 139 of file qdeclarativebinding_p.h.
Referenced by addToObject(), propertyIndex(), and removeFromObject().
|
private |
Definition at line 143 of file qdeclarativebinding_p.h.
Referenced by weakPointer().