Actions
Feature #2308
closedsignal::Connection::isConnected
Start date:
Due date:
% Done:
100%
Estimated time:
1.50 h
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.
Updated by Junxiao Shi almost 10 years ago
- 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
Updated by Chengyu Fan almost 10 years ago
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?
Updated by Junxiao Shi almost 10 years ago
A ScopedConnection
without a Connection
should return false
for isConnected()
.
Updated by Chengyu Fan almost 10 years ago
- Status changed from New to Code review
- % Done changed from 0 to 100
Updated by Chengyu Fan almost 10 years ago
- Status changed from Code review to Closed
Actions