libQuotient
A Qt library for building matrix clients
qt_connection_util.h File Reference
#include <QtCore/QObject>
#include <QtCore/QPointer>
Include dependency graph for qt_connection_util.h:

Go to the source code of this file.

Classes

class  Quotient::ConnectionsGuard< T >
 A guard pointer that disconnects an interested object upon destruction. More...
 

Namespaces

 Quotient
 

Functions

template<typename SmartSlotT >
auto Quotient::connectUntil (auto *sender, auto signal, QObject *context, SmartSlotT &&smartSlot, Qt::ConnectionType connType=Qt::AutoConnection)
 Create a connection that self-disconnects when its slot returns true. More...
 
template<typename ContextT , typename SlotT >
auto Quotient::connectSingleShot (auto *sender, auto signal, ContextT *context, SlotT slot, Qt::ConnectionType connType=Qt::AutoConnection)
 Create a connection that self-disconnects after triggering on the signal. More...