Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.core
Class Qt.ConnectionType

    java.lang.Object
      java.lang.Enum
          com.trolltech.qt.core.Qt.ConnectionType

All Implemented Interfaces:
  QtEnumerator, java.io.Serializable, java.lang.Comparable

Enclosing interface:
  Qt

    public static final class Qt.ConnectionType

extends java.lang.Enum
implements QtEnumerator

This enum describes the types of connection that can be used between signals and slots. In particular, it determines whether a particular signal is delivered to a slot immediately or queued for delivery at a later time. With queued connections, the parameters must be of types that are known to Qt's meta-object system, because Qt needs to copy the arguments to store them in an event behind the scenes. If you try to use a queued connection and get the error message

    QObject::connect: Cannot queue arguments of type 'MyType'

call qRegisterMetaType() to register the data type before you establish the connection.

See also:
  Thread Support in Qt, QObject::connect(), and qRegisterMetaType().

See Also:
  Serialized Form

Field Summary
`static Qt.ConnectionType` | `AutoCompatConnection`
`static Qt.ConnectionType` | `AutoConnection` If the signal is emitted from the thread in which the receiving object lives, the slot is invoked directly, as with `Qt::DirectConnection` ; otherwise the signal is queued, as with `Qt::QueuedConnection` .
`static Qt.ConnectionType` | `BlockingQueuedConnection` Same as `QueuedConnection` , except that the current thread blocks until the slot has been delivered.
`static Qt.ConnectionType` | `DirectConnection` When emitted, the signal is immediately delivered to the slot.
`static Qt.ConnectionType` | `QueuedConnection` When emitted, the signal is queued until the event loop is able to deliver it to the slot.

Method Summary
`static Qt.ConnectionType` | `resolve(int value)` Returns the ConnectionType constant with the specified `int`.
`int` | `value()` This function should return an integer value for the enum values of the enumeration that implements this interface.
`static Qt.ConnectionType` | `valueOf(java.lang.String name)`
`static Qt.ConnectionType[]` | `values()`

Methods inherited from class java.lang.Enum
`clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

Methods inherited from class java.lang.Object
`getClass, notify, notifyAll, wait, wait, wait`

Field Detail

### AutoConnection

    public static final Qt.ConnectionType AutoConnection

  If the signal is emitted from the thread in which the receiving object lives, the slot is invoked directly, as with `Qt::DirectConnection` ; otherwise the signal is queued, as with `Qt::QueuedConnection` .

### DirectConnection

    public static final Qt.ConnectionType DirectConnection

  When emitted, the signal is immediately delivered to the slot.

### QueuedConnection

    public static final Qt.ConnectionType QueuedConnection

  When emitted, the signal is queued until the event loop is able to deliver it to the slot.

### AutoCompatConnection

    public static final Qt.ConnectionType AutoCompatConnection

### BlockingQueuedConnection

    public static final Qt.ConnectionType BlockingQueuedConnection

  Same as `QueuedConnection` , except that the current thread blocks until the slot has been delivered. This connection type should only be used for receivers in a different thread. Note that misuse of this type can lead to dead locks in your application.

Method Detail

### values

    public static Qt.ConnectionType[] values()

### valueOf

    public static Qt.ConnectionType valueOf(java.lang.String name)

### value

    public int value()

  This function should return an integer value for the enum values of the enumeration that implements this interface.

  Specified by:
    `value` in interface `QtEnumerator`

### resolve

    public static Qt.ConnectionType resolve(int value)

  Returns the ConnectionType constant with the specified `int`.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD