QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsMessageLogNotifyBlocker Class Reference

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.
 
 QgsMessageLogNotifyBlocker (const QgsMessageLogNotifyBlocker &other)=delete
 
 ~QgsMessageLogNotifyBlocker ()
 
QgsMessageLogNotifyBlockeroperator= (const QgsMessageLogNotifyBlocker &other)=delete
 

Detailed Description

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.

Since
QGIS 3.2

Definition at line 101 of file qgsmessagelog.h.

Constructor & Destructor Documentation

◆ QgsMessageLogNotifyBlocker() [1/2]

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 83 of file qgsmessagelog.cpp.

◆ QgsMessageLogNotifyBlocker() [2/2]

QgsMessageLogNotifyBlocker::QgsMessageLogNotifyBlocker ( const QgsMessageLogNotifyBlocker other)
delete

◆ ~QgsMessageLogNotifyBlocker()

QgsMessageLogNotifyBlocker::~QgsMessageLogNotifyBlocker ( )

Definition at line 88 of file qgsmessagelog.cpp.

Member Function Documentation

◆ operator=()

QgsMessageLogNotifyBlocker & QgsMessageLogNotifyBlocker::operator= ( const QgsMessageLogNotifyBlocker other)
delete

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