Core/Signal: Add Connectionguard::GetConnection()
Former-commit-id: 78d0f6e72f15933fb4356d304a5a48ea3c163fbe
This commit is contained in:
parent
d43126eae5
commit
0b14711cbf
|
|
@ -94,6 +94,8 @@ class NzSignal<Args...>::ConnectionGuard
|
||||||
ConnectionGuard(Connection&& connection);
|
ConnectionGuard(Connection&& connection);
|
||||||
~ConnectionGuard();
|
~ConnectionGuard();
|
||||||
|
|
||||||
|
Connection& GetConnection();
|
||||||
|
|
||||||
Connection& operator=(const Connection& connection) = delete;
|
Connection& operator=(const Connection& connection) = delete;
|
||||||
Connection& operator=(Connection&& connection) = delete;
|
Connection& operator=(Connection&& connection) = delete;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -132,4 +132,10 @@ NzSignal<Args...>::ConnectionGuard::~ConnectionGuard()
|
||||||
m_connection.Disconnect();
|
m_connection.Disconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<typename... Args>
|
||||||
|
typename NzSignal<Args...>::Connection& NzSignal<Args...>::ConnectionGuard::GetConnection()
|
||||||
|
{
|
||||||
|
return m_connection;
|
||||||
|
}
|
||||||
|
|
||||||
#include <Nazara/Core/DebugOff.hpp>
|
#include <Nazara/Core/DebugOff.hpp>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue