equal
deleted
inserted
replaced
8 Contributors: |
8 Contributors: |
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-D01CE5F5-CC66-4976-B67F-A6D2E02FFEA5" xml:lang="en"><title>Implementing |
12 <concept id="GUID-D01CE5F5-CC66-4976-B67F-A6D2E02FFEA5" xml:lang="en"><title>Implementing |
13 the MLbsPrivacyObserver Methods</title><shortdesc>A Privacy Controller must implement the virtual functions of the <apiname>MLbsPrivacyObserver</apiname> interface |
13 the MLbsPrivacyObserver Methods</title><shortdesc>A Privacy Controller must implement the virtual functions of the <codeph>MLbsPrivacyObserver</codeph> interface |
14 (and the shutdown function of the <apiname>MLbsPrivacyObserver2</apiname> interface |
14 (and the shutdown function of the <codeph>MLbsPrivacyObserver2</codeph> interface |
15 if appropriate). </shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
15 if appropriate). </shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
16 <p>Note that because the design of a Privacy Controller is a licensee task, |
16 <p>Note that because the design of a Privacy Controller is a licensee task, |
17 it is only possible to describe the implementation of these functions in broad |
17 it is only possible to describe the implementation of these functions in broad |
18 outline here. <xref href="GUID-76C6B540-DCA5-33CB-9ABD-8951A2F1DD5D.dita"><apiname>MLbsPrivacyObserver</apiname></xref> defines three methods: </p> |
18 outline here. <xref href="GUID-76C6B540-DCA5-33CB-9ABD-8951A2F1DD5D.dita"><apiname>MLbsPrivacyObserver</apiname></xref> defines three methods: </p> |
19 <ul> |
19 <ul> |
181 The LBS subsystem notifies the Privacy Controller |
181 The LBS subsystem notifies the Privacy Controller |
182 when a request is complete |
182 when a request is complete |
183 */ |
183 */ |
184 }</codeblock></li> |
184 }</codeblock></li> |
185 </ul> |
185 </ul> |
186 <section> <title>Implementing the MLbsPrivacyObserver2 shutdown method</title> |
186 <section id="GUID-3420C82C-9B15-43A6-89BC-32B23A368041"> <title>Implementing the MLbsPrivacyObserver2 shutdown method</title> |
187 <p>A Privacy Controller observer must implement <xref href="GUID-BF88837F-1ADC-3DB2-98E5-CFBF75E2BE86.dita"><apiname>MLbsPrivacyObserver2</apiname></xref> if |
187 <p>A Privacy Controller observer must implement <xref href="GUID-BF88837F-1ADC-3DB2-98E5-CFBF75E2BE86.dita"><apiname>MLbsPrivacyObserver2</apiname></xref> if |
188 it is to receive notice to shutdown when the LBS subsystem shuts down (this |
188 it is to receive notice to shutdown when the LBS subsystem shuts down (this |
189 is only supported in the LBS <xref href="GUID-3618ECE9-C22B-5AE2-837E-FEBC55D42330.dita">Standalone |
189 is only supported in the LBS <xref href="GUID-3618ECE9-C22B-5AE2-837E-FEBC55D42330.dita">Standalone |
190 Privacy Mode</xref> configuration). The implementation should |
190 Privacy Mode</xref> configuration). The implementation should ensure that |
191 ensure that any owned resources are freed. </p><codeblock xml:space="preserve">// Privacy Controller is told to shutdown |
191 any owned resources are freed. </p><codeblock xml:space="preserve">// Privacy Controller is told to shutdown |
192 |
192 |
193 void CMyLbsPrivacyControllerObserver2::ProcessCloseDownNotification() |
193 void CMyLbsPrivacyControllerObserver2::ProcessCloseDownNotification() |
194 { |
194 { |
195 /* |
195 /* |
196 Free up all resources allocated by the Privacy Controller |
196 Free up all resources allocated by the Privacy Controller |