20 #include <sigc++/sigc++.h> 26 #include <sys/types.h> 46 std::vector<sigc::connection> m_connections;
61 std::function<
void(pid_t,
int)>
function,
62 Glib::RefPtr<Glib::MainContext> context)
64 Glib::SignalChildWatch watch = context->signal_child_watch();
65 auto connection = watch.connect(
function, pid);
void addProcessListener(SignalConnectionsHandler &connections, pid_t pid, std::function< void(pid_t, int)> function, Glib::RefPtr< Glib::MainContext > context)
addProcessListener Adds a glib child watch for a process.
void addConnection(sigc::connection &connection)
Add a new connection.
The SignalConnectionsHandler class contains references to sigc++ connections and automatically discon...
Developers guide to adding a config item: