messagingfw/msgsrvnstore/server/inc/MSVSTD.INL
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 inline TMsvId TMsvEntry::Id() const
       
    17 /** Gets the value of the entry ID.
       
    18 
       
    19 @return The value of the entry ID */
       
    20 	{
       
    21 	return iId;
       
    22 	}
       
    23 
       
    24 inline void TMsvEntry::SetId(TMsvId aId)
       
    25 	{
       
    26 	iId = aId;
       
    27 	}
       
    28 
       
    29 inline TMsvId TMsvEntry::Parent() const
       
    30 /** Gets the value of the parent ID.
       
    31 
       
    32 @return The value of the parent ID */
       
    33 	{
       
    34 	return iParentId;
       
    35 	}
       
    36 
       
    37 inline void TMsvEntry::SetParent(TMsvId aParentId)
       
    38 	{
       
    39 	iParentId = aParentId;
       
    40 	}
       
    41 
       
    42 inline TBool TMsvEntry::Complete () const
       
    43 /** Gets the value of the message complete flag.
       
    44 
       
    45 Note that for email download without size limits, the complete flag will only
       
    46 be set to true once all the parts of the message (body text and attachments)
       
    47 have been downloaded.
       
    48 
       
    49 @return The value of the message complete flag */
       
    50 	{
       
    51 	return !(iData&KMsvEntryNotCompleteFlag);
       
    52 	}
       
    53 
       
    54 inline void TMsvEntry::SetComplete(TBool aComplete)
       
    55 /** Sets the message complete flag.
       
    56 
       
    57 Note that for email download without size limits, the complete flag will only
       
    58 be set to true once all the parts of the message (body text and attachments)
       
    59 have been downloaded.
       
    60 
       
    61 @param aComplete Value for the message complete flag */
       
    62 	{
       
    63 	iData = (iData & ~KMsvEntryNotCompleteFlag) | ((!aComplete)?KMsvEntryNotCompleteFlag:KMsvEntryClearFlag);
       
    64 	}
       
    65 
       
    66 inline TBool TMsvEntry::New() const
       
    67 /** Gets the value of the new message flag.
       
    68 
       
    69 @return The value of the new message flag */
       
    70 	{
       
    71 	if(iData&KMsvEntryNewFlag)
       
    72 		{
       
    73 		return ETrue;
       
    74 		}
       
    75 	return EFalse;
       
    76 	}
       
    77 
       
    78 inline void TMsvEntry::SetNew(TBool aNew)
       
    79 /** Sets the message new flag.
       
    80 
       
    81 @param aNew Value for the message new flag */
       
    82 	{
       
    83 	iData = (iData & ~KMsvEntryNewFlag) | (aNew?KMsvEntryNewFlag:KMsvEntryClearFlag);
       
    84 	}
       
    85 
       
    86 inline TBool TMsvEntry::Unread() const
       
    87 /** Gets the value of the message unread flag.
       
    88 
       
    89 @return The value of the message unread flag */
       
    90 	{
       
    91 	if(iData&KMsvEntryUnreadFlag)
       
    92 		{
       
    93 		return ETrue;
       
    94 		}
       
    95 	return EFalse;
       
    96 	}
       
    97 
       
    98 inline void TMsvEntry::SetUnread(TBool aUnread)
       
    99 /** Sets the message unread flag.
       
   100 	
       
   101 @param aUnread Value for the message unread flag */
       
   102 	{
       
   103 	iData = (iData & ~KMsvEntryUnreadFlag) | (aUnread?KMsvEntryUnreadFlag:KMsvEntryClearFlag);
       
   104 	}
       
   105 
       
   106 inline TBool TMsvEntry::Failed() const
       
   107 /** Gets the value of the message send failed flag.
       
   108 
       
   109 @return The value of the message send failed flag */
       
   110 	{
       
   111 	if(iData&KMsvEntryFailedFlag)
       
   112 		{
       
   113 		return ETrue;
       
   114 		}
       
   115 	return EFalse;
       
   116 	}
       
   117 
       
   118 inline void TMsvEntry::SetFailed(TBool aFailed)
       
   119 /** Sets the message send failed flag.
       
   120 
       
   121 @param aFailed Value for the message send failed flag */
       
   122 	{
       
   123 	iData = (iData & ~KMsvEntryFailedFlag) | (aFailed?KMsvEntryFailedFlag:KMsvEntryClearFlag);
       
   124 	}
       
   125 
       
   126 inline TBool TMsvEntry::Operation() const
       
   127 /** Gets the value of the disconnected operation queued flag.
       
   128 
       
   129 @return The value of the disconnected operation queued flag */
       
   130 	{
       
   131 	if(iData&KMsvEntryOperationFlag)
       
   132 		{
       
   133 		return ETrue;
       
   134 		}
       
   135 	return EFalse;
       
   136 	}
       
   137 
       
   138 inline void TMsvEntry::SetOperation(TBool aOperation)
       
   139 /** Sets the disconnected operation queued flag.
       
   140 
       
   141 @param aOperation Value for the disconnected operation queued flag */
       
   142 	{
       
   143 	iData = (iData & ~KMsvEntryOperationFlag) | (aOperation?KMsvEntryOperationFlag:KMsvEntryClearFlag);
       
   144 	}
       
   145 
       
   146 inline TBool TMsvEntry::Owner() const
       
   147 /** Gets the value of the owner flag.
       
   148 
       
   149 @return The value of the owner flag */
       
   150 	{
       
   151 	if(iData&KMsvEntryOwnerFlag)
       
   152 		{
       
   153 		return ETrue;
       
   154 		}
       
   155 	return EFalse;		
       
   156 	}
       
   157 
       
   158 inline void TMsvEntry::SetOwner(TBool aOwner)
       
   159 	{
       
   160 	iData = (iData & ~KMsvEntryOwnerFlag) | (aOwner?KMsvEntryOwnerFlag:KMsvEntryClearFlag);
       
   161 	}
       
   162 
       
   163 inline TBool TMsvEntry::Attachment() const
       
   164 /** Gets the value of the attachment flag.
       
   165 
       
   166 @return The value of the attachment flag */
       
   167 	{
       
   168 	if(iData&KMsvEntryAttachmentFlag)
       
   169 		{
       
   170 		return ETrue;
       
   171 		}
       
   172 	return EFalse;
       
   173 	}
       
   174 
       
   175 inline void TMsvEntry::SetAttachment(TBool aAttachmentFlag)
       
   176 /** Sets the attachment flag.
       
   177 
       
   178 @param aAttachmentFlag Value for the attachment flag */
       
   179 	{
       
   180 	iData = (iData & ~KMsvEntryAttachmentFlag) | (aAttachmentFlag?KMsvEntryAttachmentFlag:KMsvEntryClearFlag);
       
   181 	}
       
   182 
       
   183 inline TBool TMsvEntry::Visible() const
       
   184 /** Gets the value of the entry visible flag.
       
   185 
       
   186 @return The value of the entry visible flag */
       
   187 	{
       
   188 	return !((iData&KMsvEntryInvisibleFlag) || (iData&KMsvEntryPendingDeleteFlag));
       
   189 	}
       
   190 
       
   191 inline void TMsvEntry::SetVisible(TBool aVisble)
       
   192 /** Sets the entry visible flag.
       
   193 	
       
   194 @param aVisble Value for the entry visible flag */
       
   195 	{
       
   196 	iData = (iData & ~KMsvEntryInvisibleFlag) | ((!aVisble)?KMsvEntryInvisibleFlag:KMsvEntryClearFlag);
       
   197 	}
       
   198 
       
   199 inline TBool TMsvEntry::MultipleRecipients() const
       
   200 /** Gets the value of the multiple recipients flag.
       
   201 
       
   202 @return The value of the multiple recipients flag */
       
   203 	{
       
   204 	if(iData&KMsvEntryMultipleRecipientFlag)
       
   205 		{
       
   206 		return ETrue;
       
   207 		}
       
   208 	return EFalse;
       
   209 	}
       
   210 
       
   211 inline void TMsvEntry::SetMultipleRecipients(TBool aMultipleRecipient)
       
   212 /** Sets the multiple recipients flag.
       
   213 	
       
   214 @param aMultipleRecipient Value for the multiple recipients flag */
       
   215 	{
       
   216 	iData = (iData & ~KMsvEntryMultipleRecipientFlag) | (aMultipleRecipient?KMsvEntryMultipleRecipientFlag:KMsvEntryClearFlag);
       
   217 	}
       
   218 
       
   219 
       
   220 inline TBool TMsvEntry::ReadOnly() const
       
   221 /** Gets the value of the read-only flag.
       
   222 
       
   223 @return The value of the read-only flag */
       
   224 	{
       
   225 	if(iData&KMsvEntryReadOnlyFlag)
       
   226 		{
       
   227 		return ETrue;
       
   228 		}
       
   229 	return EFalse;
       
   230 	}
       
   231 
       
   232 inline void TMsvEntry::SetReadOnly(TBool aReadOnly)
       
   233 /** Sets the read-only flag.
       
   234 
       
   235 @param aReadOnly Value for the read-only flag */
       
   236 	{
       
   237 	iData = (iData & ~KMsvEntryReadOnlyFlag) | (aReadOnly?KMsvEntryReadOnlyFlag:KMsvEntryClearFlag);
       
   238 	}
       
   239 
       
   240 
       
   241 /** 
       
   242 Sets the flag for the TMsvEntry's visible folder(CMsvCacheVisibleFolder), if the entry is visible 
       
   243 while creation.
       
   244 @param aVisble Value for the visible flag 
       
   245 */
       
   246 inline void TMsvEntry::SetVisibleFolderFlag(TBool aVisible)
       
   247 
       
   248 	{
       
   249 	iData = (iData & ~KMsvVisibleFolderNodeFlag) | ((!aVisible)?KMsvVisibleFolderNodeFlag:KMsvEntryClearFlag);
       
   250 	}
       
   251 
       
   252 /** 
       
   253 Gets the value of the TMsvEntry's visible folder flag.
       
   254 @return The value of the entry visible flag 
       
   255 */
       
   256 inline TBool TMsvEntry::VisibleFolderFlag() const
       
   257 	{
       
   258 	return !(iData&KMsvVisibleFolderNodeFlag);
       
   259 	}
       
   260 
       
   261 	
       
   262 inline TBool TMsvEntry::Deleted() const
       
   263 /** Gets the value of the deleted flag.
       
   264 
       
   265 @return The value of the deleted flag */
       
   266 	{
       
   267 	if(iData&KMsvEntryDeletedFlag)
       
   268 		{
       
   269 		return ETrue;
       
   270 		}
       
   271 	return EFalse;
       
   272 	}
       
   273 
       
   274 inline void TMsvEntry::SetDeleted(TBool aDeletedFlag)
       
   275 	{
       
   276 	iData = (iData & ~KMsvEntryDeletedFlag) | (aDeletedFlag?KMsvEntryDeletedFlag:KMsvEntryClearFlag);
       
   277 	}
       
   278 
       
   279 inline TBool TMsvEntry::StandardFolder() const
       
   280 /** Gets the value of the standard folder flag.
       
   281 
       
   282 @return The value of the standard folder flag */
       
   283 	{
       
   284 	if(iData&KMsvEntryStandardFolderFlag)
       
   285 		{
       
   286 		return ETrue;
       
   287 		}
       
   288 	return EFalse;
       
   289 	}
       
   290 
       
   291 inline void TMsvEntry::SetStandardFolder(TBool aStandardFolder)
       
   292 	{
       
   293 	iData = (iData & ~KMsvEntryStandardFolderFlag) | (aStandardFolder?KMsvEntryStandardFolderFlag:KMsvEntryClearFlag);
       
   294 	}
       
   295 
       
   296 inline TBool TMsvEntry::Connected() const
       
   297 /** Gets the value of the remote server connection flag.
       
   298 
       
   299 @return The value of the remote server connection flag */
       
   300 	{
       
   301 	if(iData&KMsvEntryConnectedFlag)
       
   302 		{
       
   303 		return ETrue;
       
   304 		}
       
   305 	return EFalse;
       
   306 	}
       
   307 
       
   308 inline void TMsvEntry::SetConnected(TBool aConnected)
       
   309 /** Sets the remote server connection flag.
       
   310 
       
   311 @param aConnected Value for the remote server connection flag */
       
   312 	{
       
   313 	iData = (iData & ~KMsvEntryConnectedFlag) | (aConnected?KMsvEntryConnectedFlag:KMsvEntryClearFlag);
       
   314 	}
       
   315 
       
   316 inline TBool TMsvEntry::InPreparation() const
       
   317 /** Gets the value of the in preparation flag.
       
   318 
       
   319 @return The value of the in preparation flag */
       
   320 	{
       
   321 	if(iData&KMsvEntryInPreparationFlag)
       
   322 		{
       
   323 		return ETrue;
       
   324 		}
       
   325 	return EFalse;
       
   326 	}
       
   327 
       
   328 inline void TMsvEntry::SetInPreparation(TBool aInPreparation)
       
   329 /** Sets the in-preparation flag.
       
   330 
       
   331 @param aInPreparation Value for the in-preparation flag */
       
   332 	{
       
   333 	iData = (iData & ~KMsvEntryInPreparationFlag) | (aInPreparation?KMsvEntryInPreparationFlag:KMsvEntryClearFlag);
       
   334 	}
       
   335 
       
   336 inline TInt TMsvEntry::PcSyncCount() const
       
   337 /** Gets the value of the PC synchronisation field.
       
   338 
       
   339 @return The value of the PC synchronisation field */
       
   340 	{
       
   341 	return iPcSyncCount;
       
   342 	}
       
   343 
       
   344 inline void TMsvEntry::IncPcSyncCount()
       
   345 /** Increments the PC synchronisation field. */
       
   346 	{
       
   347 	iPcSyncCount++;
       
   348 	}
       
   349 
       
   350 inline void TMsvEntry::DecPcSyncCount()
       
   351 /** Decrements the PC synchronisation field. */
       
   352 	{
       
   353 	iPcSyncCount--;
       
   354 	}
       
   355 
       
   356 inline TUint TMsvEntry::PersistedFlags() const
       
   357 	{
       
   358 	return iData&KMsvEntryPersistedFlags;
       
   359 	}
       
   360 
       
   361 inline TUint TMsvEntry::TemporaryFlags() const
       
   362 	{
       
   363 	return iData&KMsvEntryTemporaryFlags;
       
   364 	}
       
   365 
       
   366 inline TBool TMsvEntry::OffPeak() const
       
   367 /** Gets the off-peak flag.
       
   368 
       
   369 @return The value of the off-peak flag */
       
   370 	{
       
   371 	if(iData & KMsvOffPeakFlag)
       
   372 		{
       
   373 		return ETrue;
       
   374 		}
       
   375 	return EFalse;
       
   376 	}
       
   377 
       
   378 inline void TMsvEntry::SetOffPeak(TBool aOffPeak)
       
   379 /** Sets the off-peak flag.
       
   380 
       
   381 @param aOffPeak Value for off-peak flag. */
       
   382 	{
       
   383 	iData = (iData & ~KMsvOffPeakFlag) | (aOffPeak ? KMsvOffPeakFlag : KMsvEntryClearFlag);
       
   384 	}
       
   385 
       
   386 inline TBool TMsvEntry::Scheduled() const
       
   387 /** Gets the scheduled flag.
       
   388 
       
   389 @return The value of the scheduled flag */
       
   390 	{
       
   391 	if(iData & KMsvScheduledFlag)
       
   392 		{
       
   393 		return ETrue;
       
   394 		}
       
   395 	return EFalse;
       
   396 	}
       
   397 
       
   398 inline void TMsvEntry::SetScheduled(TBool aScheduled)
       
   399 /** Sets the scheduled flag.
       
   400 
       
   401 @param aScheduled Value for the scheduled flag. */
       
   402 	{
       
   403 	iData = (iData & ~KMsvScheduledFlag) | (aScheduled ? KMsvScheduledFlag : KMsvEntryClearFlag);
       
   404 	}
       
   405 	
       
   406 inline TUint TMsvEntry::SendingState() const
       
   407 /** Gets the sending state.
       
   408  
       
   409 @return The sending state */
       
   410 	{
       
   411 	return (iData & KMsvSendingStateFlags) >> KMsvSendingStateShift;
       
   412 	}
       
   413 	 
       
   414 inline void TMsvEntry::SetSendingState(TUint aSendingState)
       
   415 /** Sets the sending state.
       
   416   
       
   417 @param aSendingState The sending state. This must be a value between 0x00 
       
   418 and KMsvSendStateMax. */
       
   419 	{
       
   420 	__ASSERT_DEBUG(aSendingState <= KMsvSendStateMax, User::Invariant());
       
   421 	iData = iData & ~KMsvSendingStateFlags | aSendingState << KMsvSendingStateShift;
       
   422 	}
       
   423 
       
   424 inline void TMsvEntry::SetPendingDelete(TBool aPendingDelete)
       
   425 	{
       
   426 	iData = (iData & ~KMsvEntryPendingDeleteFlag) | (aPendingDelete ? KMsvEntryPendingDeleteFlag : KMsvEntryClearFlag);
       
   427 	}
       
   428 
       
   429 inline TBool TMsvEntry::PendingDelete() const
       
   430 	{
       
   431 	if(iData & KMsvEntryPendingDeleteFlag)
       
   432 		{
       
   433 		return ETrue;
       
   434 		}
       
   435 	return EFalse;
       
   436 	}
       
   437 	
       
   438 
       
   439 inline void TMsvEntry::SetDeleteProtected(TBool aDeleteProtected)
       
   440 	{
       
   441 	/** temporary variable used to mask the anonymous global enum.		*/
       
   442 	TInt temp = KMsvEntryDeleteProtected;
       
   443 /** Sets the delete protected state */
       
   444 	iMtmData1 = (iMtmData1 & ~KMsvEntryDeleteProtected ) | (aDeleteProtected ? temp : KMsvEntryClearFlag);
       
   445 	}
       
   446 
       
   447 inline TBool TMsvEntry::DeleteProtected() const
       
   448 	{
       
   449 /** returns the delete protected state */
       
   450 	if(iMtmData1 & KMsvEntryDeleteProtected)
       
   451 		{
       
   452 		return ETrue;
       
   453 		}
       
   454 	return EFalse;
       
   455 	}
       
   456 	
       
   457 inline void TMsvEntry::SetForwarded(TBool aForwarded)
       
   458 	{
       
   459 	/** temporary variable used to mask the anonymous global enum.		*/
       
   460 	TInt temp = KMsvEntryForwarded ;
       
   461 /** Sets the forwarded state */
       
   462 	iMtmData1 = (iMtmData1 & ~KMsvEntryForwarded) | (aForwarded ? temp : KMsvEntryClearFlag);
       
   463 	}
       
   464 
       
   465 inline TBool TMsvEntry::Forwarded() const
       
   466 	{
       
   467 /** returns the forwarded state */
       
   468 	if(iMtmData1 & KMsvEntryForwarded)
       
   469 		{
       
   470 		return ETrue;
       
   471 		}
       
   472 	return EFalse;
       
   473 	}
       
   474 
       
   475 inline void TMsvEntry::SetLocallyDeleted(TBool aLocallyDeleted)
       
   476 	{
       
   477 	/** temporary variable used to mask the anonymous global enum.		*/
       
   478 	TInt temp = KMsvEntryLocallyDeleted ;
       
   479 /** Sets the locally deleted state */
       
   480 	iMtmData1 = (iMtmData1 & ~KMsvEntryLocallyDeleted) | (aLocallyDeleted ? temp : KMsvEntryClearFlag);
       
   481 	}
       
   482 
       
   483 inline TBool TMsvEntry::LocallyDeleted() const
       
   484 	{
       
   485 /** returns the locally deleted state  */
       
   486 	if(iMtmData1 & KMsvEntryLocallyDeleted)
       
   487 		{
       
   488 		return ETrue;
       
   489 		}
       
   490 	return EFalse;
       
   491 	}
       
   492 
       
   493 
       
   494 
       
   495 //**********************************
       
   496 // TMsvSelectionOrdering
       
   497 //**********************************
       
   498 
       
   499 inline TBool TMsvSelectionOrdering::GroupByType() const
       
   500 /** Gets the group-by-entry-type flag.
       
   501 
       
   502 @return Group-by-entry-type flag */
       
   503 	{
       
   504 	if(iGrouping&KMsvGroupByType)
       
   505 		{
       
   506 		return ETrue;
       
   507 		}
       
   508 	return EFalse;
       
   509 	}
       
   510 
       
   511 inline TBool TMsvSelectionOrdering::GroupStandardFolders() const
       
   512 /** Gets the group-by-standard-folders flag.
       
   513 
       
   514 @return Group-by-standard-folders flag */
       
   515 	{
       
   516 	if(iGrouping&KMsvStandardFolders)
       
   517 		{
       
   518 		return ETrue;
       
   519 		}
       
   520 	return EFalse;
       
   521 	}
       
   522 
       
   523 inline TBool TMsvSelectionOrdering::GroupByPriority() const
       
   524 /** Gets the group-by-priority flag.
       
   525 
       
   526 @return Group-by-priority flag */
       
   527 	{
       
   528 	if(iGrouping&KMsvGroupByPriority)
       
   529 		{
       
   530 		return ETrue;
       
   531 		}
       
   532 	return EFalse;
       
   533 	}
       
   534 
       
   535 inline TBool TMsvSelectionOrdering::GroupByMtm() const
       
   536 /** Gets the group-by-MTM flag.
       
   537 
       
   538 @return Group-by-MTM flag */
       
   539 	{
       
   540 	if(iGrouping&KMsvGroupByMtm)
       
   541 		{
       
   542 		return ETrue;
       
   543 		}
       
   544 	return EFalse;
       
   545 	}
       
   546 
       
   547 inline TBool TMsvSelectionOrdering::ShowInvisibleEntries() const
       
   548 /** Gets the show-invisible-entries flag. Entries whose entry visible flag index 
       
   549 field is not set are included in the ordered list only if this is set. 
       
   550 
       
   551 @return Show-invisible-entries flag */
       
   552 	{
       
   553 	if(iGrouping&KMsvInvisibleFlag)
       
   554 		{
       
   555 		return ETrue;
       
   556 		}
       
   557 	return EFalse;
       
   558 	}
       
   559 
       
   560 inline void TMsvSelectionOrdering::SetGroupByType(TBool aFlag)
       
   561 	{
       
   562 	iGrouping = (iGrouping & ~KMsvGroupByStandardFolders) | ((aFlag)?KMsvGroupByType:0);
       
   563 	}
       
   564 
       
   565 inline void TMsvSelectionOrdering::SetGroupStandardFolders(TBool aFlag)
       
   566 	{
       
   567 	iGrouping = (iGrouping & ~KMsvStandardFolders) | ((aFlag)?KMsvGroupByStandardFolders:0);
       
   568 	}
       
   569 
       
   570 inline void TMsvSelectionOrdering::SetGroupByPriority(TBool aFlag)
       
   571 	{
       
   572 	iGrouping = (iGrouping & ~KMsvGroupByPriority) | ((aFlag)?KMsvGroupByPriority:0);
       
   573 	}
       
   574 
       
   575 inline void TMsvSelectionOrdering::SetGroupByMtm(TBool aFlag)
       
   576 	{
       
   577 	iGrouping = (iGrouping & ~KMsvGroupByMtm) | ((aFlag)?KMsvGroupByMtm:0);
       
   578 	}
       
   579 
       
   580 inline void TMsvSelectionOrdering::SetShowInvisibleEntries(TBool aFlag)
       
   581 	{
       
   582 	iGrouping = (iGrouping & ~KMsvInvisibleFlag) | ((aFlag)?KMsvInvisibleFlag:0);
       
   583 	}
       
   584 
       
   585 inline TMsvSorting TMsvSelectionOrdering::Sorting() const
       
   586 /** Gets the sorting order of entries within groups.
       
   587 
       
   588 @return Sorting order. */
       
   589 	{
       
   590 	return iSortType;
       
   591 	}
       
   592 
       
   593 inline void TMsvSelectionOrdering::SetSorting(TMsvSorting aSortType)
       
   594 	{
       
   595 	iSortType=aSortType;
       
   596 	}
       
   597 
       
   598 inline TBool TMsvSelectionOrdering::GroupingOn() const
       
   599 /** Tests whether any grouping option has been set.
       
   600 
       
   601 @return ETrue if one or more grouping options have been set, else EFalse */
       
   602 	{
       
   603 	if(iGrouping&KMsvAllGroupingFlags)
       
   604 		{
       
   605 		return ETrue;
       
   606 		}
       
   607 	return EFalse;
       
   608 	}
       
   609 
       
   610 //**********************************
       
   611 // CMsvEntryFilter
       
   612 //**********************************
       
   613 
       
   614 inline TMsvId CMsvEntryFilter::Service() const
       
   615 /** Gets the service ID set for the filter.
       
   616 
       
   617 @return Service ID set for the filter */
       
   618 	{
       
   619 	return iServiceId;
       
   620 	}
       
   621 
       
   622 inline void CMsvEntryFilter::SetService(TMsvId aServiceId)
       
   623 /** Sets the service ID for the filter.
       
   624 
       
   625 @param aServiceId Service ID for the filter */
       
   626 	{
       
   627 	iServiceId = aServiceId;
       
   628 	}
       
   629 
       
   630 inline TUid CMsvEntryFilter::Mtm() const
       
   631 /** Gets the MTM UID set for the filter.
       
   632 
       
   633 @return MTM UID set for the filter */
       
   634 	{
       
   635 	return iMtm;
       
   636 	}
       
   637 
       
   638 inline void CMsvEntryFilter::SetMtm(TUid aMtm)
       
   639 /** Sets the MTM UID for the filter.
       
   640 
       
   641 @param aMtm MTM UID for the filter */
       
   642 	{
       
   643 	iMtm = aMtm;
       
   644 	}
       
   645 
       
   646 inline TUid CMsvEntryFilter::Type() const
       
   647 /** Gets the entry type set for the filter.
       
   648 
       
   649 @return Entry type set for the filter */
       
   650 	{
       
   651 	return iType;
       
   652 	}
       
   653 
       
   654 inline void CMsvEntryFilter::SetType(TUid aType)
       
   655 /** Sets the entry type for the filter.
       
   656 
       
   657 @param aType Entry type for the filter */
       
   658 	{
       
   659 	iType = aType;
       
   660 	}
       
   661 
       
   662 inline const TTime& CMsvEntryFilter::LastChangeDate() const
       
   663 /** Gets the last change date set for the filter.
       
   664 
       
   665 @return Last change date set for the filter */
       
   666 	{
       
   667 	return iLastChange;
       
   668 	}
       
   669 
       
   670 inline void CMsvEntryFilter::SetLastChangeDate(const TTime& aLastChange)
       
   671 /** Sets the last date change for the filter.
       
   672 
       
   673 This is used to retrieve entries that have changed since a particular date.
       
   674 
       
   675 @param aLastChange Last date change for the filter, specified in Universal 
       
   676 Time (GMT) */
       
   677 	{
       
   678 	iLastChange = aLastChange;
       
   679 	}
       
   680 
       
   681 inline const TMsvSelectionOrdering& CMsvEntryFilter::Order() const
       
   682 /** Gets the selection ordering set for the filter.
       
   683 
       
   684 @return Selection ordering set for the filter */
       
   685 	{
       
   686 	return iOrdering;
       
   687 	}
       
   688 
       
   689 inline void CMsvEntryFilter::SetOrder(const TMsvSelectionOrdering& aOrder)
       
   690 /** Sets the sort ordering for the filter.
       
   691 
       
   692 @param aOrder Selection ordering for the filter */
       
   693 	{
       
   694 	iOrdering = aOrder;
       
   695 	}
       
   696 
       
   697 inline TUid CMsvEntryFilter::SortMtm() const
       
   698 /** Gets the sorting by MTM for the filter.
       
   699 
       
   700 @return Sorting by MTM for the filter */
       
   701 	{
       
   702 	return iSortMtm;
       
   703 	}
       
   704 
       
   705 inline void CMsvEntryFilter::SetSortMtm(TUid aSortMtm)
       
   706 /** Sets the sorting by MTM for the filter.
       
   707 
       
   708 @param aSortMtm Sorting by MTM for the filter */
       
   709 	{
       
   710 	iSortMtm = aSortMtm;
       
   711 	}