CSearchClientSessionImp Class Reference

class CSearchClientSessionImp : public CActive

This class represents an implementation to the client side session to search framework. This class is dervied from CActive and is used to impliment the session in the \ client side searchclient.lib

Inherits from

Public Member Functions
~CSearchClientSessionImp()
voidCancelResult()
voidCancelSearch()
HBufC8 *GetLaunchInfoL(const CSearchDocumentId &)
voidGetResultsL(const RPointerArray< CSearchDocumentId > &, MSearchResultRetrieveObserver *)
voidGetSupportedContentL(RPointerArray< CSearchContent > &, TUid)
voidGetSupportedServicesL(RArray< TUid > &)
TBool IsSearching()
voidLaunchApplicationL(const CSearchDocumentId &)
CSearchClientSessionImp *NewL()
CSearchClientSessionImp *NewLC()
voidSearchL(const CSearchQuery &, const TSearchThreshold &, MSearchQueryObserver *)
Private Member Functions
CSearchClientSessionImp()
voidConstructL()
voidContinueSearchingLightL()
voidDoCancel()
TInt RunError(TInt)
voidRunL()
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
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()
Inherited Enumerations
CActive:TPriority
Private Attributes
TBool iGetRes
RPointerArray< CSearchLightResult >iLightResultArray
TInt iMaxresults
MSearchQueryObserver *iObserver
RPointerArray< CSearchDocumentId >iResultIDArray
MSearchResultRetrieveObserver *iRetrieveObserver
RSearchClient iSearchClient
TPckgBuf< TInt >iSearchCount
TPckgBuf< TInt >iSearchFinished
TBool iSearchPending
TPckgBuf< TInt >iSearchRes
TInt iSearchTotalResultsFound
RPointerArray< CSearchResult >iheavyresult
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CSearchClientSessionImp()

CSearchClientSessionImp()[private]

Performs the first phase of two phase construction.

~CSearchClientSessionImp()

~CSearchClientSessionImp()[virtual]

Destructor

Member Functions Documentation

CancelResult()

voidCancelResult()

Cancels the currently ongoing search.

CancelSearch()

voidCancelSearch()

Cancels the currently ongoing search.

ConstructL()

voidConstructL()[private]

Performs the second phase construction.

ContinueSearchingLightL()

voidContinueSearchingLightL()[private]

Continues asking Light results

DoCancel()

voidDoCancel()[private, virtual]

From CActive. Implements cancellation of an outstanding request.

GetLaunchInfoL(const CSearchDocumentId &)

HBufC8 *GetLaunchInfoL(const CSearchDocumentId &aDocumentID)

Get file launch information.

Parameters

const CSearchDocumentId & aDocumentID

GetResultsL(const RPointerArray< CSearchDocumentId > &, MSearchResultRetrieveObserver *)

voidGetResultsL(const RPointerArray< CSearchDocumentId > &aResultIDArray,
MSearchResultRetrieveObserver *aObserver
)

Gets the results. Asynchronous.

Parameters

const RPointerArray< CSearchDocumentId > & aResultIDArrayThe array of result ids.
MSearchResultRetrieveObserver * aObserverPointer to the observer.

GetSupportedContentL(RPointerArray< CSearchContent > &, TUid)

voidGetSupportedContentL(RPointerArray< CSearchContent > &aContent,
TUidaServiceId
)

Function returning a list of support content types that can be searched by the engine.

Parameters

RPointerArray< CSearchContent > & aContent
TUid aServiceId

GetSupportedServicesL(RArray< TUid > &)

voidGetSupportedServicesL(RArray< TUid > &aServiceIdArray)

Gets supported service ids by the search framework.

Parameters

RArray< TUid > & aServiceIdArray

IsSearching()

TBool IsSearching()

Function returning ETrue when a search is ongoing. EFalse otherwise.

LaunchApplicationL(const CSearchDocumentId &)

voidLaunchApplicationL(const CSearchDocumentId &aResultId)

Launches a viewer/editor application for the given result id.

Parameters

const CSearchDocumentId & aResultIdThe id of the given document.

NewL()

CSearchClientSessionImp *NewL()[static]

Symbian OS 2 phased constructor.

NewLC()

CSearchClientSessionImp *NewLC()[static]

Symbian OS 2 phased constructor.

RunError(TInt)

TInt RunError(TIntaError)[private, virtual]

From CActive. Handles a leave occurring in the request completion event handler RunL().

Parameters

TInt aError

RunL()

voidRunL()[private, virtual]

From CActive. Handles an active object s request completion event.

SearchL(const CSearchQuery &, const TSearchThreshold &, MSearchQueryObserver *)

voidSearchL(const CSearchQuery &aQuery,
const TSearchThreshold &aThreshold,
MSearchQueryObserver *aObserver
)

Starts the search with the specified search criteria.

Parameters

const CSearchQuery & aQuerySearch Query.
const TSearchThreshold & aThreshold
MSearchQueryObserver * aObserver

Member Data Documentation

TBool iGetRes

TBool iGetRes[private]

RPointerArray< CSearchLightResult > iLightResultArray

RPointerArray< CSearchLightResult >iLightResultArray[private]

Light res Array

TInt iMaxresults

TInt iMaxresults[private]

Maxe res

MSearchQueryObserver * iObserver

MSearchQueryObserver *iObserver[private]

Pointer to iObserver Not own

RPointerArray< CSearchDocumentId > iResultIDArray

RPointerArray< CSearchDocumentId >iResultIDArray[private]

MSearchResultRetrieveObserver * iRetrieveObserver

MSearchResultRetrieveObserver *iRetrieveObserver[private]

Pointer to iRetrieveObserver Not own

RSearchClient iSearchClient

RSearchClient iSearchClient[private]

Client side of the search server

TPckgBuf< TInt > iSearchCount

TPckgBuf< TInt >iSearchCount[private]

Set by the server Count of the results found

TPckgBuf< TInt > iSearchFinished

TPckgBuf< TInt >iSearchFinished[private]

Set by the server when no more results Validation

TBool iSearchPending

TBool iSearchPending[private]

TPckgBuf< TInt > iSearchRes

TPckgBuf< TInt >iSearchRes[private]

Set by the server Count of the results found

TInt iSearchTotalResultsFound

TInt iSearchTotalResultsFound[private]

To keep the count of total res found

RPointerArray< CSearchResult > iheavyresult

RPointerArray< CSearchResult >iheavyresult[private]

Heavy res Array