equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-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 // d32btrace.h |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef D32UTRACE_H |
|
19 #define D32UTRACE_H |
|
20 |
|
21 /*#include <e32cmn.h> |
|
22 #include <e32ver.h> |
|
23 */ |
|
24 |
|
25 #ifndef __KERNEL_MODE__ |
|
26 //#include <e32std.h> |
|
27 #endif |
|
28 |
|
29 |
|
30 |
|
31 /** |
|
32 Interface to the utrace api. |
|
33 |
|
34 @internalTechnology |
|
35 */ |
|
36 class RUTrace : public RBusLogicalChannel |
|
37 { |
|
38 public: |
|
39 |
|
40 #ifndef __KERNEL_MODE__ |
|
41 /** |
|
42 Open channel to device driver. |
|
43 Must be called before any other methods are used. |
|
44 @return KErrNone or standard error code. |
|
45 */ |
|
46 IMPORT_C TInt Open(); |
|
47 |
|
48 /** |
|
49 Close channel to device driver. |
|
50 */ |
|
51 IMPORT_C void Close(); |
|
52 |
|
53 IMPORT_C TInt TestUtrace(TInt& aFailed); |
|
54 |
|
55 #endif |
|
56 |
|
57 private: |
|
58 inline static const TDesC& Name(); |
|
59 |
|
60 enum TControl |
|
61 { |
|
62 ETestUTrace, |
|
63 }; |
|
64 friend class DUTraceChannel; |
|
65 friend class DUTraceFactory; |
|
66 }; |
|
67 |
|
68 |
|
69 inline const TDesC& RUTrace::Name() |
|
70 { |
|
71 _LIT(KUTraceName,"utrace"); |
|
72 return KUTraceName; |
|
73 } |
|
74 |
|
75 #endif |