omgui::ConnectionImpl Class Reference

#include <omgui/event.h>

Inherits omgui::ConnectionBody.

List of all members.


Detailed Description

This is an implementation of ConnectionBody. It serves two purposes: to provide the implementation of Connection for the client, and storing the connected and blocked states of the slot for the Signal.

Public Member Functions

void add_ref ()
void block (bool b=true)
bool blocked () const
bool connected () const
 ConnectionImpl (Signal &signal, Signal::slot_type slot)
void disconnect ()
SlotBaseget_slot () const
bool operator== (const ConnectionImpl &other) const
void release ()
void set_iterator (const Signal::Slots::iterator &it)

Private Types

enum  { CONNECTED = 1, BLOCKED = 2 }

Private Attributes

Signal::Slots::iterator it_
Signalsignal_
Signal::slot_type slot_
int state_
 Tracks the connected or blocked state of the slot.

Member Enumeration Documentation

anonymous enum [private]

Enumerator:
CONNECTED 
BLOCKED 


Constructor & Destructor Documentation

omgui::ConnectionImpl::ConnectionImpl ( Signal signal,
Signal::slot_type  slot 
)


Member Function Documentation

void omgui::RefCounted::add_ref (  )  [virtual, inherited]

Implements omgui::RefCountable.

void omgui::ConnectionImpl::block ( bool  = true  )  [virtual]

Blocks the slot, preventing it from being signalled. To unblock the slot and allow it to be signalled again, call block(false).

Implements omgui::ConnectionBody.

bool omgui::ConnectionImpl::blocked (  )  const [virtual]

Returns whether or not the slot is blocked

Implements omgui::ConnectionBody.

bool omgui::ConnectionImpl::connected (  )  const [virtual]

Returns whether or not the slot is connected

Implements omgui::ConnectionBody.

void omgui::ConnectionImpl::disconnect (  )  [virtual]

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

Implements omgui::ConnectionBody.

SlotBase & omgui::ConnectionImpl::get_slot (  )  const

bool omgui::ConnectionImpl::operator== ( const ConnectionImpl other  )  const

Test for equality by comparing SlotBase pointers

void omgui::RefCounted::release (  )  [virtual, inherited]

Implements omgui::RefCountable.

void omgui::ConnectionImpl::set_iterator ( const Signal::Slots::iterator &  it  ) 


Member Data Documentation

Signal::Slots::iterator omgui::ConnectionImpl::it_ [private]

Tracks the connected or blocked state of the slot.


doxygen SourceForge.net Logo