|
QGIS API Documentation 4.1.0-Master (d6fb7a379fb)
|
Keeps a reference to a Qt connection (a QMetaObject::Connection) and disconnects it whenever this object is deleted. More...
#include <qgsscopedconnection.h>
Public Member Functions | |
| QgsScopedConnection ()=default | |
| Default constructor (holds an invalid connection). | |
| QgsScopedConnection (const QgsScopedConnection &)=delete | |
| QgsScopedConnection (QgsScopedConnection &&other) noexcept | |
| Move constructor. | |
| QgsScopedConnection (QMetaObject::Connection connection) | |
| Constructor for QgsScopedConnection, managing the specified connection. | |
| ~QgsScopedConnection () | |
| Destructor for QgsScopedConnection. | |
| void | disconnect () |
| Manually disconnects the managed connection. | |
| QgsScopedConnection & | operator= (const QgsScopedConnection &)=delete |
| QgsScopedConnection & | operator= (QgsScopedConnection &&other) noexcept |
| QgsScopedConnection & | operator= (QMetaObject::Connection connection) |
Keeps a reference to a Qt connection (a QMetaObject::Connection) and disconnects it whenever this object is deleted.
Definition at line 32 of file qgsscopedconnection.h.
|
default |
Default constructor (holds an invalid connection).
|
inlineexplicit |
Constructor for QgsScopedConnection, managing the specified connection.
Definition at line 43 of file qgsscopedconnection.h.
|
inline |
Destructor for QgsScopedConnection.
The managed connection will be automatically disconnected.
Definition at line 52 of file qgsscopedconnection.h.
|
delete |
|
inlinenoexcept |
Move constructor.
Definition at line 59 of file qgsscopedconnection.h.
|
inline |
Manually disconnects the managed connection.
Definition at line 86 of file qgsscopedconnection.h.
|
delete |
|
inlinenoexcept |
Definition at line 65 of file qgsscopedconnection.h.
|
inline |
Definition at line 76 of file qgsscopedconnection.h.