messagingfw/msgsrvnstore/server/inc/msvcachevisiblefolder.Inl
changeset 22 bde600d88860
parent 0 8e480a14352b
equal deleted inserted replaced
21:08008ce8a6df 22:bde600d88860
       
     1 // Copyright (c) 2007-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 /**
       
    17  
       
    18  IsComplete()
       
    19  @param None.
       
    20  @return Status of the Complete Flag.
       
    21  
       
    22  The function Checks the Complete Bit whether its Set(Logic 1) or Clear(Logic 0).
       
    23  It returns a TBool (ETrue/EFalse) depending on the Complete Flag. 
       
    24 */
       
    25 inline TBool CMsvCacheVisibleFolder::IsComplete() const
       
    26 	{
       
    27 	if (iFlags & EMsvCacheVisibleFolderComplete)
       
    28 		{
       
    29 		return(ETrue);
       
    30 		}
       
    31 	else 
       
    32 		{
       
    33 		return (EFalse);
       
    34 		}
       
    35 	}
       
    36 
       
    37 /**
       
    38  SetComplete()
       
    39 @param TBool: Set or Clear.
       
    40 @return None.
       
    41  
       
    42 The function Sets or Resets the Complete Bit depending on the aStatus variable passed to it.
       
    43 */
       
    44 inline void CMsvCacheVisibleFolder::SetComplete(TBool aStatus)
       
    45 	{
       
    46 	if(aStatus)
       
    47 		{
       
    48 		iFlags |= EMsvCacheVisibleFolderComplete;
       
    49 		}
       
    50 	else
       
    51 		{
       
    52 		iFlags &= EMsvCacheVisibleFolderClearComplete;
       
    53 		}
       
    54 	}
       
    55 
       
    56 /**
       
    57  GetFolderId()
       
    58 @param None.
       
    59 @return TMsvId of the Visible folder.
       
    60  
       
    61 The function Returns TMsvId of the visible folder.
       
    62 */
       
    63 inline TMsvId CMsvCacheVisibleFolder::GetFolderId() const
       
    64 	{
       
    65 	return iVisibleFolderId;
       
    66 	}
       
    67 
       
    68 
       
    69 #if (defined SYMBIAN_MSGS_ENHANCED_REMOVABLE_MEDIA_SUPPORT)
       
    70 /**
       
    71  GetDriveId()
       
    72 @param None.
       
    73 @return DriveId of the folder.
       
    74  
       
    75 The function Returns driveId of the visible folder.
       
    76 */
       
    77 inline TUint CMsvCacheVisibleFolder::GetDrive() const
       
    78 	{
       
    79 	return iDriveId;
       
    80 	}
       
    81 	
       
    82 
       
    83 /**
       
    84  SetDriveId()
       
    85  @param aDriveId: Drive id of the folder.
       
    86  */	
       
    87 inline void CMsvCacheVisibleFolder::SetDrive(TUint aDriveId)
       
    88 	{
       
    89 	iDriveId = aDriveId;
       
    90 	}
       
    91 #endif	
       
    92 	
       
    93 inline void CMsvCacheVisibleFolder::SetGetChildrenFromVisibleFolder(TBool aStatus)
       
    94 	{
       
    95 	if(aStatus)
       
    96 		{
       
    97 		iFlags |= EMsvGetChildrenFromVisibleFolder;
       
    98 		}
       
    99 	else
       
   100 		{
       
   101 		iFlags ^= EMsvGetChildrenFromVisibleFolder;
       
   102 		}
       
   103 	}
       
   104 
       
   105 inline TBool CMsvCacheVisibleFolder::GetChildrenFromVisibleFolder()
       
   106 	{
       
   107 	if (iFlags & EMsvGetChildrenFromVisibleFolder)
       
   108 		{
       
   109 		return(ETrue);
       
   110 		}
       
   111 	else
       
   112 		{
       
   113 		return (EFalse);
       
   114 		}
       
   115 	}