RPsSession Class Reference
| class RPsSession : public RSessionBase |
Client side interface for predictive search server.
| Public Member Functions |
|---|
| RPsSession() |
| void | CancelSearch() |
| void | ChangeSortOrderL(const TDes8 &) |
|
TInt
| Connect() |
| void | GetAdaptiveGridL(const TDesC8 &, const TBool, TDes &) |
| void | GetDataOrderL(const TDes8 &, TPtr8) |
| void | GetSortOrderL(const TDes8 &, TPtr8) |
| void | IsLanguageSupportedL(const TDes8 &, TPtr8) |
| void | SearchL(const TDes8 &, TPtr8, TRequestStatus &) |
| void | SearchL(const TDes8 &, const TDes8 &, TPtr8) |
| void | SearchMatchStringL(const TDes8 &, const TDes8 &, TDes &) |
| void | SendNewBufferL(TPtr8, TRequestStatus &) |
| void | SetSearchSettingsL(const TDes8 &) |
| void | ShutdownServerL() |
|
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() |
Constructor & Destructor Documentation
Member Functions Documentation
CancelSearch()
CancelSearchL. Cancels a pending search request.
ChangeSortOrderL(const TDes8 &)
| void | ChangeSortOrderL | ( | const TDes8 & | aInput | ) | |
ChangeSortOrderL Sends a request to PS server to set the sort order of fields for a data store.
Parameters
| const TDes8 & aInput | Data store + Sort Order values. |
Connect()
Connect. Connects to the predictive search server
GetAdaptiveGridL(const TDesC8 &, const TBool, TDes &)
| void | GetAdaptiveGridL | ( | const TDesC8 & | aURIs, |
| | const TBool | aCompanyName, |
| | 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 & aURIs | The data store URIs. |
| const TBool aCompanyName | The info if Company Name is required. |
| TDes & aResultsBuffer | |
GetDataOrderL(const TDes8 &, TPtr8)
| void | GetDataOrderL | ( | const TDes8 & | aURI, |
| | TPtr8 | aResultsBuffer |
| | ) | |
GetDataOrderL Sends a request to PS server to get the data fields supported for a data store.
Parameters
| const TDes8 & aURI | Data store identifier. |
| TPtr8 aResultsBuffer | Pointer to the results buffer. |
GetSortOrderL(const TDes8 &, TPtr8)
| void | GetSortOrderL | ( | const TDes8 & | aURI, |
| | TPtr8 | aResultsBuffer |
| | ) | |
GetSortOrderL Sends a request to PS server to get the sort order of fields supported for a data store.
Parameters
| const TDes8 & aURI | Data store identifier. |
| TPtr8 aResultsBuffer | Pointer to the results buffer. |
IsLanguageSupportedL(const TDes8 &, TPtr8)
| void | IsLanguageSupportedL | ( | const TDes8 & | aLanguage, |
| | TPtr8 | aResultsBuffer |
| | ) | |
IsLanguageSupportedL Sends a request to PS server to decide if the language variant is supported or not
Parameters
| const TDes8 & aLanguage | The language id info. |
| TPtr8 aResultsBuffer | Pointer to the initial results buffer. |
SearchL(const TDes8 &, TPtr8, TRequestStatus &)
SearchL. Initiates a predictive search request to the server.
Parameters
| const TDes8 & aSearchQuery | The search query. |
| TPtr8 aResultsBuffer | Pointer to the initial results buffer. |
| TRequestStatus & aStatus | Holds the completion status of request. |
SearchL(const TDes8 &, const TDes8 &, TPtr8)
| void | SearchL | ( | const TDes8 & | aSearchQuery, |
| | const TDes8 & | aSearchData, |
| | TPtr8 | aResultsBuffer |
| | ) | |
SearchL. Initiates a predictive search request to the server.
Parameters
| const TDes8 & aSearchQuery | The search query. |
| const TDes8 & aSearchData | The search data. |
| TPtr8 aResultsBuffer | Pointer to the initial results buffer. |
SearchMatchStringL(const TDes8 &, const TDes8 &, TDes &)
| void | SearchMatchStringL | ( | const TDes8 & | aSearchQuery, |
| | const TDes8 & | aSearchData, |
| | TDes & | aResultsBuffer |
| | ) | |
SearchMatchStringL. Initiates a predictive search request to the server with result as string.
Parameters
| const TDes8 & aSearchQuery | The search query. |
| const TDes8 & aSearchData | The search data. |
| TDes & aResultsBuffer | Pointer to the initial results buffer. |
SendNewBufferL(TPtr8, TRequestStatus &)
SendNewBufferL. Send a new buffer to server if a overflow occurs.
Parameters
| TPtr8 aResultsBuffer | Pointer to the new results buffer. |
| TRequestStatus & aStatus | Holds the completion status of request. |
SetSearchSettingsL(const TDes8 &)
| void | SetSearchSettingsL | ( | const TDes8 & | aSettings | ) | |
SetSearchSettingsL. Send the search settings (databases/ display fields) to the server.
Parameters
| const TDes8 & aSettings | The search settings. |
ShutdownServerL()
Shuts down the predictive search server
Version()
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.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.