Feature #2308
closed
signal::Connection::isConnected
Added by Alex Afanasyev almost 10 years ago.
Updated almost 10 years ago.
Description
Allow to check whether a Connection
is still connected.
bool
Connection::isConnected() const;
bool
ScopedConnection::isConnected() const;
This could be useful in cases when it is desirable to avoid multiple connections.
- Tracker changed from Task to Feature
- Subject changed from Connection::isConnected could be helpful to signal::Connection::isConnected
- Description updated (diff)
- Target version set to v0.3
- Start date deleted (
12/16/2014)
- Estimated time set to 1.50 h
- Assignee set to Chengyu Fan
I think the ScopedConnection is a wrapper for a Connection instance.
So it can return the status of the Connection instance (true or false for isConnected function).
However, if the ScopedConnection is released, then there is no Connection instance, does it mean just return false
when someone call the isConnected function?
A ScopedConnection
without a Connection
should return false
for isConnected()
.
- Status changed from New to Code review
- % Done changed from 0 to 100
- Status changed from Code review to Closed
Also available in: Atom
PDF