DmPolicy Class Reference

class DmPolicy

A set of static functions implemented by a device's domain policy DLL that the domain manager uses to access, and release, the domain hierarchy specification.

Public Member Functions
IMPORT_C const TDmDomainSpec *GetDomainSpecs()
IMPORT_C TIntGetPolicy(TDmHierarchyPolicy &)
IMPORT_C voidRelease(const TDmDomainSpec *)

Member Functions Documentation

GetDomainSpecs()

IMPORT_C const TDmDomainSpec *GetDomainSpecs()[static]

Gets access to the domain hierarchy specification.

The domain hierarchy specification is a simple array of TDmDomainSpec items.

The default implementation provided by Symbian OS just returns a pointer to the domain hierarchy specification array.

GetPolicy(TDmHierarchyPolicy &)

IMPORT_C TIntGetPolicy(TDmHierarchyPolicy &aPolicy)[static]

Retrieves the domain hierarchy policy.

Parameters

TDmHierarchyPolicy & aPolicya client-supplied policy which on exit will contain a copy of the policy for the requested domain hierarchy Id.

Release(const TDmDomainSpec *)

IMPORT_C voidRelease(const TDmDomainSpec *aDomainSpec)[static]

Releases access to the specified domain hierarchy specification.

The domain hierarchy specification is a simple array of TDmDomainSpec items.

As the default Symbian OS implementation of GetDomainSpecs() just returns a pointer to the domain hierarchy specification array, then the default implementation of Release() is empty. The API is provided to permit more complex implementations, if required.

Parameters

const TDmDomainSpec * aDomainSpecA pointer to the domain hierarchy specification array.