|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
#include <LandmarksEngineBase.h>
Inheritance diagram for CLandmarksEngineBase:

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. | |
Definition at line 34 of file LandmarksEngineBase.h.
|
|
Destructor. Definition at line 51 of file LandmarksEngineBase.cpp. References iLmOpWrapper, and iSearcher. 00052 { 00053 delete iLmOpWrapper; 00054 delete iSearcher; 00055 }
|
|
|
C++ constructor.
Definition at line 31 of file LandmarksEngineBase.cpp. 00033 : CActive(CActive::EPriorityStandard), 00034 iDb(aDb) 00035 { 00036 CActiveScheduler::Add(this); 00037 }
|
|
|
SetPrio updates the iPriority data member.
Definition at line 63 of file LandmarksEngineBase.cpp. References iPriority. 00064 { 00065 iPriority = aPriority; 00066 }
|
|
|
RunL should be implemented by sub classes. Implemented in CLandmarksCategoriesEngine, and CLandmarksEngine. |
|
|
DoCancel should be implemented by sub classes. Implemented in CLandmarksCategoriesEngine, and CLandmarksEngine. |
|
|
RunError should be implemented by sub classes in case RunL might leave. Implemented in CLandmarksCategoriesEngine, and CLandmarksEngine. |
|
|
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 }
|
|
|
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 |