Connect a slot to the print signal and return the connection */
| 200 | |
| 201 | /** Connect a slot to the print signal and return the connection */ |
| 202 | std::list<std::function<void(const std::string&)>>::iterator PushBackCallback(std::function<void(const std::string&)> fun) |
| 203 | { |
| 204 | StdLockGuard scoped_lock(m_cs); |
| 205 | m_print_callbacks.push_back(std::move(fun)); |
| 206 | return --m_print_callbacks.end(); |
| 207 | } |
| 208 | |
| 209 | /** Delete a connection */ |
| 210 | void DeleteCallback(std::list<std::function<void(const std::string&)>>::iterator it) |