equal
deleted
inserted
replaced
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". |
|
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 |
|
43 #endif |
|