|
1 /* |
|
2 * Copyright (c) 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 using System; |
|
18 using System.Collections.Generic; |
|
19 using System.Text; |
|
20 using SymbianUtils.PluginManager; |
|
21 using SymbianStructuresLib.Debug.Trace; |
|
22 using SymbianDebugLib.Engine; |
|
23 using SymbianDebugLib.PluginAPI.Types; |
|
24 |
|
25 namespace SymbianDebugLib.PluginAPI.Types.Trace |
|
26 { |
|
27 public abstract class DbgEngineTrace : DbgPluginEngine |
|
28 { |
|
29 #region Factory function |
|
30 public static DbgEngineTrace New( DbgEngine aEngine ) |
|
31 { |
|
32 PluginManager<DbgEngineTrace> loader = new PluginManager<DbgEngineTrace>( 1 ); |
|
33 loader.Load( new object[] { aEngine } ); |
|
34 // |
|
35 DbgEngineTrace ret = null; |
|
36 foreach ( DbgEngineTrace engine in loader ) |
|
37 { |
|
38 if ( engine is DbgEngineTraceStub && loader.Count > 1 ) |
|
39 { |
|
40 continue; |
|
41 } |
|
42 else |
|
43 { |
|
44 ret = engine; |
|
45 break; |
|
46 } |
|
47 } |
|
48 // |
|
49 return ret; |
|
50 } |
|
51 #endregion |
|
52 |
|
53 #region Constructors |
|
54 protected DbgEngineTrace( DbgEngine aEngine ) |
|
55 : base( aEngine ) |
|
56 { |
|
57 } |
|
58 #endregion |
|
59 |
|
60 #region From DbgPluginEngine |
|
61 protected override DbgPluginView DoCreateView( string aName ) |
|
62 { |
|
63 // This engine doesn't support views. |
|
64 throw new NotSupportedException(); |
|
65 } |
|
66 #endregion |
|
67 |
|
68 #region API |
|
69 public abstract TraceLine[] Decode( byte[] aData ); |
|
70 #endregion |
|
71 |
|
72 #region Properties |
|
73 #endregion |
|
74 |
|
75 #region Internal methods |
|
76 #endregion |
|
77 |
|
78 #region Data members |
|
79 #endregion |
|
80 } |
|
81 } |