RPnPServiceDiscovery Class Reference
class RPnPServiceDiscovery |
A generic class which provides the functionality to provision the applications who want to discover services and listen for service related notifications. The service discovery and related notification are technology specific.
Constructor & Destructor Documentation
RPnPServiceDiscovery()
IMPORT_C | RPnPServiceDiscovery | ( | ) | |
Member Functions Documentation
Cancel(const RPnPParameterBundle &)
Issues a cancel request to ongoing discoveries, describe , subscribe requests .This also cancels notify of previously registered events from remote service. The technology specific discovery cancellation information is packed in aServiceInfo.
Close()
Close technology specific session.
Describe(const RPnPParameterBundle &)
Retrieves the description of the remote service. The technology specific description information is packed in aServiceInfo parameter. The caller should set a callback function of type MPnPObserver in aServiceInfo to retrieve description responses. 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 invalid input is provided in the form of corrupted uris for describe or low memory conditions,the application returns synchronously with MPnPObserver::OnPnPError.However application is not able to filter out all invalid URLs
Discover(const RPnPParameterBundle &)
Issues a discovery request. The technology specific discovery information is packed in aServiceInfo parameter. The caller should set a callback function of type MPnPCallBack in aServiceInfo to retrieve discovery responses. 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 invalid input is provided in the form of corrupted uris for searching or low memory conditions,the application returns synchronously with MPnPObserver::OnPnPError
InitiateControl(RControlChannel &, const TDesC8 &)
It enables to send and receive messages.
Open(TUint)
Parameters
TUint aTierID | implementation UID. Identifies technology for which service discovery is requested. |
RegisterNotify(const RPnPParameterBundle &)
Registers for events of remote service. The technology specific registration information is packed in aServiceInfo. The caller can set a callback function of type MPnPObserver in aServiceInfo to retrieve response of registration.
In case invalid input is provided in the form of corrupted uris for registration or low memory conditions,the application returns synchronously with MPnPObserver::OnPnPError.
Subscribe(const RPnPParameterBundle &)
Subscribes for event notifications to the remote service or device . The technology specific description information is packed in aServiceInfo parameter. The caller should set a callback function of type MPnPObserver in aServiceInfo to retrieve description responses. 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 invalid input is provided in the form of corrupted uris for subscribe or low memory conditions,the application returns synchronously with MPnPObserver::OnPnPError.However application is not able to filter out all invalid URLs
Member Data Documentation
CPnPServiceDiscoveryBase * iPnPServiceDiscoveryImpl
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.