sysstatemgmt/systemstateplugins/conditionevaluator/inc/conditionevaluate.h
changeset 0 4e1aa6a622a0
child 7 1a73e8f1b64d
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2007-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 * Name        : resourcecondition.h
       
    16 * Part of     : System Startup / Condition
       
    17 * Interface   : None
       
    18 * Declaration of ResourceCondition class
       
    19 * Version     : %version: 1 %
       
    20 * This material, including documentation and any related computer
       
    21 * programs, is protected by copyright controlled by Nokia.  All
       
    22 * rights are reserved.  Copying, including reproducing, storing,
       
    23 * adapting or translating, any or all of this material requires the
       
    24 * prior written consent of Nokia.  This material also contains
       
    25 * confidential information which may not be disclosed to others
       
    26 * without the prior written consent of Nokia.
       
    27 * Template version: 4.1
       
    28 * Nokia Core OS *
       
    29 * File renamed from resourcecondition.h to CConditionEvaluate.h as part of Core OS transfer.
       
    30 *
       
    31 */
       
    32 
       
    33 
       
    34 
       
    35 
       
    36 /**
       
    37  @file
       
    38  @internalComponent
       
    39  @released
       
    40 */
       
    41 
       
    42 #ifndef __CONDITIONEVALUATE_H
       
    43 #define __CONDITIONEVALUATE_H
       
    44 
       
    45 // INCLUDES
       
    46 #include <ssm/conditionevaluatebase.h>
       
    47 #include <ssm/conditiontypes.hrh>
       
    48 #include <barsc2.h> 
       
    49 #include <barsread.h>
       
    50 
       
    51 
       
    52 // CLASS DECLARATION
       
    53 
       
    54 /**
       
    55  * CConditionEvaluate
       
    56  *
       
    57  */
       
    58 class CConditionEvaluate : public CBase
       
    59 	{
       
    60 public:
       
    61 
       
    62 	IMPORT_C ~CConditionEvaluate();
       
    63 	IMPORT_C static CConditionEvaluate* NewL();
       
    64 	IMPORT_C static CConditionEvaluate* NewLC();
       
    65 	IMPORT_C TBool EvaluateL(const CResourceFile& aResourceFile, const TInt aResourceId);
       
    66 private:
       
    67 	CConditionEvaluateBase* DoEvaluateLC(const CResourceFile& aResourceFile, const TInt aResourceId, RArray<TUint32>& aUsedResourceIds);
       
    68 	CConditionEvaluate();
       
    69 	
       
    70 	CConditionEvaluateBase* ReadConditionOnFeatureMatchL(TResourceReader& aReader);
       
    71 	CConditionEvaluateBase* ReadConditionOnFeatureL(TResourceReader& aReader);
       
    72 	CConditionEvaluateBase* ReadConditionOnCentRepFlagL(TResourceReader& aReader);
       
    73 	CConditionEvaluateBase* ReadConditionOnCentRepMatchL(TResourceReader& aReader);
       
    74 	CConditionEvaluateBase* ReadConditionOnPubSubFlagL(TResourceReader& aReader);
       
    75 	CConditionEvaluateBase* ReadConditionOnPubSubMatchL(TResourceReader& aReader);
       
    76 	CConditionEvaluateBase* ReadLogicalNotL(const CResourceFile& aResourceFile, TResourceReader& aReader,
       
    77 										RArray<TUint32>& aUsedResourceIds);
       
    78 	CConditionEvaluateBase* ReadLogicalAndL(const CResourceFile& aResourceFile, TResourceReader& aReader,
       
    79 										RArray<TUint32>& aUsedResourceIds);
       
    80 	CConditionEvaluateBase* ReadLogicalOrL(const CResourceFile& aResourceFile, TResourceReader& aReader,
       
    81 										RArray<TUint32>& aUsedResourceIds);
       
    82 	CConditionEvaluateBase* ReadConditionOnSwpMatchL(TResourceReader& aReader);
       
    83 	CConditionEvaluateBase* ReadConditionOnSwpFlagL(TResourceReader& aReader);
       
    84 	
       
    85 	}; // class CConditionEvaluate
       
    86 
       
    87 #endif // __CONDITIONEVALUATE_H