|
1 // Copyright (c) 2007-2010 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 // TraceCore configuration message subscriber |
|
15 // |
|
16 |
|
17 #ifndef __TRACECOREINTERNALMESSAGEHANDLER_H__ |
|
18 #define __TRACECOREINTERNALMESSAGEHANDLER_H__ |
|
19 |
|
20 |
|
21 // Include files |
|
22 #include "TraceCoreSubscriber.h" |
|
23 |
|
24 |
|
25 /** |
|
26 * Trace configuration. This extends the subscriber base class to receive configuration requests |
|
27 */ |
|
28 NONSHARABLE_CLASS( DTraceCoreInternalMessageHandler ) : public DTraceCoreSubscriber |
|
29 { |
|
30 public: |
|
31 |
|
32 /** |
|
33 * Constructor |
|
34 */ |
|
35 DTraceCoreInternalMessageHandler(); |
|
36 |
|
37 /** |
|
38 * Destructor |
|
39 */ |
|
40 ~DTraceCoreInternalMessageHandler(); |
|
41 |
|
42 /** |
|
43 * Initializes configuration |
|
44 */ |
|
45 TInt Init(); |
|
46 |
|
47 /** |
|
48 * Message received callback |
|
49 * |
|
50 * @param aMessage The message |
|
51 */ |
|
52 void MessageReceived( TTraceMessage& aMsg ); |
|
53 |
|
54 private: |
|
55 |
|
56 /** |
|
57 * Sends a response message |
|
58 * |
|
59 * @param aMsg the incoming message |
|
60 * @param aResult the result code |
|
61 */ |
|
62 void SendResponse( TTraceMessage& aMsg, TInt aResult ); |
|
63 |
|
64 /** |
|
65 * Handle version query |
|
66 * |
|
67 * @param aMsg the incoming message |
|
68 * @param aResult the result code |
|
69 */ |
|
70 void HandleOstVersionQuery( TTraceMessage& aMsg, TInt aMessageId ); |
|
71 |
|
72 }; |
|
73 |
|
74 #endif // __TRACECOREINTERNALMESSAGEHANDLER_H__ |
|
75 |
|
76 // End of File |