CServicePolicy Class Reference

class CServicePolicy : public CSenDomFragment

/** Example structure of ServicePolicy XML fragment:

<ServicePolicy> </ServicePolicy>

Public Member Functions
~CServicePolicy ()
TBool Accepts ( MSenServicePolicy &)
TInt AddClientPolicyL ( CSenElement *)
TInt AddPolicyL ( CSenElement *)
CSenElement * ClientPolicy ()
TBool ClientPolicy (const TDesC8 &)
HBufC8 * ClientPolicyValue (const TDesC8 &)
CServicePolicy * NewL ()
CServicePolicy * NewLC ()
TInt RebuildServicePolicyFrom ( MSenServicePolicy &)
TInt RemovePolicyL ( TDesC8 &)
TInt ServicePolicies ( RPolicyArray &)
Protected Member Functions
CServicePolicy ()
void BaseConstructL (const TDesC8 &)
Private Member Functions
TBool AcceptsL ( MSenServicePolicy &)
void AddAppicationElementsL ( CSenElement *)
void AddApplicationInfoElementsL ( CSenElement *)
void AddDeviceElementsL ( CSenElement *)
void AddOSElementsL ( CSenElement *)
void AddUserAgentElementsL ( CSenElement *)
TInt AddWspPolicyL ( CSenElement *)
void GenerateDeviceIdL ( CSenElement *)
TPtrC8 PolicyIdL ( CSenElement *)
TPtrC8 PolicyNameL ( CSenElement *)
TPtrC8 PolicyUriL ( CSenElement *)
TInt RebuildServicePolicyFromL ( MSenServicePolicy &)
TBool ValidatePolicy ( CSenElement *)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CSenBaseFragment::AllocContentSaverL()
CSenBaseFragment::AsElement()
CSenBaseFragment::AsXmlL()
CSenBaseFragment::AsXmlUnicodeL()
CSenBaseFragment::BuildFrom(const TDesC8 &)
CSenBaseFragment::CSenBaseFragment()
CSenBaseFragment::ConsistsOfL(MSenFragment &)
CSenBaseFragment::Content()
CSenBaseFragment::ContentOf(const TDesC8 &)
CSenBaseFragment::DelegateParsingL(MSenFragment &)
CSenBaseFragment::DelegateParsingL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &)
CSenBaseFragment::DetachL()
CSenBaseFragment::EndElementL(const TDesC8 &,const TDesC8 &,const TDesC8 &)
CSenBaseFragment::EnsureNamespace(const TDesC8 &)
CSenBaseFragment::ExtractElement()
CSenBaseFragment::LocalName()const
CSenBaseFragment::Namespace(const TDesC8 &)
CSenBaseFragment::NsPrefix()const
CSenBaseFragment::NsUri()const
CSenBaseFragment::ParseL(const TDesC8 &)
CSenBaseFragment::Reader()
CSenBaseFragment::ResetContentL()
CSenBaseFragment::SaveNamespacesL(const RAttributeArray &,TBool)
CSenBaseFragment::SetContentOfL(const TDesC8 &,const TDesC8 &)
CSenBaseFragment::SetOwner(MSenFragment &)
CSenBaseFragment::SetReader(CSenXmlReader &)
CSenBaseFragment::StartEntity(TDesC8 &)
CSenBaseFragment::WriteAsXMLToL(RWriteStream &)
CSenBaseFragment::~CSenBaseFragment()
CSenDomFragment::BaseConstructL(CSenXmlReader &)
CSenDomFragment::BaseConstructL(const CSenElement &)
CSenDomFragment::BaseConstructL(const TDesC8 &,const TDesC8 &)
CSenDomFragment::BaseConstructL(const TDesC8 &,const TDesC8 &,const TDesC8 &)
CSenDomFragment::BaseConstructL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &)
CSenDomFragment::BaseConstructL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &,CSenElement &)
CSenDomFragment::CSenDomFragment()
CSenDomFragment::CharactersL(const TDesC8 &,TInt,TInt)
CSenDomFragment::ExpandL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &)
CSenDomFragment::NewL(const CSenElement &)
CSenDomFragment::NewL(const TDesC8 &)
CSenDomFragment::NewL(const TDesC8 &,const TDesC8 &)
CSenDomFragment::NewL(const TDesC8 &,const TDesC8 &,const TDesC8 &)
CSenDomFragment::NewL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &)
CSenDomFragment::NewL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &,CSenElement &)
CSenDomFragment::ParseWithL(CSenXmlReader &)
CSenDomFragment::ResumeParsingFromL(const TDesC8 &,const TDesC8 &,const TDesC8 &)
CSenDomFragment::SetAttributesL(const RAttributeArray &)
CSenDomFragment::StartElementL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &)
CSenDomFragment::WriteEndElementL(const TDesC8 &,const TDesC8 &,const TDesC8 &)
CSenDomFragment::WriteStartElementL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &)
CSenDomFragment::~CSenDomFragment()
Inherited Attributes
CSenBaseFragment::iState
CSenBaseFragment::iWs
CSenBaseFragment::iXmlReader
CSenBaseFragment::ipElement
CSenBaseFragment::ipOwner
CSenDomFragment::ipDomDelegate

Constructor & Destructor Documentation

CServicePolicy()

CServicePolicy ( ) [protected]

C++ default constructor.

~CServicePolicy()

~CServicePolicy ( ) [virtual]

Destructor

Member Functions Documentation

Accepts(MSenServicePolicy &)

TBool Accepts ( MSenServicePolicy & aPolicyPattern ) [virtual]

Parameters

MSenServicePolicy & aPolicyPattern

AcceptsL(MSenServicePolicy &)

TBool AcceptsL ( MSenServicePolicy & aPolicyPattern ) [private]

Leaving variants of the functions.

Parameters

MSenServicePolicy & aPolicyPattern

AddAppicationElementsL(CSenElement *)

void AddAppicationElementsL ( CSenElement * aApplicationElement ) [private]

Parameters

CSenElement * aApplicationElement

AddApplicationInfoElementsL(CSenElement *)

void AddApplicationInfoElementsL ( CSenElement * aApplicationInfoElement ) [private]

Parameters

CSenElement * aApplicationInfoElement

AddClientPolicyL(CSenElement *)

TInt AddClientPolicyL ( CSenElement * aTemplate )

Parameters

CSenElement * aTemplate

AddDeviceElementsL(CSenElement *)

void AddDeviceElementsL ( CSenElement * aDeviceElement ) [private]

Parameters

CSenElement * aDeviceElement

AddOSElementsL(CSenElement *)

void AddOSElementsL ( CSenElement * aOSElement ) [private]

Parameters

CSenElement * aOSElement

AddPolicyL(CSenElement *)

TInt AddPolicyL ( CSenElement * aPolicy ) [virtual]

Parameters

CSenElement * aPolicy

AddUserAgentElementsL(CSenElement *)

void AddUserAgentElementsL ( CSenElement * aUserAgentElement ) [private]

Parameters

CSenElement * aUserAgentElement

AddWspPolicyL(CSenElement *)

TInt AddWspPolicyL ( CSenElement * aPolicy ) [private]

Parameters

CSenElement * aPolicy

BaseConstructL(const TDesC8 &)

void BaseConstructL ( const TDesC8 & aLocalName ) [protected]

By default Symbian 2nd phase constructor is private.

Parameters

const TDesC8 & aLocalName

ClientPolicy()

CSenElement * ClientPolicy ( ) [virtual]

ClientPolicy(const TDesC8 &)

TBool ClientPolicy ( const TDesC8 & aKey ) [virtual]

Parameters

const TDesC8 & aKey

ClientPolicyValue(const TDesC8 &)

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

Parameters

const TDesC8 & aKey

GenerateDeviceIdL(CSenElement *)

void GenerateDeviceIdL ( CSenElement * aPolicy ) [private]

Parameters

CSenElement * aPolicy

NewL()

CServicePolicy * NewL ( ) [static]

Two-phased constructors. These parameterless constructors are ment to be used for example before parsing XML stream.

NewLC()

CServicePolicy * NewLC ( ) [static]

PolicyIdL(CSenElement *)

TPtrC8 PolicyIdL ( CSenElement * aPolicy ) [private]

Parameters

CSenElement * aPolicy

PolicyNameL(CSenElement *)

TPtrC8 PolicyNameL ( CSenElement * aPolicy ) [private]

Parameters

CSenElement * aPolicy

PolicyUriL(CSenElement *)

TPtrC8 PolicyUriL ( CSenElement * aPolicy ) [private]

Parameters

CSenElement * aPolicy

RebuildServicePolicyFrom(MSenServicePolicy &)

TInt RebuildServicePolicyFrom ( MSenServicePolicy & aTemplate ) [virtual]

Parameters

MSenServicePolicy & aTemplate

RebuildServicePolicyFromL(MSenServicePolicy &)

TInt RebuildServicePolicyFromL ( MSenServicePolicy & aTemplate ) [private]

Parameters

MSenServicePolicy & aTemplate

RemovePolicyL(TDesC8 &)

TInt RemovePolicyL ( TDesC8 & aPolicyName ) [virtual]

Parameters

TDesC8 & aPolicyName

ServicePolicies(RPolicyArray &)

TInt ServicePolicies ( RPolicyArray & aPolicies ) [virtual]

Parameters

RPolicyArray & aPolicies

ValidatePolicy(CSenElement *)

TBool ValidatePolicy ( CSenElement * aPolicy ) [private]

Parameters

CSenElement * aPolicy