menucontentsrv/srvinc/menusrvobjectfilter.h
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MENUSRVOBJECTFILTER_H__
       
    19 #define __MENUSRVOBJECTFILTER_H__
       
    20 
       
    21 //  INCLUDES
       
    22 
       
    23 #include "menuengfilter.h"
       
    24 
       
    25 // FORWARD DECLARATION
       
    26 
       
    27 class CMenuFilter;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 * Wrap a CMenuFilter as MMenuEngFilter.
       
    33 */
       
    34 NONSHARABLE_CLASS( TMenuSrvObjectFilter ): public MMenuEngFilter
       
    35     {
       
    36 
       
    37 public:     // construction
       
    38 
       
    39     /**
       
    40     * Constructor.
       
    41     * @param aFilter Filter.
       
    42     */
       
    43     TMenuSrvObjectFilter( CMenuFilter& aFilter ): iFilter( aFilter ) {}
       
    44 
       
    45 public:     // from MMenuEngFilter
       
    46 
       
    47     /**
       
    48     * Filter test function.
       
    49     * @param aObject Object.
       
    50     * @return ETrue if aObject matches this filter.
       
    51     */
       
    52     TBool MatchesObject( const CMenuEngObject& aObject ) const;
       
    53 
       
    54 private:    // data
       
    55 
       
    56     CMenuFilter& iFilter; ///< Filter.
       
    57 
       
    58     };
       
    59 
       
    60 #endif // __MENUSRVOBJECTFILTER_H__
       
    61             
       
    62 // End of File