QGIS API Documentation
3.2.0-Bonn (bc43194)
|
Temporarily blocks the application QgsMessageLog (see QgsApplication::messageLog()) from emitting the messageReceived( bool ) signal for the lifetime of the object. More...
#include <qgsmessagelog.h>
Public Member Functions | |
QgsMessageLogNotifyBlocker () | |
Constructor for QgsMessageLogNotifyBlocker. More... | |
QgsMessageLogNotifyBlocker (const QgsMessageLogNotifyBlocker &other)=delete | |
QgsMessageLogNotifyBlocker cannot be copied. More... | |
~QgsMessageLogNotifyBlocker () | |
QgsMessageLogNotifyBlocker & | operator= (const QgsMessageLogNotifyBlocker &other)=delete |
QgsMessageLogNotifyBlocker cannot be copied. More... | |
Temporarily blocks the application QgsMessageLog (see QgsApplication::messageLog()) from emitting the messageReceived( bool ) signal for the lifetime of the object.
Using this blocker allows messages to be logged without causing user interface hints flagging message log errors to be created.
QgsMessageLogNotifyBlocker supports "stacked" blocking, so two QgsMessageLogNotifyBlocker created will both need to be destroyed before the messageReceived( bool ) signal is emitted again.
Definition at line 103 of file qgsmessagelog.h.
QgsMessageLogNotifyBlocker::QgsMessageLogNotifyBlocker | ( | ) |
Constructor for QgsMessageLogNotifyBlocker.
This will block the log from emitting the messageReceived( bool ) signal for the lifetime of this object.
Definition at line 62 of file qgsmessagelog.cpp.
|
delete |
QgsMessageLogNotifyBlocker cannot be copied.
QgsMessageLogNotifyBlocker::~QgsMessageLogNotifyBlocker | ( | ) |
Definition at line 67 of file qgsmessagelog.cpp.
|
delete |
QgsMessageLogNotifyBlocker cannot be copied.