crashanalysercmd/Libraries/Engine/CrashItemLib/Engine/Operations/CIEngineOperation.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 using System.Threading;
       
    21 using System.ComponentModel;
       
    22 using SymbianDebugLib.Engine;
       
    23 using CrashItemLib.Crash;
       
    24 using CrashItemLib.PluginAPI;
       
    25 using CrashItemLib.Engine.Sources;
       
    26 using SymbianUtils.SerializedOperations;
       
    27 
       
    28 namespace CrashItemLib.Engine.Operations
       
    29 {
       
    30     internal abstract class CIEngineOperation : SerializedOperation
       
    31     {
       
    32         #region Constructors
       
    33         protected CIEngineOperation( CIEngine aEngine )
       
    34             : this( aEngine, 0 )
       
    35         {
       
    36         }
       
    37 
       
    38         protected CIEngineOperation( CIEngine aEngine, long aPriority )
       
    39         {
       
    40             iEngine = aEngine;
       
    41             iPriority = aPriority;
       
    42         }
       
    43         #endregion
       
    44 
       
    45         #region Properties
       
    46         protected CIEngine Engine
       
    47         {
       
    48             get { return iEngine; }
       
    49         }
       
    50 
       
    51         public override long Priority
       
    52         {
       
    53             get { return iPriority; }
       
    54         }
       
    55         #endregion
       
    56 
       
    57         #region Internal methods
       
    58         internal void SetPriority( long aPriority )
       
    59         {
       
    60             iPriority = aPriority;
       
    61         }
       
    62         #endregion
       
    63 
       
    64         #region Data members
       
    65         private readonly CIEngine iEngine;
       
    66         private long iPriority = 0;
       
    67         #endregion
       
    68     }
       
    69 }