omgui::Connection Class Reference

#include <omgui/event.h>

List of all members.


Detailed Description

This object manages a connection. It is capable of disconnecting the slot when it is no longer needed. Slots may be disconnected at any time, even while processing an invocation of that slot, or any other slot.

Public Member Functions

void block (bool b=true)
bool blocked () const
bool connected () const
 Connection ()
void disconnect ()
void unblock ()
 ~Connection ()

Private Member Functions

 Connection (const Pointer< ConnectionBody > &body)

Private Attributes

Pointer< ConnectionBodybody

Friends

class Signal

Constructor & Destructor Documentation

omgui::Connection::Connection (  ) 

omgui::Connection::~Connection (  ) 

omgui::Connection::Connection ( const Pointer< ConnectionBody > &  body  )  [private]


Member Function Documentation

void omgui::Connection::block ( bool  b = true  ) 

Blocks the slot, preventing it from being signalled, but does not disconnect the slot.

bool omgui::Connection::blocked (  )  const

Returns whether or not the slot is blocked

bool omgui::Connection::connected (  )  const

Returns whether or not the slot is connected

void omgui::Connection::disconnect (  ) 

Disconnects the slot. The slot will no longer be signalled.

void omgui::Connection::unblock (  )  [inline]

Unblock the slot, allowing it to be signalled again.


Friends And Related Function Documentation

friend class Signal [friend]


Member Data Documentation


doxygen SourceForge.net Logo