epoc32/include/mw/maknfilefilter.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 1 666f914201fb
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
     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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.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