Project

General

Profile

Actions

Feature #2308

closed

signal::Connection::isConnected

Added by Alex Afanasyev almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Utils
Target version:
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.

Actions #1

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
Actions #2

Updated by Chengyu Fan almost 10 years ago

  • Assignee set to Chengyu Fan
Actions #3

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?

Actions #4

Updated by Junxiao Shi almost 10 years ago

A ScopedConnection without a Connection should return false for isConnected().

Actions #5

Updated by Chengyu Fan almost 10 years ago

  • Status changed from New to Code review
  • % Done changed from 0 to 100
Actions #6

Updated by Chengyu Fan almost 10 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF