menufw/hierarchynavigator/hnmetadatamodel/inc/hnconditioninterface.h
branchv5backport
changeset 14 1abc632eb502
parent 13 6205fd287e8a
child 20 636d517f67e6
equal deleted inserted replaced
13:6205fd287e8a 14:1abc632eb502
     1 /*
       
     2 * Copyright (c) 2007-2008 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 
       
    19 
       
    20 #ifndef C_HNCONDITIONINTERFACE_H
       
    21 #define C_HNCONDITIONINTERFACE_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 class CLiwGenericParamList;
       
    26 
       
    27 enum TOperator
       
    28     {
       
    29         EOpeningBrace = '(',
       
    30         EClosingBrace = ')', 
       
    31         ELogicalAnd = '&',  
       
    32         ELogicalOr = '|',  
       
    33         ESpace = ' '
       
    34     };
       
    35 
       
    36 /**
       
    37  * Condition Interface
       
    38  * 
       
    39  * This class is an interface for conditions.
       
    40  * 
       
    41  * @lib hnmetadatamodel
       
    42  * @since S60 5.0
       
    43  * @ingroup group_hnmetadatamodel
       
    44  */
       
    45 NONSHARABLE_CLASS( CHnConditionInterface ) : public CBase
       
    46     {
       
    47     
       
    48 public:
       
    49     /**
       
    50      * Returns result.
       
    51      *
       
    52      * @since S60 v3.2
       
    53      * @param aQueryResults Results of query.
       
    54      * @param aPos position the list.
       
    55      * @return True if condition is true, otherwise false.
       
    56      */    
       
    57     virtual TBool ResultL( const CLiwGenericParamList& aQueryResults, TInt aPos  = 0 ) = 0;
       
    58     
       
    59     };
       
    60 
       
    61 #endif // C_HNCONDITIONINTERFACE_H
       
    62