filesystemuis/memscaneng/serverinc/msengfileextscanner.h
changeset 0 6a9f87576119
equal deleted inserted replaced
-1:000000000000 0:6a9f87576119
       
     1 /*
       
     2 * Copyright (c) 2006 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 *     Scanner class used to scan file system by filename extensions.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef MSENGFILEEXTSCANNER_H
       
    21 #define MSENGFILEEXTSCANNER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "msengfilescanner.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Scanner class used to scan file system by filename extension.
       
    30 */
       
    31 class CMsengFileExtScanner : public CMsengFileScanner
       
    32     {
       
    33     public:  // Constructors and destructor
       
    34         
       
    35         /**
       
    36         * constructor
       
    37         */
       
    38         static CMsengFileExtScanner* NewL(
       
    39             MMsengScannerObserver& aObserver, 
       
    40             CMsengInfoArray& aScanArray, 
       
    41             RFs& aFsSession);            
       
    42 
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         ~CMsengFileExtScanner();
       
    47 
       
    48     public: // New functions
       
    49         
       
    50         /**
       
    51         *
       
    52         */
       
    53         virtual CDir* FindFilesL(const TDesC& aDirectory, TBool& aMoveToNextDirectory);
       
    54 
       
    55         /**
       
    56         *
       
    57         */
       
    58         virtual TLocationResponse HandleLocatedEntryL(const TDesC& aFullFileNameAndPath, 
       
    59             const TEntry& aEntry);
       
    60 
       
    61     private:
       
    62 
       
    63         /**
       
    64         * C++ default constructor.
       
    65         */
       
    66         CMsengFileExtScanner(
       
    67             MMsengScannerObserver& aObserver, 
       
    68             CMsengInfoArray& aScanArray, 
       
    69             RFs& aFsSession);            
       
    70 
       
    71     private:
       
    72 
       
    73         // Prohibit copy constructor if not deriving from CBase.
       
    74         CMsengFileExtScanner( const CMsengFileExtScanner& );
       
    75         // Prohibit assigment operator if not deriving from CBase.
       
    76         CMsengFileExtScanner& operator= ( const CMsengFileExtScanner& );
       
    77 
       
    78 		/**
       
    79 		*
       
    80 		*/
       
    81 		TInt iCurrentExtensionIndex;
       
    82 
       
    83 		/**
       
    84 		*
       
    85 		*/
       
    86         TBool iMoveToNextDirectory;
       
    87     };
       
    88 
       
    89 #endif      // MSENGFILEEXTSCANNER_H   
       
    90             
       
    91 // End of File