|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-78DCD55A-8B25-447A-B584-14EBB00C4EC9" xml:lang="en"><title>Packaging |
|
13 the Privacy Controller</title><shortdesc>This topic describes how to package the Privacy Controller with |
|
14 the capabilities <codeph>Location</codeph>, <codeph>ReadDeviceData</codeph> and <codeph>WriteDeviceData</codeph>. </shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
15 <section> <title>Defining the MMP file</title> <p>The example |
|
16 below shows the MMP file for an example Privacy Controller.</p><codeblock xml:space="preserve">/* |
|
17 ============================================================================ |
|
18 Name : LicenseeLBSPrivacyController.mmp |
|
19 Description : This is the project specification file for LicenseeLBSPrivacyController. |
|
20 ============================================================================ |
|
21 */ |
|
22 |
|
23 TARGET LicenseeLBSPrivacyController.exe |
|
24 TARGETTYPE exe |
|
25 UID 0x100039CE 0xE3753FED |
|
26 |
|
27 USERINCLUDE ..\inc |
|
28 SYSTEMINCLUDE \epoc32\include |
|
29 SYSTEMINCLUDE \epoc32\include\lbs |
|
30 |
|
31 SOURCEPATH ..\src |
|
32 SOURCE MyLBSPrivacyController.cpp |
|
33 |
|
34 LIBRARY euser.lib |
|
35 LIBRARY lbsprivacycontroller.lib |
|
36 LIBRARY lbsloccommon.lib |
|
37 |
|
38 // Required capabilities for a Privacy Controller</codeblock><p>The most important |
|
39 points about this file are: </p><ul> |
|
40 <li><p>In this case target type is <codeph>EXE</codeph> and <codeph>UID2 = |
|
41 0x100039CE</codeph> for a GUI app. A Privacy Controller could be implemented |
|
42 without a UI if user interaction is not required. The <codeph>UID3</codeph> shown |
|
43 is just an example and for a real Privacy Controller a Symbian-issued UID |
|
44 must be used.</p></li> |
|
45 <li><p>The Privacy Controller code needs to link to <filepath>lbsprivacycontroller.lib</filepath> and <filepath>lbsloccommon.lib</filepath>. </p></li> |
|
46 <li><p>The Privacy Controller requires the capabilities <codeph>Location</codeph> , <codeph>ReadDeviceData</codeph> and <codeph>WriteDeviceData</codeph> .</p></li> |
|
47 </ul> </section> |
|
48 </conbody></concept> |