com.trolltech.qt
Class QSignalEmitter

java.lang.Object
  extended by com.trolltech.qt.QSignalEmitter
Direct Known Subclasses:
QtJambiObject

public class QSignalEmitter
extends java.lang.Object

This class implements the functionality to emit signals. All objects in QtJambi can emit signals, so the class is inherited by QtJambiObject.


Nested Class Summary
 class QSignalEmitter.Signal0
          Declare and instantiate a field of this class in your QObject subclass to declare a signal that takes no parameters.
 class QSignalEmitter.Signal1<A>
          Declare and instantiate a field of this class in your QObject subclass to declare a signal that takes one parameter.
 class QSignalEmitter.Signal2<A,B>
          Declare and instantiate a field of this class in your QObject subclass to declare a signal that takes two parameters.
 class QSignalEmitter.Signal3<A,B,C>
          Declare and instantiate a field of this class in your QObject subclass to declare a signal that takes three parameters.
 class QSignalEmitter.Signal4<A,B,C,D>
          Declare and instantiate a field of this class in your QObject subclass to declare a signal that takes four parameters.
 class QSignalEmitter.Signal5<A,B,C,D,E>
          Declare and instantiate a field of this class in your QObject subclass to declare a signal that takes five parameters.
 class QSignalEmitter.Signal6<A,B,C,D,E,F>
          Declare and instantiate a field of this class in your QObject subclass to declare a signal that takes six parameters.
 class QSignalEmitter.Signal7<A,B,C,D,E,F,G>
          Declare and instantiate a field of this class in your QObject subclass to declare a signal that takes seven parameters.
 class QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>
          Declare and instantiate a field of this class in your QObject subclass to declare a signal that takes eight parameters.
 class QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I>
          Declare and instantiate a field of this class in your QObject subclass to declare a signal that takes nine parameters.
 
Constructor Summary
QSignalEmitter()
           
 
Method Summary
 boolean blockSignals(boolean b)
          Blocks this QSignalEmitter from emiting its signals.
 void disconnect()
          Disconnect all connections originating in this signal emitter
 void disconnect(java.lang.Object other)
          Disconnect all connections made from this signal emitter to a specific object
 boolean signalsBlocked()
          Returns true if this QSignalEmitter is blocked.
static QSignalEmitter signalSender()
          If a signal is currently being emitted (e.g.
 java.lang.Thread thread()
          Returns the thread affinity of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QSignalEmitter

public QSignalEmitter()
Method Detail

thread

public java.lang.Thread thread()
Returns the thread affinity of the object. If this is an instance of QObject the thread that owns the object is returned. For non QObject's the current thread is returned...


signalsBlocked

public boolean signalsBlocked()
Returns true if this QSignalEmitter is blocked. If it is blocked, no signals will be emitted.


blockSignals

public boolean blockSignals(boolean b)
Blocks this QSignalEmitter from emiting its signals.


signalSender

public static QSignalEmitter signalSender()
If a signal is currently being emitted (e.g. if this method is called from within a slot that has been invoked by a signal), then this function will return the object containing the signal that was emitted.

Returns:
Current sender, or null if a signal is not currently being emitted.

disconnect

public final void disconnect()
Disconnect all connections originating in this signal emitter


disconnect

public final void disconnect(java.lang.Object other)
Disconnect all connections made from this signal emitter to a specific object

Parameters:
other - The receiver to disconnect, or null to disconnect all receivers