crashanalysercmd/Libraries/Engine/CrashItemLib/Crash/Header/CIHeader.cs
changeset 0 818e61de6cd1
child 2 0c91f0baec58
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.Text;
       
    19 using System.Collections.Generic;
       
    20 using CrashItemLib.Crash;
       
    21 using CrashItemLib.Crash.Base;
       
    22 using CrashItemLib.Crash.Base.DataBinding;
       
    23 using CrashItemLib.Crash.Utils;
       
    24 using CrashItemLib.Crash.Container;
       
    25 
       
    26 namespace CrashItemLib.Crash.Header
       
    27 {
       
    28     [CIDBAttributeColumn( "Name", 0 )]
       
    29     [CIDBAttributeColumn( "Value", 1, true )]
       
    30     public class CIHeader : CIElement
       
    31     {
       
    32         #region Constructors
       
    33         [CIElementAttributeMandatory()]
       
    34         public CIHeader( CIContainer aContainer )
       
    35             : base( aContainer )
       
    36 		{
       
    37 		}
       
    38 		#endregion
       
    39 
       
    40         #region API
       
    41         #endregion
       
    42 
       
    43         #region Properties
       
    44         [CIDBAttributeCell( "Time", 0 )]
       
    45         public DateTime CrashTime
       
    46         {
       
    47             get { return iCrashTime; }
       
    48             set { iCrashTime = value; }
       
    49         }
       
    50 
       
    51         [CIDBAttributeCell( "Up Time", 1, "", "00:00:00" )]
       
    52         public TimeSpan UpTime
       
    53         {
       
    54             get { return iUpTime; }
       
    55             set { iUpTime = value; }
       
    56         }
       
    57 
       
    58         [CIDBAttributeCell( "File Format", 2, "", "" )]
       
    59         public CIVersionInfo FileFormatVersion
       
    60         {
       
    61             get { return iFileFormatVersion; }
       
    62             set { iFileFormatVersion = value; }
       
    63         }
       
    64         #endregion
       
    65 
       
    66         #region Internal methods
       
    67         #endregion
       
    68 
       
    69         #region Data members
       
    70         private DateTime iCrashTime = new DateTime();
       
    71         private TimeSpan iUpTime = new TimeSpan();
       
    72         private CIVersionInfo iFileFormatVersion = new CIVersionInfo();
       
    73         #endregion
       
    74     }
       
    75 }