Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Related Pages

Sig::ConnectionProxy Class Reference

Signal connection. More...

#include <sig_proxies.h>


Public Member Functions

 ConnectionProxy (Conn *src)
void disconnect ()
 Disconnect slot from callback or an event handler.

 ~ConnectionProxy ()
 ConnectionProxy ()

Protected Attributes

ost::Pointer< Conncon


Detailed Description

Signal connection.

Provides policy for the disconnection of a particular slot and a widget's callback or an event handler.

Use like this

                class C : public SigC::Object {

                        public:
                                void fun (long int) 
                                {
                                        ...
                                }

                ...

                C c;

                ...

                Sig::ConnectionProxy Cp = button -> signal_activate ().connect (slot (&c, &C::fun));

                // c.C::fun called when user ''activates'' button



                Cp->disconnect ();

                // c.C::fun wouldn't be called 
                
                ..


Constructor & Destructor Documentation

Sig::ConnectionProxy::ConnectionProxy Conn src  )  [inline]
 

Sig::ConnectionProxy::~ConnectionProxy  )  [inline]
 

Note:
It does not disconnect

Sig::ConnectionProxy::ConnectionProxy  )  [inline]
 


Member Function Documentation

void Sig::ConnectionProxy::disconnect  )  [inline]
 

Disconnect slot from callback or an event handler.

Note:
Subsequent connections would be possible through SignalProxy


Field Documentation

ost::Pointer<Conn> Sig::ConnectionProxy::con [protected]
 


The documentation for this class was generated from the following file:

SourceForge.net Logo

Documentation for photonmm by Yakov <iakovz@gmail.com>.