williamr@2: /* williamr@2: * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@2: * 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 williamr@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: Filter interface for file selection. williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: #ifndef MAKNFILEFILTER_H williamr@2: #define MAKNFILEFILTER_H williamr@2: williamr@2: // INCLUDES williamr@2: #include // TBool williamr@2: williamr@2: // FORWARD DECLARATIONS williamr@2: class TEntry; williamr@2: williamr@2: // CLASS DEFINITION williamr@2: /** williamr@2: * An abstract interface class for filters. williamr@2: * williamr@2: * @lib CommonDialogs.lib williamr@2: * @since 1.2 williamr@2: */ williamr@2: class MAknFileFilter williamr@2: { williamr@2: public: // Constructors and destructors williamr@2: /** williamr@2: * A virtual destructor to ensure that correct destructor gets called. williamr@2: * Must have an empty implementation. williamr@2: */ williamr@2: virtual ~MAknFileFilter() { }; williamr@2: williamr@2: public: williamr@2: /** williamr@2: * Checks if a file is accepted by the filter. williamr@2: * @param aDriveAndPath Drive and full path of the file. williamr@2: * @param aEntry A directory entry. williamr@2: * @return Returns ETrue if filter accepts the file. williamr@2: */ williamr@2: virtual TBool Accept( const TDesC& aDriveAndPath, const TEntry& aEntry ) const = 0; williamr@2: williamr@2: }; williamr@2: williamr@2: #endif // MAKNFILEFILTER_H williamr@2: williamr@2: // End of File