Create an MMP file for the PSY

This section describes how to create the MMP file for a PSY.

The MMP file for the PSY must declare it as an ECOM plugin and specify the resources it requires.

Create an MMP file for the PSY The MMP file has the format shown in the example below.
TARGET          examplepsy.dll 
TARGETTYPE      PLUGIN
UID             0x10009d8d 0x10001234

CAPABILITY      CAP_ECOM_PLUGIN
SOURCEPATH      ..\src
SOURCE          EPos_ExampleMain.cpp
SOURCE          EPos_CPosExamplePositioner.cpp

USERINCLUDE     ..\src
USERINCLUDE     ..\resource

SYSTEMINCLUDE   \Epoc32\Include
SYSTEMINCLUDE   \Epoc32\Include\oem
SYSTEMINCLUDE   \Epoc32\Include\ecom

SOURCEPATH      ..\resource

START RESOURCE  exampleresource.rss   // uid of dll
TARGET          examplepsy.rsc
TARGETPATH      \resource
END

LIBRARY         euser.lib
LIBRARY         lbs.lib
LIBRARY         eposservercommon.lib
The second UID must be 0x10009d8d and the third UID is the PSY DLL UID (allocated from Symbian). The PSY ECOM implementation must have a trust level of CAP_ECOM_PLUGIN to be loaded by the Location Framework. If the trust level is less than CAP_ECOM_PLUGIN then the PSY cannnot be used by Location Framework. The MMP file must specify \epoc32\include, \epoc32\include\oem, and \epoc32\include\ecom as system includes and euser.lib, lbs.lib and eposservercommon.lib as libraries.

A developer must create a subclass of CPositioner to implement a PSY.

See Implement a subclass of CPositioner for more information.