messagingfw/msgsrvnstore/server/inc/MSVUTILS.H
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 #include <msvstd.h>
       
    17 
       
    18 #if !defined(__MSVUTILS_H__)
       
    19 #define __MSVUTILS_H__
       
    20 
       
    21 _LIT(KMsvUtilsNewExtension,".new");
       
    22 
       
    23 class MsvUtils
       
    24 /**
       
    25 @internalAll
       
    26 @released
       
    27 */
       
    28 	{
       
    29 public:
       
    30 /**
       
    31 @internalAll
       
    32 @released
       
    33 */
       
    34 	enum TNameMode {EStore, EFolder, EPath};
       
    35 	IMPORT_C static TBool ValidEntry(const TMsvEntry& aEntry);
       
    36 	IMPORT_C static void ConstructEntryName(TMsvId aService, TMsvId aEntry, TDes& aName, TNameMode aMode);
       
    37 	IMPORT_C static TInt HasDirectory(const RFs& aFs, const TDesC& aMessageFolder, TMsvId aService, TMsvId aEntry);
       
    38 	IMPORT_C static TInt HasStore(const RFs& aFs, const TDesC& aMessageFolder, TMsvId aService, TMsvId aEntry);
       
    39 	static TBool ValidEntry(const TMsvEntry& aEntry, TBool aCreate);
       
    40 	IMPORT_C static void AddPathAndExtensionToResFileL(TFileName& aFileName);
       
    41 
       
    42 #if (defined SYMBIAN_MSGS_ENHANCED_REMOVABLE_MEDIA_SUPPORT)
       
    43 	//added for Preq557
       
    44 	static TMsvId UnmaskTMsvId(TMsvId aId);
       
    45 	static TUint GetDriveId(TMsvId aMaskedId);
       
    46 	static TUint GetCurrentDriveId();
       
    47 	static TBool IsStandardId(TMsvId aId);
       
    48 	static TMsvId MaskTMsvId(TUint aDriveId, TMsvId aUnmaskedId);
       
    49 #endif
       
    50 
       
    51 	};
       
    52 
       
    53 #endif