S60 3rd Edition SDK for Symbian OS
Example Applications Guide

CLandmarksEngineBase Class Reference

#include <LandmarksEngineBase.h>

Inheritance diagram for CLandmarksEngineBase:

CLandmarksCategoriesEngine CLandmarksEngine List of all members.

Public Member Functions

 ~CLandmarksEngineBase ()
void SetPrio (CActive::TPriority aPriority)

Protected Member Functions

virtual void RunL ()=0
virtual void DoCancel ()=0
virtual TInt RunError (TInt aError)=0
 CLandmarksEngineBase (CPosLandmarkDatabase &aDb)
void ConstructL ()
void SetPriorityAndSetActive ()

Protected Attributes

CPosLandmarkDatabase & iDb
 The default landmark database.
CPosLandmarkSearch * iSearcher
 Used for searching the database.
CLandmarksLmOpWrapper * iLmOpWrapper
 An active object wrapping a CPosLmOperation object.

Private Attributes

CActive::TPriority iPriority
 Used when setting priority of this active object.

Detailed Description

Abstract base class for sub engines.

Definition at line 34 of file LandmarksEngineBase.h.


Constructor & Destructor Documentation

CLandmarksEngineBase::~CLandmarksEngineBase (   ) 
 

Destructor.

Definition at line 51 of file LandmarksEngineBase.cpp.

References iLmOpWrapper, and iSearcher.

00052     {
00053     delete iLmOpWrapper;
00054     delete iSearcher;
00055     }

CLandmarksEngineBase::CLandmarksEngineBase (  CPosLandmarkDatabase &  aDb  )  [protected]
 

C++ constructor.

Parameters:
aDb an instance of the default landmark database

Definition at line 31 of file LandmarksEngineBase.cpp.

00033 :   CActive(CActive::EPriorityStandard), 
00034     iDb(aDb)
00035     {
00036     CActiveScheduler::Add(this);
00037     }


Member Function Documentation

void CLandmarksEngineBase::SetPrio (  CActive::TPriority  aPriority  ) 
 

SetPrio updates the iPriority data member.

Parameters:
aPriority the priority to set

Definition at line 63 of file LandmarksEngineBase.cpp.

References iPriority.

00064     {
00065     iPriority = aPriority;
00066     }

virtual void CLandmarksEngineBase::RunL (   )  [protected, pure virtual]
 

RunL should be implemented by sub classes.

Implemented in CLandmarksCategoriesEngine, and CLandmarksEngine.

virtual void CLandmarksEngineBase::DoCancel (   )  [protected, pure virtual]
 

DoCancel should be implemented by sub classes.

Implemented in CLandmarksCategoriesEngine, and CLandmarksEngine.

virtual TInt CLandmarksEngineBase::RunError (  TInt  aError  )  [protected, pure virtual]
 

RunError should be implemented by sub classes in case RunL might leave.

Implemented in CLandmarksCategoriesEngine, and CLandmarksEngine.

void CLandmarksEngineBase::ConstructL (   )  [protected]
 

By default Symbian 2nd phase constructor is private.

Reimplemented in CLandmarksCategoriesEngine, and CLandmarksEngine.

Definition at line 44 of file LandmarksEngineBase.cpp.

References iDb, iLmOpWrapper, and iSearcher.

00045     {
00046     iSearcher = CPosLandmarkSearch::NewL(iDb);
00047     iLmOpWrapper = new (ELeave) CLandmarksLmOpWrapper();
00048     }

void CLandmarksEngineBase::SetPriorityAndSetActive (   )  [protected]
 

SetPriorityAndSetActive updates the priority of this active object if necessary and sets it to active. This method should be used by sub classes rather than CActive::SetActive()

Definition at line 74 of file LandmarksEngineBase.cpp.

References iPriority.

00075     {
00076     if (iPriority != Priority())
00077         {
00078         CActive::SetPriority(iPriority);
00079         }
00080     SetActive();
00081     }


© Nokia 2006

Back to top