MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QML NearFieldSocket Element

The NearFieldSocket element represents an LLCP socket. More...

This element was introduced in Mobility 1.2.

Properties

Detailed Description

The NearFieldSocket element is part of the QtMobility.connectivity 1.2 module.

The NearFieldSocket element can be used to create a peer-to-peer connection over NFC LLCP sockets. NearfieldSocket can be used for both client and server side sockets.

See also QLlcpSocket and QLlcpServer.

Property Documentation

connected : bool

This property holds the connected state of the socket.

This property group was introduced in Mobility 1.2.


read-onlyerror : string

This property holds the last error that occurred.

This property group was introduced in Mobility 1.2.


listening : bool

This property holds whether the socket is listening for incoming connections.

This property group was introduced in Mobility 1.2.


read-onlystate : string

This property holds the state of the socket.

This property group was introduced in Mobility 1.2.


stringData : string

This property returns the available string data read from the socket. Seting this property sends the data to the remote socket.

This property group was introduced in Mobility 1.2.


uri : string

This property hold the URI of the socket. The URI uniquely identifies a remote service (for client sockets) or to register a service (for server sockets).

This property group was introduced in Mobility 1.2.