Qx v0.6
Qt Extensions Library
Loading...
Searching...
No Matches
Qx::PropertyNotifier Class Reference

The PropertyNotifier class controls the lifecycle of a change callback installed on a Property. More...

#include <qx/core/qx-property.h>

Public Member Functions

 PropertyNotifier (PropertyNotifier &&other) noexcept
 
 ~PropertyNotifier ()
 
PropertyNotifieroperator= (PropertyNotifier &&other) noexcept
 

Friends

template<typename T >
class AbstractBindableProperty
 

Detailed Description

An instance of this class is created when registering a callback on a Property to be notified when the property's value changes, as long as a "lifetime" registration method wasn't used. When that instance instance is destroyed, the callback is unregistered from the property.

Instances of PropertyNotifier can be transferred between C++ scopes using move semantics.

Constructor & Destructor Documentation

◆ PropertyNotifier()

Qx::PropertyNotifier::PropertyNotifier ( PropertyNotifier && other)
noexcept

Move constructs a PropertyNotifier from other.

◆ ~PropertyNotifier()

Qx::PropertyNotifier::~PropertyNotifier ( )

Destroys the notifier, unregistering the callback associated with it from the property the callback was installed on.

Member Function Documentation

◆ operator=()

PropertyNotifier & Qx::PropertyNotifier::operator= ( PropertyNotifier && other)
noexcept

Move assigns the PropertyNotifier from other.


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