RPnPServicePublisher Class Reference

class RPnPServicePublisher

A generic class which provides the functionality, to be implemented by a service point to service the remote clients.

Constructor & Destructor Documentation

RPnPServicePublisher()

IMPORT_C RPnPServicePublisher ( )

Default constructor

Member Functions Documentation

Close()

IMPORT_C void Close ( )

Close technology specific session.

InitiateControl(RControlChannel &)

IMPORT_C TInt InitiateControl ( RControlChannel & aControlChannel )

It enables to send and receive messages.

Parameters

RControlChannel & aControlChannel

Open(TUint)

IMPORT_C TInt Open ( TUint aTierId )

Resolves the access point.

Parameters

TUint aTierId

Publish(const RPnPParameterBundle &)

IMPORT_C void Publish ( const RPnPParameterBundle & aServiceInfo )

Publishes service notifications to remote clients. The technology specific service information is packed in aServiceInfo. Note that a service point will only publish a single device or service.Consequently only one parameter set must be sent in the bundle.Also once published,the service point must be closed before another publish is done.

When the responses are received, MPnPObserver::OnPnPEventL is called for each response and calling clients must provide the implementation to handle the responses.

In case of corrupted uris or value fields or low memory conditions, MPnPObserver::OnPnPError is called synchronously which must be handled by the client

Parameters

const RPnPParameterBundle & aServiceInfo

SendNotify(const RPnPParameterBundle &)

IMPORT_C void SendNotify ( const RPnPParameterBundle & aServiceInfo )

Sends service notification to remote clients who've subscribed to the service/device

No responses are received in MPnPObserver::OnPnPEventL and MPnPObserver::OnPnPError is also not called

Parameters

const RPnPParameterBundle & aServiceInfo

Member Data Documentation

CPnPServicePublisherBase * iPnPServicePublisherImpl

CPnPServicePublisherBase * iPnPServicePublisherImpl [private]