CPosLmMultiDbSearchOperation Class Reference

class CPosLmMultiDbSearchOperation : public CPosLmOperation

Operation to search for landmarks or landmark categories from multiple databases.

Inherits from

  • CPosLmMultiDbSearchOperation
Public Member Functions
~CPosLmMultiDbSearchOperation ()
void ExecuteL ()
void HandleMultiDbSearchDeleted ()
CPosLmMultiDbSearchOperation * NewL ( CPosLmMultiDbSearch *, const CPosLmSearchCriteria &, CPosLmMultiDbSortPref *, TBool )
void NextStep ( TRequestStatus &, TReal32 &)
TInt OperationCallBack ( TAny *)
Private Member Functions
CPosLmMultiDbSearchOperation ( CPosLmMultiDbSearch *, TBool )
void AppendAsActiveOperationL ( CPosLmOperation *)
TReal32 CalculateAsyncStepProgress ()
void CalculateProgress ()
TReal32 CalculateSyncStepProgress ()
void CompleteClientRequest ()
void ConstructL (const CPosLmSearchCriteria &, CPosLmMultiDbSortPref *)
CPosLmOperation * CreateSearchOpL ()
TInt DoOperationCallBack (CPosLmActiveOperation *)
void ExecuteAsyncStep ()
void ExecuteSyncStep ()
void ExecuteSyncStepL ()
void HandleOperationCompleted ()
void IncrementIndexAndSearchStatus ()
void IncrementSearchStatus ()
void IncrementSearchStep ()
CPosLmOperation * OpenDbAndCreateInitOpL ()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CPosLmOperation::CPosLmOperation()
CPosLmOperation::~CPosLmOperation()
Public Member Enumerations
enum TPosLmOperationStatus { EOperationNotStarted  = 0, EAsyncStarted , ESyncStarted , EOperationCompleted }
Private Member Enumerations
enum TPosLmMultiAsyncSearchStatus {
ESearchNotStarted  = 0, EOpenDbs , EInitDbs , ECreateSearchOps , ESearchDbs , ESearchCompleted
}
Private Attributes
RPointerArray < CPosLmActiveOperation > iActiveOperations
TReal32 * iClientProgress
TRequestStatus * iClientStatus
CPosLmSearchCriteria * iCriteria
TUint iCurrentDbIndex
CPosLmMultiDbSearch * iMultiDbSearch
TPosLmOperationStatus iOperationStatus
TReal32 iProgress
TBool iSearchOnlyPreviousMatches
TPosLmMultiAsyncSearchStatus iSearchStatus
CPosLmMultiDbSortPref * iSortPref

Constructor & Destructor Documentation

CPosLmMultiDbSearchOperation(CPosLmMultiDbSearch *, TBool)

CPosLmMultiDbSearchOperation ( CPosLmMultiDbSearch * aMultiDbSearch,
TBool aSearchOnlyPreviousMatches
) [private]

C++ default constructor.

Parameters

CPosLmMultiDbSearch * aMultiDbSearch
TBool aSearchOnlyPreviousMatches

~CPosLmMultiDbSearchOperation()

~CPosLmMultiDbSearchOperation ( ) [virtual]

Destructor.

Member Functions Documentation

AppendAsActiveOperationL(CPosLmOperation *)

void AppendAsActiveOperationL ( CPosLmOperation * aOperation ) [private]

Parameters

CPosLmOperation * aOperation

CalculateAsyncStepProgress()

TReal32 CalculateAsyncStepProgress ( ) [private]

CalculateProgress()

void CalculateProgress ( ) [private]

CalculateSyncStepProgress()

TReal32 CalculateSyncStepProgress ( ) [private]

CompleteClientRequest()

void CompleteClientRequest ( ) [private]

ConstructL(const CPosLmSearchCriteria &, CPosLmMultiDbSortPref *)

void ConstructL ( const CPosLmSearchCriteria & aCriteria,
CPosLmMultiDbSortPref * aSortPref
) [private]

Symbian 2nd phase constructor.

Parameters

const CPosLmSearchCriteria & aCriteria
CPosLmMultiDbSortPref * aSortPref

CreateSearchOpL()

CPosLmOperation * CreateSearchOpL ( ) [private]

DoOperationCallBack(CPosLmActiveOperation *)

