2 #ifndef _GLIBMM_SIGNALPROXY_CONNECTIONNODE_H
3 #define _GLIBMM_SIGNALPROXY_CONNECTIONNODE_H
5 /* $Id: signalproxy_connectionnode.h 446 2007-09-26 15:10:44Z murrayc $ */
7 /* signalproxy_connectionnode.h
9 * Copyright (C) 2002 The gtkmm Development Team
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Library General Public
13 * License as published by the Free Software Foundation; either
14 * version 2 of the License, or (at your option) any later version.
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Library General Public License for more details.
21 * You should have received a copy of the GNU Library General Public
22 * License along with this library; if not, write to the Free
23 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 #include <sigc++/sigc++.h>
27 #include <glib/gtypes.h>
29 #ifndef DOXYGEN_SHOULD_SKIP_THIS
30 typedef struct _GObject GObject;
31 typedef struct _GClosure GClosure;
32 #endif //DOXYGEN_SHOULD_SKIP_THIS
37 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 /** SignalProxyConnectionNode is a connection node for use with SignalProxy.
40 * It lives between the layer of Gtk+ and libsigc++.
41 * It is very much an internal class.
43 class SignalProxyConnectionNode
47 /** @param slot The signal handler for the glib signal.
48 * @param gobject The GObject that might emit this glib signal
50 SignalProxyConnectionNode(const sigc::slot_base& slot, GObject* gobject);
52 /** Callback that is executed when the slot becomes invalid.
53 * This callback is registered in the slot.
54 * @param data The SignalProxyConnectionNode object (@p this).
56 static void* notify(void* data);
58 /** Callback that is executed when the glib closure is destroyed.
59 * @param data The SignalProxyConnectionNode object (@p this).
60 * @param closure The glib closure object.
62 static void destroy_notify_handler(gpointer data, GClosure* closure);
64 gulong connection_id_;
65 sigc::slot_base slot_;
71 #endif //DOXYGEN_SHOULD_SKIP_THIS
73 } /* namespace Glib */
76 #endif /* _GLIBMM_SIGNALPROXY_CONNECTIONNODE_H */