API published in: S60 3rd Ed
Link against: senservdesc.lib
Required Capabilities
NetworkServices ReadUserData WriteUserData
#include <msenservicedescription.h>
Inherited by CSenXmlServiceDescription.
All of the subclasses are capable of representing themselves in XML.
Public Types |
|
enum | TDescriptionClassType { ERoot = 0, EBaseServiceDescription, EXmlServiceDescription, EIdentityProvider, EServicePattern, EServiceSession, EWebServiceSession, EBasicWebServiceSession, EIdWSFServiceSession, EIdWsfServiceInstance, ECoreServiceConsumer, ESenInternalServiceConsumer, EIdWsfAuthenticationServiceClient, EIdWsfDiscoveryServiceClient } |
DescriptionClassType enumeration. More... |
|
Public Member Functions |
|
virtual TDescriptionClassType | DescriptionClassType ()=0 |
The DescriptionClassType() method is used to resolve the real subclass type in cases where instance of that class is seen through one of its superclass
interfaces. |
|
virtual TBool | Matches (MSenServiceDescription &aPattern)=0 |
Method returns ETrue if this service description matches the given pattern. |
|
virtual TPtrC8 | Contract ()=0 |
Getter for contract, which is typically some URI. |
|
virtual TInt | HasFacetL (const TDesC8 &aURI, TBool &aHasFacet)=0 |
Method for checking if service description has a certain facet. |
|
virtual TInt | FacetValue (TDesC8 &aURI, HBufC8 *&aValueTo)=0 |
virtual TInt | AddFacetL (const CSenFacet &aFacet)=0 |
Method for adding a facet. |
|
virtual TInt | SetFacetL (const CSenFacet &aFacet)=0 |
Method for setting a facet.Adds a new facet, if non-existent. |
|
virtual TInt | RemoveFacet (const TDesC8 &aURI)=0 |
Removes a characteristic (Facet) from the description. |
|
virtual TInt | FacetsL (RFacetArray &aFacetArray)=0 |
Method for getting all facets. |
|
virtual TInt | ScoreMatchL (MSenServiceDescription &aPattern)=0 |
Method returns a positive integer if this ServiceDescription matches the given pattern in at least one aspect. |
|
virtual TPtrC8 | Endpoint ()=0 |
Getter for endpoint. |
|
virtual TPtrC8 | FrameworkId ()=0 |
Getter for the framework ID. |
|
virtual TPtrC8 | FrameworkVersion ()=0 |
Getter for the framework version. |
|
virtual void | SetContractL (const TDesC8 &aContract)=0 |
Setter for contract. |
|
virtual void | SetEndPointL (const TDesC8 &aEndPoint)=0 |
Setter for endpoint. |
|
virtual HBufC8 * | AsXmlL ()=0 |
Gets the service description as XML fragment in UTF-8 format. |
|
virtual HBufC * | AsXmlUnicodeL ()=0 |
Gets the service description as XML, in Unicode (UCS-2). |
|
virtual void | WriteAsXMLToL (RWriteStream &aWriteStream)=0 |
Writes this service description as XML, in UTF-8 form to a stream. |
|
|
Method for adding a facet. Will NOT override an already existing facet with a same name.
Implemented in CSenXmlServiceDescription. |
|
Gets the service description as XML fragment in UTF-8 format.
Implemented in CSenXmlServiceDescription. |
|
Gets the service description as XML, in Unicode (UCS-2).
Implemented in CSenXmlServiceDescription. |
|
Getter for contract, which is typically some URI.
Implemented in CSenXmlServiceDescription. |
|
The DescriptionClassType() method is used to resolve the real subclass type in cases where instance of that class is seen through one of its superclass interfaces.
Implemented in CSenXmlServiceDescription. |
|
Getter for endpoint.
Implemented in CSenXmlServiceDescription. |
|
Method for getting all facets. Copies characteristics (Facets) from the description into array. For each characteristic (Facet) found in array the HasFacetL() method should return "ETrue".
Implemented in CSenXmlServiceDescription. |
|
Implemented in CSenXmlServiceDescription. |
|
Getter for the framework ID.
Implemented in CSenXmlServiceDescription. |
|
Getter for the framework version.
Implemented in CSenXmlServiceDescription. |
|
Method for checking if service description has a certain facet.
Implemented in CSenXmlServiceDescription. |
|
Method returns ETrue if this service description matches the given pattern. The bits of information that are in the pattern are read and compared to corresponding fields in this service description. Note that a pattern may have far fewer fields and that only the non-null and non-zero-length fields are compared. For example, assume that a pattern with only a contract was defined; with the contract set to "urn:example.com:service". Each service description with the same contract will match the pattern, even if such a service description has non-null/non-zero-length fields for other aspects.
Implemented in CSenServicePattern, and CSenXmlServiceDescription. |
|
Removes a characteristic (Facet) from the description.
Implemented in CSenXmlServiceDescription. |
|
Method returns a positive integer if this ServiceDescription matches the given pattern in at least one aspect. Higher numbers mean a closer match. The bits of information that are in the pattern are read and compared to corresponding fields in this ServiceDescription. Note that a pattern may have far fewer fields and that only the non-null fields are compared. For example, assume that a pattern with only a contract was defined; with the contract set to "urn:example.com:service". Each ServiceDescription with the same contract will match the pattern, even if such a ServiceDescription has non-null fields for other aspects.
Implemented in CSenXmlServiceDescription. |
|
Setter for contract.
Implemented in CSenXmlServiceDescription. |
|
Setter for endpoint.
Implemented in CSenXmlServiceDescription. |
|
Method for setting a facet.Adds a new facet, if non-existent. But, if a facet with same name exists, it will be overridden.
Implemented in CSenXmlServiceDescription. |
|
Writes this service description as XML, in UTF-8 form to a stream.
Implemented in CSenXmlServiceDescription. |