TInt DoOperationCallBack ( CPosLmActiveOperation * aActiveOp ) [private]

Parameters

CPosLmActiveOperation * aActiveOp

ExecuteAsyncStep()

void ExecuteAsyncStep ( ) [private]

ExecuteL()

void ExecuteL ( ) [virtual]

From CPosLmOperation .

Synchronous execution of the operation.

When this function returns, the operation has successfully finished.

ExecuteSyncStep()

void ExecuteSyncStep ( ) [private]

ExecuteSyncStepL()

void ExecuteSyncStepL ( ) [private]

HandleMultiDbSearchDeleted()

void HandleMultiDbSearchDeleted ( )

This function must be called by the CPosLmMultiDbSearch class if it is deleted before the search operation has completed.

HandleOperationCompleted()

void HandleOperationCompleted ( ) [private]

IncrementIndexAndSearchStatus()

void IncrementIndexAndSearchStatus ( ) [private]

IncrementSearchStatus()

void IncrementSearchStatus ( ) [private]

IncrementSearchStep()

void IncrementSearchStep ( ) [private]

NewL(CPosLmMultiDbSearch *, const CPosLmSearchCriteria &, CPosLmMultiDbSortPref *, TBool)

CPosLmMultiDbSearchOperation * NewL ( CPosLmMultiDbSearch * aMultiDbSearch,
const CPosLmSearchCriteria & aCriteria,
CPosLmMultiDbSortPref * aSortPref,
TBool aSearchOnlyPreviousMatches
) [static]

Two-phased constructor.

Parameters

CPosLmMultiDbSearch * aMultiDbSearch A pointer to the multi db search object.
const CPosLmSearchCriteria & aCriteria The search criteria.
CPosLmMultiDbSortPref * aSortPref A pointer to the sort preference object. This class takes ownership.
TBool aSearchOnlyPreviousMatches This flag may be used to perform a search within the results of previous search.

NextStep(TRequestStatus &, TReal32 &)

void NextStep ( TRequestStatus & aStatus,
TReal32 & aProgress
) [virtual]

From CPosLmOperation .

Performs one step of the operation asynchronously.

Parameters

TRequestStatus & aStatus The request status. Will be completed when the step has been performed. The request status will be KRequestPending if the step has not completed. It will be KPosLmOperationNotComplete if the step has completed but more steps are needed before the operation has finished. The request status will be KErrNone if the operation has finished successfully.
TReal32 & aProgress Will be set to the progress of the operation when the step has finished.

OpenDbAndCreateInitOpL()

CPosLmOperation * OpenDbAndCreateInitOpL ( ) [private]

OperationCallBack(TAny *)

TInt OperationCallBack ( TAny * aPtr ) [static]

Parameters

TAny * aPtr

Member Enumerations Documentation

Enum TPosLmMultiAsyncSearchStatus

Enumerators

ESearchNotStarted = 0
EOpenDbs
EInitDbs
ECreateSearchOps
ESearchDbs
ESearchCompleted

Enum TPosLmOperationStatus

Enumerators

EOperationNotStarted = 0
EAsyncStarted
ESyncStarted
EOperationCompleted

Member Data Documentation

RPointerArray< CPosLmActiveOperation > iActiveOperations

RPointerArray < CPosLmActiveOperation > iActiveOperations [private]

TReal32 * iClientProgress

TReal32 * iClientProgress [private]

TRequestStatus * iClientStatus

TRequestStatus * iClientStatus [private]

CPosLmSearchCriteria * iCriteria

CPosLmSearchCriteria * iCriteria [private]

TUint iCurrentDbIndex

TUint iCurrentDbIndex [private]

CPosLmMultiDbSearch * iMultiDbSearch

CPosLmMultiDbSearch * iMultiDbSearch [private]

TPosLmOperationStatus iOperationStatus

TPosLmOperationStatus iOperationStatus [private]

TReal32 iProgress

TReal32 iProgress [private]

TBool iSearchOnlyPreviousMatches

TBool iSearchOnlyPreviousMatches [private]

TPosLmMultiAsyncSearchStatus iSearchStatus

TPosLmMultiAsyncSearchStatus iSearchStatus [private]

CPosLmMultiDbSortPref * iSortPref

CPosLmMultiDbSortPref * iSortPref [private]