Classes | Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes
pcl::cloud_composer::SignalMultiplexer Class Reference

#include <signal_multiplexer.h>

List of all members.

Classes

struct  Connection

Public Slots

void setCurrentObject (QObject *newObject)

Signals

void currentObjectChanged (QObject *newObject)

Public Member Functions

void connect (QObject *sender, const char *signal, const char *slot)
void connect (const char *signal, QObject *receiver, const char *slot)
QObject * currentObject () const
bool disconnect (QObject *sender, const char *signal, const char *slot)
bool disconnect (const char *signal, QObject *receiver, const char *slot)
 SignalMultiplexer (QObject *parent=0)

Private Member Functions

void connect (const Connection &conn)
void disconnect (const Connection &conn)

Private Attributes

QList< Connectionconnections
QPointer< QObject > object

Detailed Description

Definition at line 52 of file signal_multiplexer.h.


Constructor & Destructor Documentation

Definition at line 4 of file signal_multiplexer.cpp.


Member Function Documentation

void pcl::cloud_composer::SignalMultiplexer::connect ( QObject *  sender,
const char *  signal,
const char *  slot 
)

Use this connect function instead of QObject::connect() to connect an actions activation signal to the receiving, multiplexed object.

Parameters:
senderthe sending action or object
signalthe signal in the sender object that is connected to
slotthe slot in the receiving object that is set through setCurrentObject that the signal should be connected to.
See also:
connect(const char *signal, QObject *receiver, const char *slot)
disconnect(QObject *sender, const char *signal, const char *slot)

Definition at line 12 of file signal_multiplexer.cpp.

void pcl::cloud_composer::SignalMultiplexer::connect ( const char *  signal,
QObject *  receiver,
const char *  slot 
)

Use this connect function instead of QObject::connect() to connect a multiplexed object's (status) signal to an action object's slot.

Parameters:
signalthe signal in the multiplexed sender object that is set through setCurrentObject that the connection should be from
receiverthe receiving action or object
slotthe slot in the receiving object
See also:
connect(QObject *sender, const char *signal, const char *slot)
disconnect(const char *signal, QObject *receiver, const char *slot)

Definition at line 25 of file signal_multiplexer.cpp.

Definition at line 76 of file signal_multiplexer.cpp.

Returns:
the object the connections are currently made with.

Definition at line 109 of file signal_multiplexer.h.

void pcl::cloud_composer::SignalMultiplexer::currentObjectChanged ( QObject *  newObject) [signal]

Emitted when a new object is set to receive the signals managed by this SignalMultiplexer instance.

bool pcl::cloud_composer::SignalMultiplexer::disconnect ( QObject *  sender,
const char *  signal,
const char *  slot 
)

Disconnects a signal connection from a sending object to a multiplexed receiving object.

See also:
connect(const char *signal, QObject *receiver, const char *slot)

Definition at line 38 of file signal_multiplexer.cpp.

bool pcl::cloud_composer::SignalMultiplexer::disconnect ( const char *  signal,
QObject *  receiver,
const char *  slot 
)

Disconencts a signal from a multiplexed object to a receiving (action) object.

See also:
connect(const char *signal, QObject *receiver, const char *slot)

Definition at line 57 of file signal_multiplexer.cpp.

Definition at line 91 of file signal_multiplexer.cpp.

void pcl::cloud_composer::SignalMultiplexer::setCurrentObject ( QObject *  newObject) [slot]

Sets the current object the signals that are managed by the SignalMultiplexer instance should be connected to. Any connections of these signals to the previous object will be disconnected. After the connections are hooked to the new object, the currentObjectChanged signal will be emitted.

Parameters:
newObjectthe new object that the signals should be connected to

Definition at line 107 of file signal_multiplexer.cpp.


Member Data Documentation

Definition at line 147 of file signal_multiplexer.h.

Definition at line 146 of file signal_multiplexer.h.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:43:48