crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianDebugLib/Utilities/DbgDirectoryScanner.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.IO;
       
    21 using System.ComponentModel;
       
    22 using SymbianUtils.FileSystem;
       
    23 using SymbianDebugLib.Engine;
       
    24 using SymbianDebugLib.Entity;
       
    25 
       
    26 namespace SymbianDebugLib.Utilities
       
    27 {
       
    28     public class DbgDirectoryScanner : FSDirectoryScanner
       
    29     {
       
    30         #region Constructors
       
    31         public DbgDirectoryScanner( DbgEngine aEngine )
       
    32         {
       
    33             iEngine = aEngine;
       
    34         }
       
    35         #endregion
       
    36 
       
    37         #region From FSDirectoryScanner
       
    38         protected override void OnFileLocated( FileInfo aFile )
       
    39         {
       
    40             base.OnFileLocated( aFile );
       
    41             //
       
    42             DbgEntity entity = iEngine.Add( aFile );
       
    43             if ( entity != null )
       
    44             {
       
    45                 // Files found this way are not explict
       
    46                 entity.WasAddedExplicitly = false;
       
    47             }
       
    48         }
       
    49         #endregion
       
    50 
       
    51         #region Properties
       
    52         #endregion
       
    53 
       
    54         #region Internal methods
       
    55         #endregion
       
    56 
       
    57         #region Data members
       
    58         private readonly DbgEngine iEngine;
       
    59         #endregion
       
    60     }
       
    61 }