|
1 /** |
|
2 * Copyright (c) 2006-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file ESockDebugMessages.h |
|
22 */ |
|
23 |
|
24 #ifndef __ESOCKDEBUG_MESSAGES_H__ |
|
25 #define __ESOCKDEBUG_MESSAGES_H__ |
|
26 |
|
27 #include <comms-infras/metavirtctor.h> |
|
28 |
|
29 class CSockSession; |
|
30 |
|
31 namespace ESockDebug |
|
32 { |
|
33 const TInt KMaxIpcMsgLength = 256; |
|
34 |
|
35 // Registration of message interfaces |
|
36 //----------------------------------- |
|
37 class TMessageTable |
|
38 { |
|
39 public: |
|
40 IMPORT_C static void RegisterL(); |
|
41 IMPORT_C static void DeRegister(); |
|
42 }; |
|
43 |
|
44 // Base message |
|
45 class TControlMsg : public Meta::SMetaDataNetCtor |
|
46 { |
|
47 public: |
|
48 IMPORT_C virtual TInt DispatchL(CSockSession* aHostSession) = 0; |
|
49 }; |
|
50 } |
|
51 |
|
52 namespace ESockDebug |
|
53 { |
|
54 namespace MemoryDebug |
|
55 { |
|
56 // TODO_CDG not supported yet, place holder for extending with replacement for legacy debug behaviour |
|
57 // Implementation interface ID for ESockDebug::MemoryDebug messages |
|
58 static const TInt KImplementationUid = 0xDEADDEAD; |
|
59 |
|
60 // Base |
|
61 class TMemoryDebugControlMsg : public TControlMsg |
|
62 { |
|
63 }; |
|
64 |
|
65 class TCheckFailNextMsg : public TMemoryDebugControlMsg |
|
66 { |
|
67 public: |
|
68 IMPORT_C virtual TInt DispatchL(CSockSession* aHostSession); |
|
69 DECLARE_MVIP_CTR(TCheckFailNextMsg) |
|
70 EXPORT_DATA_VTABLE_AND_FN |
|
71 }; |
|
72 } |
|
73 } |
|
74 |
|
75 #endif // __ESOCKDEBUG_MESSAGES_H__ |
|
76 |