|
1 // SensibleCompat.h |
|
2 // |
|
3 // Copyright (c) 2006 - 2010 Accenture. All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the "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 // Accenture - Initial contribution |
|
11 // |
|
12 |
|
13 #ifndef SENSIBLECOMPAT_H |
|
14 #define SENSIBLECOMPAT_H |
|
15 |
|
16 #ifdef __HIDE_IPC_V1__ |
|
17 |
|
18 // Differences in client server stuff |
|
19 #define RMessage RMessage2 |
|
20 #define CServerBase CServer2 |
|
21 #define CSessionBase CSession2 |
|
22 #define SLOT(msg, n) n |
|
23 #define IPC(name, a,b,c,d) TIpcArgs name(a,b,c,d); |
|
24 |
|
25 #else |
|
26 |
|
27 #define CServerBase CServer |
|
28 #define CSessionBase CSharableSession |
|
29 #define SLOT(msg, n) msg.Ptr ## n () |
|
30 #define IPC(name, a,b,c,d) TInt name[4] = {(TInt)a,(TInt)b,(TInt)c,(TInt)d} |
|
31 |
|
32 #endif |
|
33 |
|
34 #ifndef EKA2 |
|
35 |
|
36 // Some things EKA1 platforms didn't have |
|
37 #define TRAP_IGNORE(x) { TRAPD(dontCare, x); } |
|
38 |
|
39 #endif |
|
40 |
|
41 #endif /* SENSIBLECOMPAT_H */ |