RPsSession Class Reference

class RPsSession : public RSessionBase

Client side interface for predictive search server.

Inherits from

Public Member Functions
RPsSession()
voidCancelSearch()
voidChangeSortOrderL(const TDes8 &)
TInt Connect()
voidGetAdaptiveGridL(const TDesC8 &, const TBool, TDes &)
voidGetDataOrderL(const TDes8 &, TPtr8)
voidGetSortOrderL(const TDes8 &, TPtr8)
voidIsLanguageSupportedL(const TDes8 &, TPtr8)
voidSearchL(const TDes8 &, TPtr8, TRequestStatus &)
voidSearchL(const TDes8 &, const TDes8 &, TPtr8)
voidSearchMatchStringL(const TDes8 &, const TDes8 &, TDes &)
voidSendNewBufferL(TPtr8, TRequestStatus &)
voidSetSearchSettingsL(const TDes8 &)
voidShutdownServerL()
TVersion Version()
Inherited Functions
RHandleBase::Attributes()const
RHandleBase::BTraceId()const
RHandleBase::Close()
RHandleBase::DoExtendedClose()
RHandleBase::Duplicate(const RThread &,TOwnerType)
RHandleBase::FullName()const
RHandleBase::FullName(TDes &)const
RHandleBase::Handle()const
RHandleBase::HandleInfo(THandleInfo *)
RHandleBase::Name()const
RHandleBase::NotifyDestruction(TRequestStatus &)
RHandleBase::Open(const TFindHandleBase &,TOwnerType)
RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
RHandleBase::RHandleBase()
RHandleBase::RHandleBase(TInt)
RHandleBase::SetHandle(TInt)
RHandleBase::SetHandleNC(TInt)
RSessionBase::CreateSession(RServer2,const TVersion &)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *)
RSessionBase::Open(RMessagePtr2,TInt,TOwnerType)
RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Open(TInt,TOwnerType)
RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Send(TInt)const
RSessionBase::Send(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt)const
RSessionBase::SendReceive(TInt,TRequestStatus &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSessionBase::SetReturnedHandle(TInt)
RSessionBase::SetReturnedHandle(TInt,RHandleBase &)
RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &)
RSessionBase::ShareAuto()
RSessionBase::ShareProtected()
Inherited Enumerations
RHandleBase:TAttributes
RSessionBase:TAttachMode
Private Attributes
TPtr8 iResultsBufferPtr
TPtrC8 iSearchQueryBufferPtr
Inherited Attributes
RHandleBase::iHandle

Constructor & Destructor Documentation

RPsSession()

RPsSession()

RPcsSession. Constructor

Member Functions Documentation

CancelSearch()

voidCancelSearch()

CancelSearchL. Cancels a pending search request.

ChangeSortOrderL(const TDes8 &)

voidChangeSortOrderL(const TDes8 &aInput)

ChangeSortOrderL Sends a request to PS server to set the sort order of fields for a data store.

Parameters

const TDes8 & aInputData store + Sort Order values.

Connect()

TInt Connect()

Connect. Connects to the predictive search server

GetAdaptiveGridL(const TDesC8 &, const TBool, TDes &)

voidGetAdaptiveGridL(const TDesC8 &aURIs,
const TBoolaCompanyName,
TDes &aResultsBuffer
)

GetAdaptiveGridL This is a support method for Adaptive Search functionality. As Predictive Search Engine is well suited for keeping an maintaining data structures related to contacts and updated according to contacts additions/modifications/deletions, like it is done already in Predictive Search Engine.

Parameters

const TDesC8 & aURIsThe data store URIs.
const TBool aCompanyNameThe info if Company Name is required.
TDes & aResultsBuffer

GetDataOrderL(const TDes8 &, TPtr8)

voidGetDataOrderL(const TDes8 &aURI,
TPtr8aResultsBuffer
)

GetDataOrderL Sends a request to PS server to get the data fields supported for a data store.

Parameters

const TDes8 & aURIData store identifier.
TPtr8 aResultsBufferPointer to the results buffer.

GetSortOrderL(const TDes8 &, TPtr8)

voidGetSortOrderL(const TDes8 &aURI,
TPtr8aResultsBuffer
)

GetSortOrderL Sends a request to PS server to get the sort order of fields supported for a data store.

Parameters

const TDes8 & aURIData store identifier.
TPtr8 aResultsBufferPointer to the results buffer.

IsLanguageSupportedL(const TDes8 &, TPtr8)

voidIsLanguageSupportedL(const TDes8 &aLanguage,
TPtr8aResultsBuffer
)

IsLanguageSupportedL Sends a request to PS server to decide if the language variant is supported or not

Parameters

const TDes8 & aLanguageThe language id info.
TPtr8 aResultsBufferPointer to the initial results buffer.

SearchL(const TDes8 &, TPtr8, TRequestStatus &)

voidSearchL(const TDes8 &aSearchQuery,
TPtr8aResultsBuffer,
TRequestStatus &aStatus
)

SearchL. Initiates a predictive search request to the server.

Parameters

const TDes8 & aSearchQueryThe search query.
TPtr8 aResultsBufferPointer to the initial results buffer.
TRequestStatus & aStatusHolds the completion status of request.

SearchL(const TDes8 &, const TDes8 &, TPtr8)

voidSearchL(const TDes8 &aSearchQuery,
const TDes8 &aSearchData,
TPtr8aResultsBuffer
)

SearchL. Initiates a predictive search request to the server.

Parameters

const TDes8 & aSearchQueryThe search query.
const TDes8 & aSearchDataThe search data.
TPtr8 aResultsBufferPointer to the initial results buffer.

SearchMatchStringL(const TDes8 &, const TDes8 &, TDes &)

voidSearchMatchStringL(const TDes8 &aSearchQuery,
const TDes8 &aSearchData,
TDes &aResultsBuffer
)

SearchMatchStringL. Initiates a predictive search request to the server with result as string.

Parameters

const TDes8 & aSearchQueryThe search query.
const TDes8 & aSearchDataThe search data.
TDes & aResultsBufferPointer to the initial results buffer.

SendNewBufferL(TPtr8, TRequestStatus &)

voidSendNewBufferL(TPtr8aResultsBuffer,
TRequestStatus &aStatus
)

SendNewBufferL. Send a new buffer to server if a overflow occurs.

Parameters

TPtr8 aResultsBufferPointer to the new results buffer.
TRequestStatus & aStatusHolds the completion status of request.

SetSearchSettingsL(const TDes8 &)

voidSetSearchSettingsL(const TDes8 &aSettings)

SetSearchSettingsL. Send the search settings (databases/ display fields) to the server.

Parameters

const TDes8 & aSettingsThe search settings.

ShutdownServerL()

voidShutdownServerL()

Shuts down the predictive search server

Version()

TVersion Version()const

Version. Returns the version number of predictive search server

Member Data Documentation

TPtr8 iResultsBufferPtr

TPtr8 iResultsBufferPtr[private]

iResultsBufferPtr. Pointer to the buffer holding search results

TPtrC8 iSearchQueryBufferPtr

TPtrC8 iSearchQueryBufferPtr[private]

iSearchQueryBufferPtr. Pointer to the buffer holding search query.