Qt Extended Home · Index · Classes · Headers · Overviews |
The QDLinkPlugin class is responsible for maintaining a network link. More...
#include <QDLinkPlugin>
Inherits QDPlugin.
The QDLinkPlugin class is responsible for maintaining a network link.
This plugin should be used to bring up a network interface and provide an IP address for Qt Extended Sync Agent to connect to.
This enum type specifies the state of the connection.
Constant | Value | Description |
---|---|---|
QDLinkPlugin::Up | 0 | The link is up. |
QDLinkPlugin::Down | 1 | The link is down. |
Construct a QDLinkPlugin with parent as the owning QObject.
Destructor.
Returns the time in miliseconds between pings. Returning 0 will disable the pings, relying on the underlying connection to correctly indicate loss of connection.
Note that this value can be overridden by the user when operating in debug mode.
Returns true if HELPER_ACK commands should be sent, false otherwise.
This signal should be emitted by the plugin to indicate changes in state using a constant from the QDLinkPlugin::State enum.
Call this function after you have created your device to initialize the socket. Note that the device will be moved to a separate thread so you should not interact with it except via signals. For the proxy device that you can interact with see QDLinkPlugin::socket().
Ownership of device is taken by QDLinkPlugin and it will be destroyed when the plugin is destroyed but you can delete it yourself using the QObject::deleteLater() function.
Returns the socket for connections to use or 0 if the socket has not been initialized.
Tear down the link. The socket() function should return 0 once this function has been called.
Attempt to bring up the link, using the port from connection (for TCP/IP-based links). Return false to indicate immediate failure and the setState() signal to indicate asynchronous failure.
Copyright © 2009 Nokia | Qt Extended Sync Agent Documentation |