class Inti::Connection is declared in the header inti/connection.h.
Superclasses. none
Subclasses. none
Important Public Methods.
void disconnect () void block () void unblock () |
Public Constructors.
Connection () Connection (const Connection & src) |
Public Destructor.
~Connection () |
Public Methods.
Connection& operator= (const Connection& src) |
When you connect a slot to a signal, a Connection object is returned. The Connection can be used to disconnect the slot from the signal, or temporarily "block" the connection (prevent the slot from being invoked).
For example:
void disconnect () |
Permanently severs the connection; the slot will never be invoked again. Calling disconnect() a second time is safe, but has no effect.
void block () |
Blocks the connection, temporarily preventing the connected slot from being invoked. block() may be called multiple times; if so, unblock() must be called the same number of times before the connection becomes unblocked.
void unblock () |
Unblocks the connection, allowing the connected slot to be invoked. If block() was called more than once, unblock() must be called the same number of times before the connection will be unblocked.
Connection () |
This constructor creates an uninitialized connection.
Connection (const Connection & src) |
Copies a Connection. All copies of a Connection manipulate the same connection, that is, it doesn't matter which copy you use to disconnect(), block(), or unblock().
src | Connection to copy |
~Connection () |
Destructs a Connection. Has no user-visible side effects.
Connection& operator= (const Connection& src) |
Assigns one connection to another. All copies of a Connection manipulate the same connection, that is, it doesn't matter which copy you use to disconnect(), block(), or unblock().
src | Connection to assign |