kdsoap-ws-discovery-client 0.2
Public Slots | Signals | Public Member Functions | List of all members
WSDiscoveryClient Class Reference

WSDiscoveryClient is a low-level helper for sending and receiving WS-Discovery messages. More...

#include <wsdiscoveryclient.h>

Inheritance diagram for WSDiscoveryClient:
Inheritance graph
[legend]
Collaboration diagram for WSDiscoveryClient:
Collaboration graph
[legend]

Public Slots

void start ()
 
void sendProbe (const QList< KDQName > &typeList, const QList< QUrl > &scopeList)
 
void sendResolve (const QString &endpointReference)
 

Signals

void probeMatchReceived (const WSDiscoveryTargetService &probeMatchService)
 
void resolveMatchReceived (const WSDiscoveryTargetService &probeMatchService)
 

Public Member Functions

 WSDiscoveryClient (QObject *parent=nullptr)
 

Detailed Description

WSDiscoveryClient is a low-level helper for sending and receiving WS-Discovery messages.

start() will bind to the network and start receveing messages. When a message is received, it will trigger the signals probeMatchReceived() and resolveMatchReceived(). You can send messages using sendProbe() and sendResolve().

See also
WSDiscoveryProbeJob for a more high level interface

Constructor & Destructor Documentation

◆ WSDiscoveryClient()

WSDiscoveryClient::WSDiscoveryClient ( QObject *  parent = nullptr)
explicit

Create a WSDiscoveryClient

Parameters
parentThe QObject parent

Member Function Documentation

◆ probeMatchReceived

void WSDiscoveryClient::probeMatchReceived ( const WSDiscoveryTargetService probeMatchService)
signal

Emitted when a WS-Discovery probe match message is received. When a single message is reveived with multiple matches, then multiple signals are emitted.

Parameters
probeMatchServiceThe service as described in the match

◆ resolveMatchReceived

void WSDiscoveryClient::resolveMatchReceived ( const WSDiscoveryTargetService probeMatchService)
signal

Emitted when a WS-Discovery resolve match message is received.

Parameters
probeMatchServiceThe service as described in the match

◆ sendProbe

void WSDiscoveryClient::sendProbe ( const QList< KDQName > &  typeList,
const QList< QUrl > &  scopeList 
)
slot

Send a WS-Discovery probe message. This will cause all devices in the network that match to typeList and scopeList to send a probeMatch back.

Parameters
typeListList of types that a device should match
scopeListList of scoped that a device should match

◆ sendResolve

void WSDiscoveryClient::sendResolve ( const QString &  endpointReference)
slot

Send a WS-Discovery resolve message. This will cause a specific device in the network to send a resolveMatch back.

Parameters
endpointReferenceThe identifier of the device of interest

◆ start

void WSDiscoveryClient::start ( )
slot

Bind to the WS-Discovery network ports. After binding messages will be received. It binds on both IPv4 and IPv6.


The documentation for this class was generated from the following file: