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()
    voidExecuteL()
    voidHandleMultiDbSearchDeleted()
    CPosLmMultiDbSearchOperation *NewL(CPosLmMultiDbSearch *, const CPosLmSearchCriteria &, CPosLmMultiDbSortPref *, TBool)
    voidNextStep(TRequestStatus &, TReal32 &)
    TInt OperationCallBack(TAny *)
    Private Member Functions
    CPosLmMultiDbSearchOperation(CPosLmMultiDbSearch *, TBool)
    voidAppendAsActiveOperationL(CPosLmOperation *)
    TReal32 CalculateAsyncStepProgress()
    voidCalculateProgress()
    TReal32 CalculateSyncStepProgress()
    voidCompleteClientRequest()
    voidConstructL(const CPosLmSearchCriteria &, CPosLmMultiDbSortPref *)
    CPosLmOperation *CreateSearchOpL()
    TInt DoOperationCallBack(CPosLmActiveOperation *)
    voidExecuteAsyncStep()
    voidExecuteSyncStep()
    voidExecuteSyncStepL()
    voidHandleOperationCompleted()
    voidIncrementIndexAndSearchStatus()
    voidIncrementSearchStatus()
    voidIncrementSearchStep()
    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
    enumTPosLmOperationStatus { EOperationNotStarted = 0, EAsyncStarted, ESyncStarted, EOperationCompleted }
    Private Member Enumerations
    enumTPosLmMultiAsyncSearchStatus {
    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,
    TBoolaSearchOnlyPreviousMatches
    )[private]

    C++ default constructor.

    Parameters

    CPosLmMultiDbSearch * aMultiDbSearch
    TBool aSearchOnlyPreviousMatches

    ~CPosLmMultiDbSearchOperation()

    ~CPosLmMultiDbSearchOperation()[virtual]

    Destructor.

    Member Functions Documentation

    AppendAsActiveOperationL(CPosLmOperation *)

    voidAppendAsActiveOperationL(CPosLmOperation *aOperation)[private]

    Parameters

    CPosLmOperation * aOperation

    CalculateAsyncStepProgress()

    TReal32 CalculateAsyncStepProgress()[private]

    CalculateProgress()

    voidCalculateProgress()[private]

    CalculateSyncStepProgress()

    TReal32 CalculateSyncStepProgress()[private]

    CompleteClientRequest()

    voidCompleteClientRequest()[private]

    ConstructL(const CPosLmSearchCriteria &, CPosLmMultiDbSortPref *)

    voidConstructL(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()

    voidExecuteAsyncStep()[private]

    ExecuteL()

    voidExecuteL()[virtual]

    From CPosLmOperation.

    Synchronous execution of the operation.

    When this function returns, the operation has successfully finished.

    ExecuteSyncStep()

    voidExecuteSyncStep()[private]

    ExecuteSyncStepL()

    voidExecuteSyncStepL()[private]

    HandleMultiDbSearchDeleted()

    voidHandleMultiDbSearchDeleted()

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

    HandleOperationCompleted()

    voidHandleOperationCompleted()[private]

    IncrementIndexAndSearchStatus()

    voidIncrementIndexAndSearchStatus()[private]

    IncrementSearchStatus()

    voidIncrementSearchStatus()[private]

    IncrementSearchStep()

    voidIncrementSearchStep()[private]

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

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

    Two-phased constructor.

    Parameters

    CPosLmMultiDbSearch * aMultiDbSearchA pointer to the multi db search object.
    const CPosLmSearchCriteria & aCriteriaThe search criteria.
    CPosLmMultiDbSortPref * aSortPrefA pointer to the sort preference object. This class takes ownership.
    TBool aSearchOnlyPreviousMatchesThis flag may be used to perform a search within the results of previous search.

    NextStep(TRequestStatus &, TReal32 &)

    voidNextStep(TRequestStatus &aStatus,
    TReal32 &aProgress
    )[virtual]

    From CPosLmOperation.

    Performs one step of the operation asynchronously.

    Parameters

    TRequestStatus & aStatusThe 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 & aProgressWill 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]