MSenServicePolicy Class Reference

Link against: SenServDesc.LIB

Capability Information

Required Capabilities

NetworkServices ReadUserData WriteUserData


#include <
MSenServicePolicy.h>

Public Member Functions

virtual TInt AddPolicyL (CSenElement *aPolicy)=0
 Adds a policy in SD Method is used to add a RAW policy obtained by Network or some dynamic means.
virtual TInt RemovePolicyL (TDesC8 &aPolicyName)=0
 Remove a Policy from SD.
virtual TInt RebuildServicePolicyFrom (MSenServicePolicy &aTemplate)=0
 Method reads provider policy class instance values from given template.
virtual TBool Accepts (MSenServicePolicy &aPolicyPattern)=0
 Checks if policies match.
virtual TInt ServicePolicies (RPolicyArray &aPolicies)=0
 Return all of the Services polices from SD only <wsp:Policy> tags.
virtual CSenElementClientPolicy ()=0
 Gets the Client Policy.
virtual TBool ClientPolicy (const TDesC8 &aKey)=0
 Searches for the Client Policy with the given key value.
virtual HBufC8 * ClientPolicyValue (const TDesC8 &aKey)=0
 Gets the Client Policy with the given key value.

Member Function Documentation

virtual TBool MSenServicePolicy::Accepts MSenServicePolicy aPolicyPattern  )  [pure virtual]
 

Checks if policies match.

Returns:
ETrue if policies match, EFalse if not.
virtual TInt MSenServicePolicy::AddPolicyL CSenElement aPolicy  )  [pure virtual]
 

Adds a policy in SD Method is used to add a RAW policy obtained by Network or some dynamic means.

Since:
Series60 4.0
Parameters:
aPolicy is the Policy Element
virtual TBool MSenServicePolicy::ClientPolicy const TDesC8 &  aKey  )  [pure virtual]
 

Searches for the Client Policy with the given key value.

Parameters:
aKey 
Returns:
ETrue If the Client Policy is present with the given key value EFalse If the Client Policy is not present with the given key value
virtual CSenElement* MSenServicePolicy::ClientPolicy  )  [pure virtual]
 

Gets the Client Policy.

virtual HBufC8* MSenServicePolicy::ClientPolicyValue const TDesC8 &  aKey  )  [pure virtual]
 

Gets the Client Policy with the given key value.

Parameters:
aKey 
Returns:
Client Policy Value is returned
virtual TInt MSenServicePolicy::RebuildServicePolicyFrom MSenServicePolicy aTemplate  )  [pure virtual]
 

Method reads provider policy class instance values from given template.

Since:
Series60 4.0
Parameters:
aTemplate from which the values are read.
Returns:
virtual TInt MSenServicePolicy::RemovePolicyL TDesC8 &  aPolicyName  )  [pure virtual]
 

Remove a Policy from SD.

Parameters:
aPolicyName,Policy with this name will be removed from SD
Returns:
  • KErrNone
virtual TInt MSenServicePolicy::ServicePolicies RPolicyArray aPolicies  )  [pure virtual]
 

Return all of the Services polices from SD only <wsp:Policy> tags.

Parameters:
aPolicies 
Returns:
KErrNone KErrNotFound

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

Copyright © Nokia Corporation 2001-2007
Back to top