2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Filter interface for file selection.
19 #ifndef MAKNFILEFILTER_H
20 #define MAKNFILEFILTER_H
23 #include <e32def.h> // TBool
25 // FORWARD DECLARATIONS
30 * An abstract interface class for filters.
32 * @lib CommonDialogs.lib
37 public: // Constructors and destructors
39 * A virtual destructor to ensure that correct destructor gets called.
40 * Must have an empty implementation.
42 virtual ~MAknFileFilter() { };
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.
51 virtual TBool Accept( const TDesC& aDriveAndPath, const TEntry& aEntry ) const = 0;
55 #endif // MAKNFILEFILTER_H