MSenServicePolicy Class Reference

#include <mw/MSenServicePolicy.h>

class MSenServicePolicy
Public Member Functions
pure virtual TBool Accepts(MSenServicePolicy &)
pure virtual TInt AddPolicyL(CSenElement *)
pure virtual CSenElement *ClientPolicy()
pure virtual TBool ClientPolicy(const TDesC8 &)
pure virtual HBufC8 *ClientPolicyValue(const TDesC8 &)
pure virtual TInt RebuildServicePolicyFrom(MSenServicePolicy &)
pure virtual TInt RemovePolicyL(TDesC8 &)
pure virtual TInt ServicePolicies(RPolicyArray &)

Member Function Documentation

Accepts ( MSenServicePolicy & )

TBool Accepts(MSenServicePolicy &aPolicyPattern)[pure virtual]

Checks if policies match.

Returns: ETrue if policies match, EFalse if not.

AddPolicyL ( CSenElement * )

TInt 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
ParameterDescription
aPolicyis the Policy Element

ClientPolicy ( )

CSenElement *ClientPolicy()[pure virtual]

Gets the Client Policy

ClientPolicy ( const TDesC8 & )

TBool ClientPolicy(const TDesC8 &aKey)[pure virtual]

Searches for the Client Policy with the given key value

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

ClientPolicyValue ( const TDesC8 & )

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

Gets the Client Policy with the given key value

Returns: Client Policy Value is returned

RebuildServicePolicyFrom ( MSenServicePolicy & )

TInt RebuildServicePolicyFrom(MSenServicePolicy &aTemplate)[pure virtual]
Method reads provider policy class instance values from given template.
Since
Series60 4.0
ParameterDescription
aTemplatefrom which the values are read.

RemovePolicyL ( TDesC8 & )

TInt RemovePolicyL(TDesC8 &aPolicyName)[pure virtual]

Remove a Policy from SD

Returns: KErrNone

ServicePolicies ( RPolicyArray & )

TInt ServicePolicies(RPolicyArray &aPolicies)[pure virtual]
Getter for ServicePolicies
Since
Series60 4.0

Returns: Return all of the Services polices from SD only <wsp:Policy> tags KErrNone KErrNotFound