equal
deleted
inserted
replaced
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-D985119C-6B6A-4238-B1B6-7D815B24EB45" xml:lang="en"><title>Defining |
12 <concept id="GUID-D985119C-6B6A-4238-B1B6-7D815B24EB45" xml:lang="en"><title>Defining |
13 a Privacy Controller Observer Class</title><shortdesc>To write a Privacy Controller a licensee must define a Privacy |
13 a Privacy Controller Observer Class</title><shortdesc>To write a Privacy Controller a licensee must define a Privacy |
14 Controller observer class derived from <apiname>MLbsPrivacyObserver</apiname> (or <apiname>MLbsPrivacyObserver2</apiname> for |
14 Controller observer class derived from <codeph>MLbsPrivacyObserver</codeph> (or <codeph>MLbsPrivacyObserver2</codeph> for |
15 a Privacy Controller that must be automatically shutdown by the LBS subsystem |
15 a Privacy Controller that must be automatically shutdown by the LBS subsystem |
16 when all privacy requests have completed. This is required when the LBS subsystem |
16 when all privacy requests have completed. This is required when the LBS subsystem |
17 is configured and built in the Standalone Privacy Mode configuration).</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
17 is configured and built in the Standalone Privacy Mode configuration).</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
18 <p>On startup the Privacy Controller must register itself with the LBS subsystem |
18 <p>On startup the Privacy Controller must register itself with the LBS subsystem |
19 by calling <xref href="GUID-DA9AD188-944E-36C0-98A6-4F9B6FB2A091.dita#GUID-DA9AD188-944E-36C0-98A6-4F9B6FB2A091/GUID-DB38D39A-780E-3F36-BD02-E770AC1C513B"><apiname>CLbsPrivacyController::NewL()</apiname></xref>, passing a reference |
19 by calling <xref href="GUID-DA9AD188-944E-36C0-98A6-4F9B6FB2A091.dita#GUID-DA9AD188-944E-36C0-98A6-4F9B6FB2A091/GUID-DB38D39A-780E-3F36-BD02-E770AC1C513B"><apiname>CLbsPrivacyController::NewL()</apiname></xref>, passing a reference |
86 |
86 |
87 #endif // __MYLBSPRIVACYCONTROLLER_H__</codeblock> |
87 #endif // __MYLBSPRIVACYCONTROLLER_H__</codeblock> |
88 <p>Note that the observer class contains a member variable of class <xref href="GUID-DA9AD188-944E-36C0-98A6-4F9B6FB2A091.dita"><apiname>CLbsPrivacyController</apiname></xref> which |
88 <p>Note that the observer class contains a member variable of class <xref href="GUID-DA9AD188-944E-36C0-98A6-4F9B6FB2A091.dita"><apiname>CLbsPrivacyController</apiname></xref> which |
89 is used to register the Privacy Controller with the LBS subsystem and to return |
89 is used to register the Privacy Controller with the LBS subsystem and to return |
90 privacy responses.</p> |
90 privacy responses.</p> |
91 <section><title>Registering the Privacy Controller with the LBS subsystem</title> |
91 <section id="GUID-8B002BCC-5B26-46CD-B4BB-D42A8A43BE28"><title>Registering the Privacy Controller with the LBS subsystem</title> |
92 <p>The code below shows how a Privacy Controller can register itself |
92 <p>The code below shows how a Privacy Controller can register itself |
93 with LBS in order to receive privacy requests. The <codeph>ConstructL()</codeph> method |
93 with LBS in order to receive privacy requests. The <codeph>ConstructL()</codeph> method |
94 calls <xref href="GUID-DA9AD188-944E-36C0-98A6-4F9B6FB2A091.dita#GUID-DA9AD188-944E-36C0-98A6-4F9B6FB2A091/GUID-DB38D39A-780E-3F36-BD02-E770AC1C513B"><apiname>CLbsPrivacyController::NewL()</apiname></xref>, which registers the |
94 calls <xref href="GUID-DA9AD188-944E-36C0-98A6-4F9B6FB2A091.dita#GUID-DA9AD188-944E-36C0-98A6-4F9B6FB2A091/GUID-DB38D39A-780E-3F36-BD02-E770AC1C513B"><apiname>CLbsPrivacyController::NewL()</apiname></xref>, which registers the |
95 Privacy Controller with the LBS subsystem. </p><codeblock xml:space="preserve">CMyLbsPrivacyControllerObserver* CMyLbsPrivacyControllerObserver::NewL() |
95 Privacy Controller with the LBS subsystem. </p><codeblock xml:space="preserve">CMyLbsPrivacyControllerObserver* CMyLbsPrivacyControllerObserver::NewL() |
96 { |
96 { |