crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianDebugLib/Entity/Primer/DbgEntityPrimerResult.cs
changeset 0 818e61de6cd1
equal deleted inserted replaced
-1:000000000000 0:818e61de6cd1
       
     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.IO;
       
    19 using System.Collections.Generic;
       
    20 using System.Text;
       
    21 using SymbianUtils.PluginManager;
       
    22 using SymbianUtils.FileSystem;
       
    23 using SymbianUtils.Settings;
       
    24 using SymbianDebugLib.Engine;
       
    25 using SymbianUtils;
       
    26 
       
    27 namespace SymbianDebugLib.Entity.Primer
       
    28 {
       
    29     public class DbgEntityPrimerResult
       
    30     {
       
    31         #region Constructors
       
    32         internal DbgEntityPrimerResult( DbgEntity aEntity )
       
    33         {
       
    34             iEntity = aEntity;
       
    35         }
       
    36         #endregion
       
    37 
       
    38         #region API
       
    39         #endregion
       
    40 
       
    41         #region Properties
       
    42         public bool PrimeAttempted
       
    43         {
       
    44             get { return iPrimeAttempted; }
       
    45             internal set { iPrimeAttempted = value; }
       
    46         }
       
    47 
       
    48         public bool PrimedOkay
       
    49         {
       
    50             get
       
    51             { 
       
    52                 bool ret = false;
       
    53                 //
       
    54                 if ( iPrimeAttempted )
       
    55                 {
       
    56                     ret = ( iPrimeException == null );
       
    57                 }
       
    58                 //
       
    59                 return ret;
       
    60             }
       
    61         }
       
    62 
       
    63         public string PrimeErrorMessage
       
    64         {
       
    65             get
       
    66             {
       
    67                 string ret = string.Empty;
       
    68                 //
       
    69                 if ( PrimedOkay == false )
       
    70                 {
       
    71                     ret = string.Format( "Could not process debug entity \'{0}\'", iEntity );
       
    72                 }
       
    73                 //
       
    74                 return ret;
       
    75             }
       
    76         }
       
    77 
       
    78         public Exception PrimeException
       
    79         {
       
    80             get { return iPrimeException; }
       
    81             internal set { iPrimeException = value; }
       
    82         }
       
    83 
       
    84         public DbgEntity Entity
       
    85         {
       
    86             get { return iEntity; }
       
    87         }
       
    88         #endregion
       
    89 
       
    90         #region Internal methods
       
    91         #endregion
       
    92 
       
    93         #region Data members
       
    94         private readonly DbgEntity iEntity;
       
    95         private bool iPrimeAttempted = false;
       
    96         private Exception iPrimeException = null;
       
    97         #endregion
       
    98     }
       
    99 }