OpendTect
7.0
|
Temporarily disables a Notifier. More...
Public Member Functions | |
NotifyStopper (NotifierAccess &, const CallBacker *only_for=nullptr) | |
~NotifyStopper () | |
void | disable () |
void | disableNotification () |
void | enable () |
void | enableNotification () |
void | restore () |
Protected Member Functions | |
void | setDisabled (bool) |
Protected Attributes | |
bool | isdisabled_ |
const CallBacker * | onlyfor_ |
NotifierAccess & | thenotif_ |
Temporarily disables a Notifier.
Notifiers can be disabled. To do that temporarily, use NotifyStopper. If the Stopper goes out of scope, the callback is re-enabled. like:
To stop notifications only to a certain object (usually 'this'), pass the object as 2nd argument to the constructor.
<>
NotifyStopper::NotifyStopper | ( | NotifierAccess & | , |
const CallBacker * | only_for = nullptr |
||
) |
NotifyStopper::~NotifyStopper | ( | ) |
|
inline |
void NotifyStopper::disableNotification | ( | ) |
|
inline |
void NotifyStopper::enableNotification | ( | ) |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024