|
1 // Copyright (c) 2008-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 // SS_MSGNTERCEPT.H |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #if !defined(__SS_MSGINTERCEPT_H__) |
|
24 #define __SS_MSGINTERCEPT_H__ |
|
25 |
|
26 #include <elements/sd_mintercept.h> |
|
27 |
|
28 #if defined (__ELEMENTS_MESSAGE_INTERCEPT_ACTIVE) |
|
29 |
|
30 // these macros are here to minimise impact on esock source code |
|
31 #define ESOCK_DEBUG_MESSAGE_INTERCEPT(SENDER, MESSAGE, RECEIVER) ELEMENTS_DEBUG_MESSAGE_INTERCEPT(SENDER, MESSAGE, RECEIVER) |
|
32 #define ESOCK_DEBUG_REGISTER_PROVIDER_NODE(UID, COMMSID, PROVIDERINFO) ELEMENTS_DEBUG_REGISTER_PROVIDER_NODE(UID, COMMSID, PROVIDERINFO) |
|
33 #define ESOCK_DEBUG_REGISTER_GENERAL_NODE(UID, COMMSID) ELEMENTS_DEBUG_REGISTER_GENERAL_NODE(UID, COMMSID) |
|
34 |
|
35 #else |
|
36 |
|
37 #define ESOCK_DEBUG_MESSAGE_INTERCEPT(SENDER, MESSAGE, RECEIVER) |
|
38 #define ESOCK_DEBUG_REGISTER_PROVIDER_NODE(UID, COMMSID, PROVIDERINFO) |
|
39 #define ESOCK_DEBUG_REGISTER_GENERAL_NODE(UID, COMMSID) |
|
40 |
|
41 #endif //(__ELEMENTS_MESSAGE_INTERCEPT_ACTIVE) |
|
42 |
|
43 // UIDs for node types without factories (with their own UIDs) |
|
44 namespace ESockDebug |
|
45 { |
|
46 const TInt KSocketNodeUid = 0x10000001; // TODO_CDG we should get some genuine ones! |
|
47 const TInt KConnectionNodeUid = 0x10000002; // TODO_CDG we should get some genuine ones! |
|
48 const TInt KSubConnectionNodeUid = 0x10000003; // TODO_CDG we should get some genuine ones! |
|
49 const TInt KHostResolverNodeUid = 0x10000004; // TODO_CDG we should get some genuine ones! |
|
50 } |
|
51 |
|
52 #endif // !(__SS_MSGINTERCEPT_H__) |
|
53 |