classicui_plat/common_file_dialogs_api/inc/MAknFileFilter.h
changeset 46 0e1e0022bd03
equal deleted inserted replaced
45:667edd0b8678 46:0e1e0022bd03
       
     1 /*
       
     2 * Copyright (c) 2002-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:  Filter interface for file selection.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MAKNFILEFILTER_H
       
    20 #define MAKNFILEFILTER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32def.h> // TBool
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class TEntry;
       
    27 
       
    28 //  CLASS DEFINITION
       
    29 /**
       
    30 *  An abstract interface class for filters.
       
    31 *
       
    32 *  @lib CommonDialogs.lib
       
    33 *  @since 1.2
       
    34 */
       
    35 class MAknFileFilter
       
    36     {
       
    37     public:     // Constructors and destructors
       
    38         /**
       
    39         * A virtual destructor to ensure that correct destructor gets called.
       
    40         * Must have an empty implementation.
       
    41         */
       
    42         virtual ~MAknFileFilter() { };
       
    43 
       
    44     public:
       
    45         /**
       
    46         * Checks if a file is accepted by the filter.
       
    47         * @param aDriveAndPath Drive and full path of the file.
       
    48         * @param aEntry A directory entry.
       
    49         * @return Returns ETrue if filter accepts the file.
       
    50         */
       
    51         virtual TBool Accept( const TDesC& aDriveAndPath, const TEntry& aEntry ) const = 0;
       
    52 
       
    53     };
       
    54 
       
    55 #endif // MAKNFILEFILTER_H
       
    56 
       
    57 // End of File