Qt Extended Home · Index · Classes · Headers · Overviews |
The QDConPlugin class is responsible for maintaining a connection. More...
#include <QDConPlugin>
Inherits QDPlugin.
The QDConPlugin class is responsible for maintaining a connection.
This plugin should be used to establish a connection to a device.
This enum type specifies the state of the connection.
Constant | Value | Description |
---|---|---|
QDConPlugin::Connected | 0 | A connection has been established and any handshaking has been performed. |
QDConPlugin::Disconnected | 1 | There is no connection. |
QDConPlugin::Connecting | 2 | A connection attempt is in progress. |
QDConPlugin::Matching | 3 | An attempt is being made to match this connection to a device. |
Construct a QDConPlugin with parent as the owning QObject.
Destructor.
This is called by dev to attempt to claim the connection, which stops other plugins from getting control of it. The return value indicates success or failure.
See also device().
Retrieve property key from the connection. Typically properties are set during the handshake phase.
Called by dev to report that handshaking is done. Note that dev is checked against the device that has claimed the connection.
See also claim().
Returns the device that has claimed this connection.
See also claim().
Return the port to connect to (for TCP/IP-based communications).
This signal should be emitted by the plugin to indicate changes in state using a constant from the QDConPlugin::State enum.
Stop trying to connect to something.
Attempt to connect using the socket from link. Return false to indicate immediate failure and the setState() signal to indicate asynchronous failure.
Copyright © 2009 Trolltech | Qt Extended Sync Agent Documentation |