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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 #if !defined(__MSVUTILS_H__)
19 #define __MSVUTILS_H__
21 _LIT(KMsvUtilsNewExtension,".new");
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);