crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianUtils/Mmp/MmpFileInfo.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.Collections.Generic;
       
    19 using System.Text;
       
    20 
       
    21 namespace SymbianUtils.Mmp
       
    22 {
       
    23     public class MmpFileInfo
       
    24     {
       
    25         #region Enumerations
       
    26         public enum TTargetType
       
    27         {
       
    28             ETargetTypeEXE = 0,
       
    29             ETargetTypeDLL,
       
    30             ETargetTypeUnsupported
       
    31         }
       
    32         #endregion
       
    33 
       
    34         #region Constructor & destructor
       
    35         public MmpFileInfo( string aFileName )
       
    36         {
       
    37             iFileName = aFileName;
       
    38         }
       
    39         #endregion
       
    40 
       
    41         #region Properties
       
    42         public string FileName
       
    43         {
       
    44             get { return iFileName; }
       
    45         }
       
    46 
       
    47         public List<uint> Uids
       
    48         {
       
    49             get { return iUids; }
       
    50         }
       
    51 
       
    52         public uint MostSignificantUid
       
    53         {
       
    54             get
       
    55             {
       
    56                 uint ret = 0;
       
    57                 //
       
    58                 if ( Uids.Count > 0 )
       
    59                 {
       
    60                     ret = Uids[ Uids.Count - 1 ];
       
    61                 }
       
    62                 //
       
    63                 return ret;
       
    64             }
       
    65         }
       
    66 
       
    67         public string Target
       
    68         {
       
    69             get { return iTarget; }
       
    70             set { iTarget = value; }
       
    71         }
       
    72 
       
    73         public TTargetType TargetType
       
    74         {
       
    75             get { return iTargetType; }
       
    76             set { iTargetType = value; }
       
    77         }
       
    78         #endregion
       
    79 
       
    80         #region Data members
       
    81         private readonly string iFileName;
       
    82         private List<uint> iUids = new List<uint>();
       
    83         private string iTarget = string.Empty;
       
    84         private TTargetType iTargetType = TTargetType.ETargetTypeUnsupported;
       
    85         #endregion
       
    86     }
       
    87 }