|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Part of SyncML Data Synchronization Plug In Adapter |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __MMSDATAPROVIDERDEFS_H__ |
|
20 #define __MMSDATAPROVIDERDEFS_H__ |
|
21 |
|
22 #include <e32def.h> |
|
23 #include <e32cmn.h> |
|
24 |
|
25 // ------------------------------------------------------------------------------------------------ |
|
26 // Databases |
|
27 // ------------------------------------------------------------------------------------------------ |
|
28 // Database name |
|
29 _LIT( KNSmlDefaultLocalDbName, "MmsSyncLocalDb" ); |
|
30 |
|
31 // Resource file for CSmlDataStoreFormat in SIS installation |
|
32 _LIT(KMmsStoreFormatRsc,"mmsdatastore.rsc"); |
|
33 |
|
34 // Must be like below in flash image |
|
35 _LIT(KMmsStoreFormatRscRom,"z:mmsdatastore.rsc"); |
|
36 |
|
37 // ------------------------------------------------------------------------------------------------ |
|
38 // Constants |
|
39 // ------------------------------------------------------------------------------------------------ |
|
40 // max foldername |
|
41 const TInt KMaxFolderNameLength = 50; |
|
42 |
|
43 // Implementation uid |
|
44 const TUint KMmsDataProviderImplUid = 0x101FB0E9; |
|
45 |
|
46 // ------------------------------------------------------------------------------------------------ |
|
47 // Macros |
|
48 // ------------------------------------------------------------------------------------------------ |
|
49 #define SAFEDELETE(x) {if(x) {delete x; x = NULL;}} |
|
50 #define SAFEDELETEARRAY(x) {if(x) {delete[] x; x = NULL;}} |
|
51 |
|
52 #endif // __MMSDATAPROVIDERDEFS_H__ |