60: m_changeablePtr(changeablePtr),
61 m_changeSet(*changeSetPtr)
63 Q_ASSERT(changeSetPtr !=
NULL);
65 if (m_changeablePtr !=
NULL){
73 if (m_changeablePtr !=
NULL){
Help class which provides the automatic update mechanism of the model.
bool IsValid() const
Check if this pointer is valid.
void Abort()
Similar like method Reset(), but it tries to avoid the update.
CChangeNotifier(IChangeable *changeablePtr, const IChangeable::ChangeSet *changeSetPtr=&IChangeable::GetAnyChange())
Constructs the notifier.
void Reset()
Call update on attached object and detach it.
Set of change flags (its IDs).
Common interface for data model objects, which can be changed.
virtual void BeginChanges(const ChangeSet &changeSet)
Starts the change transaction.
virtual void EndChanges(const ChangeSet &changeSet)
Ends the change transaction.
static const ChangeSet & GetAnyChange()
Get anonymous change set.