56
|
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 |
//
|
|
15 |
|
|
16 |
#ifndef _TRACECONNECTION_H_
|
|
17 |
#define _TRACECONNECTION_H_
|
|
18 |
|
|
19 |
#include <kernel/kernel.h>
|
|
20 |
#include <TraceCoreSubscriber.h>
|
|
21 |
|
|
22 |
/**
|
|
23 |
|
|
24 |
Handles TraceCore connection
|
|
25 |
|
|
26 |
*/
|
|
27 |
NONSHARABLE_CLASS(DTraceConnection) : public MTraceCoreNotificationReceiver,
|
|
28 |
public DTraceCoreSubscriber
|
|
29 |
{
|
|
30 |
public:
|
|
31 |
DTraceConnection( );
|
|
32 |
DTraceConnection( DTcChannel* aTCChannel );
|
|
33 |
~DTraceConnection();
|
|
34 |
|
|
35 |
// Virtual from MTraceCoreNotificationReceiver. Called from TraceCore.
|
|
36 |
void TraceActivated( TUint32 aComponentId, TUint16 aGroupId );
|
|
37 |
void TraceDeactivated( TUint32 aComponentId, TUint16 aGroupId );
|
|
38 |
|
|
39 |
// Called from DTcChannel
|
|
40 |
TInt RegisterNotificationReceiver( TUint32 aComponentId, TInt32 aGroupId );
|
|
41 |
void UnregisterNotificationReceiver( TUint32 aComponentId, TInt32 aGroupId );
|
|
42 |
|
|
43 |
// From DTraceCoreSubscriber
|
|
44 |
void MessageReceived( TTraceMessage &aMsg );
|
|
45 |
|
|
46 |
TInt DoSendMessage( TTraceMessage &aMsg );
|
|
47 |
|
|
48 |
private:
|
|
49 |
DTcChannel* iTcChannel;
|
|
50 |
|
|
51 |
};
|
|
52 |
|
|
53 |
#endif /*_TRACECONNECTION_H_*/
|
|
54 |
|