|
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 System.IO; |
|
21 using System.Drawing; |
|
22 using SymbianUtils; |
|
23 using SymbianUtils.Settings; |
|
24 using SymbianUtils.FileSystem; |
|
25 using SymbianDebugLib.Entity; |
|
26 using SymbianDebugLib.Engine; |
|
27 using SymbianDebugLib.Entity.Descriptors; |
|
28 using SymbianDebugLib.PluginAPI.Types; |
|
29 |
|
30 namespace SymbianDebugLib.Entity.BuiltIn.Unsupported |
|
31 { |
|
32 public class UnsupportedEntity : DbgEntity |
|
33 { |
|
34 #region Static constructors |
|
35 public static UnsupportedEntity New( DbgEntityDescriptor aDescriptor, FSEntity aFSEntity ) |
|
36 { |
|
37 UnsupportedEntity ret = null; |
|
38 // |
|
39 if ( aFSEntity.Exists ) |
|
40 { |
|
41 ret = new UnsupportedEntity( aDescriptor, aFSEntity ); |
|
42 } |
|
43 // |
|
44 return ret; |
|
45 } |
|
46 |
|
47 public static UnsupportedEntity New( DbgEntityDescriptor aDescriptor, XmlSettingCategory aSettingsCategory ) |
|
48 { |
|
49 UnsupportedEntity ret = null; |
|
50 // |
|
51 if ( aSettingsCategory.Contains( KSettingsKeyFileName ) ) |
|
52 { |
|
53 string fileName = aSettingsCategory[ KSettingsKeyFileName ]; |
|
54 ret = New( aDescriptor, FSEntity.New( fileName ) ); |
|
55 } |
|
56 // |
|
57 return ret; |
|
58 } |
|
59 #endregion |
|
60 |
|
61 #region Constants |
|
62 public const string KSettingsKeyFileName = "UnsupportedFileName"; |
|
63 #endregion |
|
64 |
|
65 #region Constructors |
|
66 private UnsupportedEntity( DbgEntityDescriptor aDescriptor, FSEntity aFSEntity ) |
|
67 : base( aDescriptor, aFSEntity ) |
|
68 { |
|
69 } |
|
70 #endregion |
|
71 |
|
72 #region From DbgEntity |
|
73 public override void Save( XmlSettingCategory aCategory ) |
|
74 { |
|
75 aCategory[ KSettingsKeyFileName ] = base.FSEntity.FullName; |
|
76 } |
|
77 #endregion |
|
78 |
|
79 #region Properties |
|
80 #endregion |
|
81 |
|
82 #region Internal methods |
|
83 #endregion |
|
84 |
|
85 #region Data members |
|
86 #endregion |
|
87 } |
|
88 } |