CMsvSearchSortQuery Class Reference
class CMsvSearchSortQuery : public CBase |
Constructor & Destructor Documentation
CMsvSearchSortQuery()
CMsvSearchSortQuery | ( | ) | [private] |
~CMsvSearchSortQuery()
IMPORT_C | ~CMsvSearchSortQuery | ( | ) | |
Member Functions Documentation
AddSearchOptionL(TMsvMessagePart, const TDesC &, TMsvRelationOp)
Adds the search options to the search-sort query. This function is used when the message part requires descriptor value during search-sort operation.
-
leave
- KErrNone - Query is added successfully to search-sort query
KErrArgument - An invalid value is passed for a particular message part
KErrMsvInvalidOperator - An invalid operation is being performed on a particular message part
KErrMsvQueryMaxLimit - An addition of search-sort operation has lead to a condition where the query options have exceeded the maximum number of search-sort options supported by messaging framework. The maximum search options that can be added to a search-sort query is five and the maximum sort option that can be can be added is one
KErrQueryTooBig - The search-sort query is too big to be executed. This could be due to a bigger value for the search-sort option provided as part of the query. The query value added to a particular option is greater then KMsvMaxFindTextLength( = 300)
Parameters
TMsvMessagePart aMsgPart | A message part on which search operation has to be performed for all the messages under a particular folder entry |
const TDesC & aQueryDesValue | The corresponding value of the message part that needs to be searched |
TMsvRelationOp aRelOp | An enumeration corresponding to a relational operator used against a particular message part for all the messages in a particular folder during the search operation |
AddSearchOptionL(TMsvMessagePart, const TInt, TMsvRelationOp)
Adds the search options to the search-sort query. This function is used when the message part requires integer value during search-sort operation
-
leave
- KErrNone - Query is added successfully to search-sort query
KErrArgument - An invalid value is passed for a particular message part
KErrMsvInvalidOperator - An invalid operation is being performed on a particular message part
KErrMsvQueryMaxLimit - An addition of search-sort operation has lead to a condition where the query options have exceeded the maximum number of search-sort options supported by messaging framework. The maximum search options that can be added to a search-sort query is five and the maximum sort option that can be can be added is one
Parameters
TMsvMessagePart aMsgPart | A message part on which search operation has to be performed for all the messages under a particular folder entry |
const TInt aQueryIntValue | |
TMsvRelationOp aRelOp | An enumeration corresponding to a relational operator used against a particular message part for all the messages in a particular folder during the search operation |
AddSearchOptionL(TMsvMessagePart, TBool)
Adds the search options to the search-sort query. This function is suitable when the message part value to be searched is a flag or a message status.
-
leave
- KErrNone - Query is added successfully to search-sort query
KErrArgument - An invalid value is passed for a particular message part
KErrMsvInvalidOperator - An invalid operation is being performed on a particular message part
KErrMsvQueryMaxLimit - An addition of search-sort operation has lead to a condition where the query options have exceeded the maximum number of search-sort options supported by messaging framework. The maximum search options that can be added to a search-sort query is five and the maximum sort option that can be can be added is one
Parameters
TMsvMessagePart aMsgPart | A message part on which search operation has to be performed for all the messages under a particular folder entry |
TBool aMessagePartFlagStatus | |
AddSortOptionL(TMsvMessagePart, TMsvSortOrder)
Adds sort options to the search-sort query, to enable sorting in ascending or descending order based on the message part added to the query
-
leave
- KErrNone - Query is added successfully to search-sort query KErrNotSupported - for multilevel sort
ConstructL()
void | ConstructL | ( | ) | [private] |
Second phase construction, allocating memory for query table.
- leave
- KErrNoMemory A memory allocation failed
GetMaxQuerySize()
TInt
| GetMaxQuerySize | ( | ) | [private] |
GetMessagePart(TInt)
get the message part from Query structure.
GetMessagePart()
get the sort field from the Query.
GetResultType()
Get search sort result type set by client.
IsCaseSensitive()
TBool
| IsCaseSensitive | ( | ) | [private] |
Function to check whether case sensitivesearch search enabled.
IsSearchQuery()
TBool
| IsSearchQuery | ( | ) | [private] |
Function to validate, is this search Query.
IsSubFolderSearch()
TBool
| IsSubFolderSearch | ( | ) | [private] |
Function to check whether sub folder search enabled.
IsWholeWord()
TBool
| IsWholeWord | ( | ) | [private] |
Function to check whether whole word search enabled or not.
IsWildCardSearch()
TBool
| IsWildCardSearch | ( | ) | [private] |
Function to check whether wildcard character search enabled.
NewL()
Factory function which returns a pointer of
CMsvSearchSortQuery to create a search-sort query.
- leave
- KErrNoMemory A memory allocation failed
NewLC()
Factory function which returns a pointer of
CMsvSearchSortQuery to create a search-sort query.
- leave
- KErrNoMemory A memory allocation failed
SetCaseSensitiveOption(TBool)
IMPORT_C void | SetCaseSensitiveOption | ( | TBool | aCaseSensitive | ) | |
Set Case Sensitive search option.
SetParentId(const TMsvId)
IMPORT_C void | SetParentId | ( | const TMsvId | aParentId | ) | |
set aParentId. search and/or sort will be done this aParentId.
Parameters
const TMsvId aParentId | Search and/or sort operation can be performed on a specified root, folder or service. |
SetResultType(TMsvSearchSortResultType)
Client expects search sort results as TMsvId or TMsvEntry
SetSubFolderSearch(TBool)
IMPORT_C void | SetSubFolderSearch | ( | TBool | aSubFolderSearch | ) | |
SetWholeWord(TBool)
IMPORT_C void | SetWholeWord | ( | TBool | aWholeWord | ) | |
Set Whole word search option.
SetWildCardSearch(TBool)
IMPORT_C void | SetWildCardSearch | ( | TBool | aWildCard | ) | |
Enable wild card character search.
ValidateMessagePartAgainstEMsvEqualOperator(TMsvMessagePart)
ValidateMessagePartAgainstRelationOp(TMsvRelationOp)
ValidateQueryString(TMsvMessagePart, const TDesC &, TMsvRelationOp)
Validate the query option sent by AddSearchOptionL ()
Parameters
TMsvMessagePart aMsgPart | Search needs to be on this TMessagePart |
const TDesC & aQueryString | The text to be found. |
TMsvRelationOp aRelOp | TMsgRelationOp enum's needs to used along with TMessagePart to create the query string |
Member Data Documentation
TBool
iCaseSensitive
TBool
| iCaseSensitive | [private] |
TInt
iCountMultilevelSort
TInt
| iCountMultilevelSort | [private] |
TBool
iExplicitSort
TBool
| iExplicitSort | [private] |
TBool
iIsSearchQuery
TBool
| iIsSearchQuery | [private] |
TInt
iQueryCount
TInt
| iQueryCount | [private] |
TMsvQueryTable * iQueryTable
TMsvSearchSortResultType
iSearchSortResultType
TMsvMessagePart
iSortOnMessagePart
TBool
iSubFolderSearch
TBool
| iSubFolderSearch | [private] |
TBool
iWholeWord
TBool
| iWholeWord | [private] |
TBool
iWildCardCharacter
TBool
| iWildCardCharacter | [private] |
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.