9 --> |
9 --> |
10 <!DOCTYPE concept |
10 <!DOCTYPE concept |
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
12 <concept id="GUID-1197F032-1B73-58E1-8B45-E5D58B9DF788" xml:lang="en"><title>Domain |
12 <concept id="GUID-1197F032-1B73-58E1-8B45-E5D58B9DF788" xml:lang="en"><title>Domain |
13 Management Policy DLL</title><shortdesc>This provides an implementation of the domain tree, and a suitable |
13 Management Policy DLL</title><shortdesc>This provides an implementation of the domain tree, and a suitable |
14 implementation of the <apiname>DmPolicy</apiname> class that the domain manager |
14 implementation of the <codeph>DmPolicy</codeph> class that the domain manager |
15 uses to access that tree.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
15 uses to access that tree.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
16 <p>A base port must supply a Domain Policy DLL that defines a domain tree. |
16 <p>A base port must supply a Domain Policy DLL that defines a domain tree. |
17 The domain manager uses the domain tree, which represents the domain hierarchy. </p> |
17 The domain manager uses the domain tree, which represents the domain hierarchy. </p> |
18 <p>The domain tree is a static structure that is defined by domain management |
18 <p>The domain tree is a static structure that is defined by domain management |
19 policy at system initialization, and remains fixed after system initialization. </p> |
19 policy at system initialization, and remains fixed after system initialization. </p> |
22 platform makes is that you supply a Domain Policy DLL. This provides an implementation |
22 platform makes is that you supply a Domain Policy DLL. This provides an implementation |
23 of the domain tree, and a suitable implementation of the <xref href="GUID-15CAA28D-943B-3B92-B4E1-8AA466DFA407.dita"><apiname>DmPolicy</apiname></xref> class |
23 of the domain tree, and a suitable implementation of the <xref href="GUID-15CAA28D-943B-3B92-B4E1-8AA466DFA407.dita"><apiname>DmPolicy</apiname></xref> class |
24 that the domain manager uses to access that tree. A default implementation |
24 that the domain manager uses to access that tree. A default implementation |
25 is provided by Symbian platform. </p> |
25 is provided by Symbian platform. </p> |
26 <fig id="GUID-C902A1BA-C300-5A93-8385-F4D39FB6F86A"> |
26 <fig id="GUID-C902A1BA-C300-5A93-8385-F4D39FB6F86A"> |
27 <image href="GUID-CE3C8A77-8797-53FB-984E-A91A413BA254_d0e363473_href.png" placement="inline"/> |
27 <image href="GUID-CE3C8A77-8797-53FB-984E-A91A413BA254_d0e384696_href.png" placement="inline"/> |
28 </fig> |
28 </fig> |
29 <p>The domain hierarchy itself is defined in terms of a simple array of <xref href="GUID-15A31C41-77E0-3E6D-B106-D4FBFA9A52C6.dita"><apiname>TDmDomainSpec</apiname></xref> objects. |
29 <p>The domain hierarchy itself is defined in terms of a simple array of <xref href="GUID-15A31C41-77E0-3E6D-B106-D4FBFA9A52C6.dita"><apiname>TDmDomainSpec</apiname></xref> objects. |
30 Each <codeph>TDmDomainSpec</codeph> item defines a domain, its characteristics, |
30 Each <codeph>TDmDomainSpec</codeph> item defines a domain, its characteristics, |
31 and its position in the domain hierarchy. A default domain hierarchy is supplied |
31 and its position in the domain hierarchy. A default domain hierarchy is supplied |
32 by Symbian platform, but domain management policy can define additional domain |
32 by Symbian platform, but domain management policy can define additional domain |
33 identifiers, <xref href="GUID-4F284AB0-85A5-3871-B973-8BCAB4AA91BC.dita"><apiname>TDmDomainId</apiname></xref> types, and consequently domains. |
33 identifiers, <xref href="GUID-4F284AB0-85A5-3871-B973-8BCAB4AA91BC.dita"><apiname>TDmDomainId</apiname></xref> types, and consequently domains. |
34 The only requirement that the domain manager makes is that the root of the |
34 The only requirement that the domain manager makes is that the root of the |
35 domain tree must have domain Id <codeph>KDmIdRoot</codeph>. </p> |
35 domain tree must have domain Id <codeph>KDmIdRoot</codeph>. </p> |
36 <fig id="GUID-7590D6B6-A264-58A6-8764-8491020B921C"> |
36 <fig id="GUID-7590D6B6-A264-58A6-8764-8491020B921C"> |
37 <title> Default domain tree </title> |
37 <title> Default domain tree </title> |
38 <image href="GUID-32C58139-E341-5A15-B20C-D3EA4117AC6E_d0e363498_href.png" placement="inline"/> |
38 <image href="GUID-32C58139-E341-5A15-B20C-D3EA4117AC6E_d0e384721_href.png" placement="inline"/> |
39 </fig> |
39 </fig> |
40 <p>The default domain hierarchy supplied by Symbian platform in <filepath>domainpolicy.cpp</filepath> is |
40 <p>The default domain hierarchy supplied by Symbian platform in <filepath>domainpolicy.cpp</filepath> is |
41 simply: </p> |
41 simply: </p> |
42 <codeblock id="GUID-89939191-2C55-54B5-BCBA-DA8D1430D849" xml:space="preserve">static const TDmDomainSpec DomainHierarchy[] = |
42 <codeblock id="GUID-89939191-2C55-54B5-BCBA-DA8D1430D849" xml:space="preserve">static const TDmDomainSpec DomainHierarchy[] = |
43 |
43 |