commonuis/CommonDialogs/src/CCFDCustomFilter.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     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:  Custom filter for file selection dialog.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CCFDCUSTOMFILTER_H
       
    20 #define CCFDCUSTOMFILTER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <MAknFileFilter.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 //class ?FORWARD_CLASSNAME;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  A dummy custom filter class which can be used to give ownership 
       
    33 *  to file selection model without deleting client filter object.
       
    34 *
       
    35 *  @lib CommonDialogs.lib
       
    36 *  @since 2.0
       
    37 */
       
    38 NONSHARABLE_CLASS(CCFDCustomFilter) : public CBase, public MAknFileFilter
       
    39     {
       
    40     public:  // Constructors and destructor
       
    41         
       
    42         CCFDCustomFilter( MAknFileFilter* aFilter );
       
    43 		~CCFDCustomFilter();
       
    44 
       
    45     private:  // Functions from base classes
       
    46 
       
    47 		/**
       
    48 		* From MAknFileFilter.
       
    49 		*/
       
    50         TBool Accept( const TDesC& aDriveAndPath, const TEntry& aEntry ) const;
       
    51 
       
    52     private:    // Data
       
    53 
       
    54 		// Ref: A pointer to filter
       
    55         MAknFileFilter* iFilter;
       
    56 
       
    57     };
       
    58 
       
    59 #endif      // CCFDCUSTOMFILTER_H   
       
    60             
       
    61 // End of File