![]() |
OpendTect
6.3
|
Temporarily disables a Notifier. More...
Public Member Functions | |
| NotifyStopper (NotifierAccess &, const CallBacker *only_for=0) | |
| ~NotifyStopper () | |
| void | enableNotification () |
| void | disableNotification () |
Protected Member Functions | |
| void | setDisabled (bool) |
Protected Attributes | |
| NotifierAccess & | thenotif_ |
| bool | isdisabled_ |
| const CallBacker * | onlyfor_ |
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 = 0 |
||
| ) |
| NotifyStopper::~NotifyStopper | ( | ) |
| void NotifyStopper::disableNotification | ( | ) |
| void NotifyStopper::enableNotification | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017