commit | f46482c9c0004ae4f5758acdff5948e15df1bae7 | [log] [tgz] |
---|---|---|
author | Chengyu Fan <chengy.fan@gmail.com> | Tue Feb 03 16:55:53 2015 -0700 |
committer | Alex Afanasyev <alexander.afanasyev@ucla.edu> | Fri Feb 06 17:40:41 2015 -0800 |
tree | 591b4cb89a0da54b37075d57dcbe127a8695513d | |
parent | 23989111a28af77372578acab5bd69342a1760e1 [diff] [blame] |
util: add isConnected() in signal::Connection and signal::ScopedConnection Change-Id: Iddf2a084ccf137a691cd85c54003182acf0e5afd Refs: #2308
diff --git a/src/util/signal-scoped-connection.cpp b/src/util/signal-scoped-connection.cpp index ae90c5f..a0f2d1c 100644 --- a/src/util/signal-scoped-connection.cpp +++ b/src/util/signal-scoped-connection.cpp
@@ -61,6 +61,12 @@ m_connection.disconnect(); } +bool +ScopedConnection::isConnected() const +{ + return m_connection.isConnected(); +} + void ScopedConnection::release() {