diff -r 000000000000 -r 6a9f87576119 filemanager/GFLM/inc/MGflmItemFilter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/filemanager/GFLM/inc/MGflmItemFilter.h Mon Jan 18 20:09:41 2010 +0200 @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0"" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Defines an interface for making a custom filter to GFLM +* +*/ + + + +#ifndef MGFLMITEMFILTER_H +#define MGFLMITEMFILTER_H + + +// INCLUDES +#include + + +// FORWARD DECLARATIONS +class CGflmGroupItem; +class CGflmDriveItem; + + +// CLASS DECLARATION + +/** +* Defines an interface for making a custom filter to GFLM. +* +* @lib GFLM.lib +* @since 2.0 +*/ +class MGflmItemFilter + { + public: // New functions + + /** + * This method is called for every item to be filtered + * Note that the method is run in work thread space + * @since 2.0 + * @param aItem Group item to be filtered + * @param aGroupId Id of the group to which the item belongs + * @param aDrive The drive where item is located, NULL if data is unavailable + * @return True if item was accepted, false if not + */ + virtual TBool FilterItemL( + CGflmGroupItem* aItem, + TInt aGroupId, + CGflmDriveItem* aDrive ) = 0; + + }; + +#endif // MGFLMITEMFILTER_H + +// End of File