0
|
1 |
// Copyright (c) 2002-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 the License "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 |
// e32test\debug\d_traceredirect.h
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#ifndef __D_TRACEREDIRECT_H__
|
|
19 |
#define __D_TRACEREDIRECT_H__
|
|
20 |
|
|
21 |
#include <e32cmn.h>
|
|
22 |
#ifndef __KERNEL_MODE__
|
|
23 |
#include <e32std.h>
|
|
24 |
#endif
|
|
25 |
|
|
26 |
|
|
27 |
class TCapsTestV01
|
|
28 |
{
|
|
29 |
public:
|
|
30 |
TVersion iVersion;
|
|
31 |
};
|
|
32 |
|
|
33 |
class RTraceRedirect : public RBusLogicalChannel
|
|
34 |
{
|
|
35 |
public:
|
|
36 |
enum TControl
|
|
37 |
{
|
|
38 |
ENextTrace
|
|
39 |
};
|
|
40 |
enum TRequest
|
|
41 |
{
|
|
42 |
};
|
|
43 |
public:
|
|
44 |
#ifndef __KERNEL_MODE__
|
|
45 |
inline TInt Open();
|
|
46 |
inline TInt NextTrace(TDes8 &aDes);
|
|
47 |
#endif
|
|
48 |
};
|
|
49 |
|
|
50 |
#ifndef __KERNEL_MODE__
|
|
51 |
inline TInt RTraceRedirect::Open()
|
|
52 |
{ return DoCreate(_L("D_TRACEREDIRECT"),TVersion(0,1,1),KNullUnit,NULL,NULL); }
|
|
53 |
inline TInt RTraceRedirect::NextTrace(TDes8 &aDes)
|
|
54 |
{ return DoControl(ENextTrace,(TAny *)&aDes); }
|
|
55 |
|
|
56 |
#endif
|
|
57 |
|
|
58 |
#endif
|
|
59 |
|