|
1 // Copyright (c) 2004-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 #ifndef __IMPMACRO_H__ |
|
17 #define __IMPMACRO_H__ |
|
18 |
|
19 /* |
|
20 |
|
21 Macros to support migration from 8.1 - 9.0 - 9.1 for the IACP parser. |
|
22 |
|
23 Due to the fact that this parser is being migrated from server-side MTM to client-side MTM, |
|
24 any use of the CMsvServerEntry defined in CBaseScriptParser, needs to be changed to use |
|
25 CMsvEntry, now defined in CBaseScriptParser2. Unfortunately, CMsvServerEntry member functions |
|
26 are not leaving functions, but CMsvEntry's are. To support these changes with the minimum of |
|
27 #ifdef'ing in the original code, the following macros are used. |
|
28 |
|
29 */ |
|
30 |
|
31 |
|
32 #define CMSVENTRY CMsvEntry |
|
33 |
|
34 #define SETENTRYL(s) aEntry.SetEntryL(s) |
|
35 #define CHANGEENTRYL(s) aEntry.ChangeL(s) |
|
36 #define SETSORT(s) TRAPD(ignor,aEntry.SetSortTypeL(s)) |
|
37 #define CREATEENTRYL(s) aEntry.CreateL(s) |
|
38 #define DELETEENTRYL(s) aEntry.DeleteL(s) |
|
39 |
|
40 |
|
41 |
|
42 #endif // __IMPMACRO_H__ |