KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
KDBindings::ConnectionBlocker Class Reference

A ConnectionBlocker is a convenient RAII-style mechanism for temporarily blocking a connection. More...

#include <signal.h>

Public Member Functions

 ConnectionBlocker (const ConnectionHandle &handle)
 
 ~ConnectionBlocker ()
 

Detailed Description

A ConnectionBlocker is a convenient RAII-style mechanism for temporarily blocking a connection.

When a ConnectionBlocker is constructed, it will block the connection.

When it is destructed, it will return the connection to the blocked state it was in before the ConnectionBlocker was constructed.

Example:

Definition at line 630 of file signal.h.

Constructor & Destructor Documentation

◆ ConnectionBlocker()

KDBindings::ConnectionBlocker::ConnectionBlocker ( const ConnectionHandle handle)
inlineexplicit

Constructs a new ConnectionBlocker and blocks the connection this ConnectionHandle refers to.

Exceptions
std::out_of_rangeIf the connection is not active (i.e. ConnectionHandle::isActive() returns false).

Definition at line 639 of file signal.h.

References KDBindings::ConnectionHandle::block().

◆ ~ConnectionBlocker()

KDBindings::ConnectionBlocker::~ConnectionBlocker ( )
inline

Destructs the ConnectionBlocker and returns the connection into the blocked state it was in before the ConnectionBlocker was constructed.

Definition at line 649 of file signal.h.


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

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8