crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianParserLib/BaseStructures/ParserResponse.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 SymbianParserLib.BaseStructures
       
    22 {
       
    23     internal class ParserResponse
       
    24     {
       
    25         #region Enumerations
       
    26         public enum TResponseType
       
    27         {
       
    28             EResponseTypeUnhandled = 0,
       
    29             EResponseTypeHandled,
       
    30             EResponseTypeHandledByRequiresReProcessing
       
    31         }
       
    32         #endregion
       
    33 
       
    34         #region Constructors
       
    35         public ParserResponse()
       
    36             : this( TResponseType.EResponseTypeUnhandled )
       
    37         {
       
    38         }
       
    39 
       
    40         public ParserResponse( TResponseType aType )
       
    41         {
       
    42             iType = aType;
       
    43         }
       
    44         #endregion
       
    45 
       
    46         #region API
       
    47         #endregion
       
    48 
       
    49         #region Properties
       
    50         public TResponseType Type
       
    51         {
       
    52             get { return iType; }
       
    53         }
       
    54 
       
    55         public bool WasHandled
       
    56         {
       
    57             get { return Type != TResponseType.EResponseTypeUnhandled; }
       
    58         }
       
    59         #endregion
       
    60 
       
    61         #region Internal methods
       
    62         #endregion
       
    63 
       
    64         #region Internal constants
       
    65         #endregion
       
    66 
       
    67         #region From System.Object
       
    68         public override string ToString()
       
    69         {
       
    70             return base.ToString();
       
    71         }
       
    72         #endregion
       
    73 
       
    74         #region Data members
       
    75         private readonly TResponseType iType;
       
    76         #endregion
       
    77     }
       
    78 }