menufw/hierarchynavigator/hnmetadatamodel/inc/hnsimpleconditionhas.h
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     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 #ifndef HNSIMPLECONDITIONHAS_H_
       
    20 #define HNSIMPLECONDITIONHAS_H_
       
    21 
       
    22 #include "hnsimplecondition.h"
       
    23 
       
    24 /**
       
    25  * Simple Condition Has.
       
    26  * 
       
    27  * Class compares condition with criterium 'has'.
       
    28  * 
       
    29  * @lib hnmetadatamodel
       
    30  * @since S60 5.0
       
    31  * @ingroup group_hnmetadatamodel
       
    32  */
       
    33 NONSHARABLE_CLASS( CHnSimpleConditionHas ) : public CHnSimpleCondition
       
    34     {
       
    35     /**
       
    36      * Gets positions. From CHnMenuCondition.
       
    37      * 
       
    38      * @param aBuffer Buffer.
       
    39      * @return Position.
       
    40      */
       
    41     TInt GetPositionL( const TDesC8& aBuffer );
       
    42     
       
    43     /**
       
    44      * Returns result. From CHnMenuCondition.
       
    45      *
       
    46      * @since S60 v3.2
       
    47      * @param aVarLeft Left Liv variant condition to compare.
       
    48      * @param aVarRight Right Liv variant condition to compare.
       
    49      * @return True if condition is satisfied.
       
    50      */    
       
    51     TBool CheckCondition( TLiwVariant& aVarLeft, TLiwVariant& aVarRight );
       
    52    
       
    53     /**
       
    54      * Gets length. From CHnMenuCondition.
       
    55      * 
       
    56      * @return Length of an operator.
       
    57      */
       
    58     TInt SignLength();
       
    59     };
       
    60 
       
    61 #endif /*HNSIMPLECONDITIONHAS_H_*/