API published in: S60 3rd Ed
Link against: senservdesc.lib
Required Capabilities
NetworkServices ReadUserData WriteUserData
#include <senxmlservicedescription.h>
Inherits CSenDomFragment, MSenServiceDescription, and MSenProviderPolicy.
Inherited by CSenIdentityProvider, and CSenServicePattern.
Class offers basic properties which describe some service and methods to manipulate this info. These properties are stored in XML fragment format and a class instance can be represented as one XML tree.
The main properties for service description are:
Public Member Functions |
|
virtual IMPORT_C | ~CSenXmlServiceDescription () |
Destructor. |
|
IMPORT_C void | SetFrameworkIdL (const TDesC8 &aFrameworkID) |
Setter for the framework ID. |
|
virtual IMPORT_C const TDesC8 & | NewElementName () |
Method returns the localname for this service description. |
|
IMPORT_C RCredentialList & | Credentials () |
Returns list of credentials. |
|
virtual IMPORT_C void | SetIapIdL (TUint32 aIapId) |
Setter for Internet Access Point (IAP) ID. |
|
virtual IMPORT_C TInt | IapId (TUint32 &aCurrentIapId) |
Getter for IAP ID. |
|
virtual IMPORT_C void | SetIdentityProviderIdsL (CSenIdentityProviderIdArray8 &aList) |
Setter for IdentityProvider IDs. |
|
virtual IMPORT_C TInt | AddIdentityProviderIdL (TDesC8 &aProviderId) |
Adds a new IdentityProviderID value at the end of the current list values. |
|
virtual IMPORT_C TInt | RebuildFrom (MSenProviderPolicy &aTemplate) |
Method reads provider policy class instance values from given template. |
|
virtual IMPORT_C const CSenIdentityProviderIdArray8 & | IdentityProviderIds8L () |
Getter for IdentityProvider IDs. |
|
virtual IMPORT_C TBool | Accepts (MSenProviderPolicy &aPolicyPattern) |
Checks if some policy is accepted by current policy. |
|
IMPORT_C TDescriptionClassType | DescriptionClassType () |
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. |
|
IMPORT_C TBool | Matches (MSenServiceDescription &aPattern) |
Method returns ETrue if this service description matches the given pattern. |
|
IMPORT_C TPtrC8 | Contract () |
Getter for contract, which is typically some URI. |
|
virtual IMPORT_C TInt | HasFacetL (const TDesC8 &aURI, TBool &aHasFacet) |
Method for checking if service description has a certain facet. |
|
virtual IMPORT_C TInt | FacetValue (TDesC8 &aURI, HBufC8 *&aValueTo) |
virtual IMPORT_C TInt | AddFacetL (const CSenFacet &aFacet) |
Method for adding a facet. |
|
virtual IMPORT_C TInt | SetFacetL (const CSenFacet &aFacet) |
Method for setting a facet.Adds a new facet, if non-existent. |
|
virtual IMPORT_C TInt | RemoveFacet (const TDesC8 &aURI) |
Removes a characteristic (Facet) from the description. |
|
virtual IMPORT_C TInt | FacetsL (RFacetArray &aFacetArray) |
Method for getting all facets. |
|
virtual IMPORT_C TInt | ScoreMatchL (MSenServiceDescription &aPattern) |
Method returns a positive integer if this ServiceDescription matches the given pattern in at least one aspect. |
|
IMPORT_C TPtrC8 | Endpoint () |
Getter for endpoint. |
|
IMPORT_C TPtrC8 | FrameworkId () |
Getter for the framework ID. |
|
IMPORT_C TPtrC8 | FrameworkVersion () |
Getter for the framework version. |
|
IMPORT_C void | SetContractL (const TDesC8 &aContract) |
Setter for contract. |
|
IMPORT_C void | SetEndPointL (const TDesC8 &aEndPoint) |
Setter for endpoint. |
|
virtual IMPORT_C HBufC8 * | AsXmlL () |
Gets the service description as XML fragment in UTF-8 format. |
|
virtual IMPORT_C HBufC * | AsXmlUnicodeL () |
Gets the service description as XML, in Unicode (UCS-2). |
|
virtual IMPORT_C void | WriteAsXMLToL (RWriteStream &aWriteStream) |
Writes this service description as XML, in UTF-8 form to a stream. |
|
IMPORT_C void | SetAttributesL (const RAttributeArray &aAttributes) |
Method looks for FrameworkID attribute from the given XML attribute array and if one is found, sets its value for this instance.
|
|
IMPORT_C void | ResumeParsingFromL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName) |
Resumes the parsing. |
|
Static Public Member Functions |
|
static IMPORT_C CSenXmlServiceDescription * | NewL () |
Standard 2 phase constructor. |
|
static IMPORT_C CSenXmlServiceDescription * | NewLC () |
Standard 2 phase constructor. |
|
static IMPORT_C CSenXmlServiceDescription * | NewL (const TDesC8 &aNamespaceURI) |
Standard 2 phase constructor. |
|
static IMPORT_C CSenXmlServiceDescription * | NewLC (const TDesC8 &aNamespaceURI) |
Standard 2 phase constructor. |
|
static IMPORT_C CSenXmlServiceDescription * | NewL (const TDesC8 &aEndPoint, const TDesC8 &aContract) |
Standard 2 phase constructors. |
|
static IMPORT_C CSenXmlServiceDescription * | NewLC (const TDesC8 &aEndPoint, const TDesC8 &aContract) |
Standard 2 phase constructors. |
|
Protected Member Functions |
|
IMPORT_C | CSenXmlServiceDescription (TDescriptionClassType aType) |
C++ default constructor. |
|
IMPORT_C void | ConstructL () |
Basic ConstructL function. |
|
IMPORT_C void | ConstructL (const TDesC8 &aNamespaceURI) |
Basic ConstructL function. |
|
IMPORT_C void | ConstructL (const TDesC8 &aEndPoint, const TDesC8 &aContract) |
Basic ConstructL function. |
|
virtual IMPORT_C void | StartElementL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName, const RAttributeArray &aAttributes) |
Callback function which implements the XML content handler interface. |
|
virtual IMPORT_C void | EndElementL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName) |
Callback function which implement the XML content handler interface. |
|
Protected Attributes |
|
const TDescriptionClassType | iType |
|
Destructor. |
|
C++ default constructor.
|
|
Checks if some policy is accepted by current policy.
Implements MSenProviderPolicy. |
|
Method for adding a facet. Will NOT override an already existing facet with a same name.
Implements MSenServiceDescription. |
|
Adds a new IdentityProviderID value at the end of the current list values.
Implements MSenProviderPolicy. |
|
Gets the service description as XML fragment in UTF-8 format.
Implements MSenServiceDescription. |
|
Gets the service description as XML, in Unicode (UCS-2).
Implements MSenServiceDescription. |
|
Basic ConstructL function.
Reimplemented in CSenIdentityProvider. |
|
Basic ConstructL function.
Reimplemented in CSenIdentityProvider. |
|
Basic ConstructL function. |
|
Getter for contract, which is typically some URI.
Implements MSenServiceDescription. |
|
Returns list of credentials. Ownership is not transferred, any modifications to the contents of the list modify the real objects.
|
|
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.
Implements MSenServiceDescription. |
|
Callback function which implement the XML content handler interface.
Reimplemented from CSenBaseFragment. |
|
Getter for endpoint.
Implements MSenServiceDescription. |
|
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".
Implements MSenServiceDescription. |
|
Implements MSenServiceDescription. |
|
Getter for the framework ID.
Implements MSenServiceDescription. |
|
Getter for the framework version.
Implements MSenServiceDescription. |
|
Method for checking if service description has a certain facet.
Implements MSenServiceDescription. |
|
Getter for IAP ID.
Implements MSenProviderPolicy. |
|
Getter for IdentityProvider IDs.
Implements MSenProviderPolicy. |
|
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.
Implements MSenServiceDescription. Reimplemented in CSenServicePattern. |
|
Method returns the localname for this service description. This is the localname of the element, when this class is represented as an XML element.
Reimplemented in CSenIdentityProvider. |
|
Standard 2 phase constructors.
Reimplemented from CSenDomFragment. Reimplemented in CSenIdentityProvider, and CSenServicePattern. |
|
Standard 2 phase constructor.
Reimplemented from CSenDomFragment. Reimplemented in CSenIdentityProvider, and CSenServicePattern. |
|
Standard 2 phase constructor.
Reimplemented from CSenDomFragment. Reimplemented in CSenServicePattern. |
|
Standard 2 phase constructors.
Reimplemented in CSenIdentityProvider, and CSenServicePattern. |
|
Standard 2 phase constructor.
Reimplemented in CSenIdentityProvider, and CSenServicePattern. |
|
Standard 2 phase constructor.
Reimplemented in CSenServicePattern. |
|
Method reads provider policy class instance values from given template. Values may include an IAP ID, preferred IdentityProvider IDs etc.
Implements MSenProviderPolicy. |
|
Removes a characteristic (Facet) from the description.
Implements MSenServiceDescription. |
|
Resumes the parsing. Called by the delegate fragment in order to notify owner, which needs to regain (take over) parsing. For example, when a policy fragment is parsed, the service description fragment should resume parsing the rest of its own XML document representation.
Reimplemented from CSenDomFragment. |
|
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.
Implements MSenServiceDescription. |
|
Method looks for FrameworkID attribute from the given XML attribute array and if one is found, sets its value for this instance. In addition, all the namespace attributes are copied. All other attributes are discarded.
Reimplemented from CSenDomFragment. |
|
Setter for contract.
Implements MSenServiceDescription. |
|
Setter for endpoint.
Implements MSenServiceDescription. |
|
Method for setting a facet.Adds a new facet, if non-existent. But, if a facet with same name exists, it will be overridden.
Implements MSenServiceDescription. |
|
Setter for the framework ID. The developer may use a FrameworkID to search for a session of (i.e. connection to) a certain service invocation framework.
|
|
Setter for Internet Access Point (IAP) ID. Method is used to define default access point to avoid IAP selection dialog prompt.
Implements MSenProviderPolicy. |
|
Setter for IdentityProvider IDs. Overrides current values with the given values from the array. When initiating a new service connection, this list of ProviderIDs define, which IdentityProviders are preferred OR which are strictly acceptable ones.
Implements MSenProviderPolicy. |
|
Callback function which implements the XML content handler interface.
Reimplemented from CSenDomFragment. Reimplemented in CSenServicePattern. |
|
Writes this service description as XML, in UTF-8 form to a stream.
Implements MSenServiceDescription. |
|