inc/mdccriteria.h
changeset 0 c53acadfccc6
equal deleted inserted replaced
-1:000000000000 0:c53acadfccc6
       
     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:  common criteria object for MdE
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MDCCRITERIA_H_
       
    19 #define MDCCRITERIA_H_
       
    20 
       
    21 #include "mdscommoninternal.h"
       
    22 #include "mdcserializationtype.h"
       
    23 
       
    24 TMdCSearchCriteria : protected TMdCSerializationType
       
    25 {
       
    26 	TInt16 iQueryResultType;
       
    27 	TInt16 iQueryType;
       
    28 	TDefId iNamespaceDefId;
       
    29 	TDefId iObjectDefId;
       
    30 	TMdCValueUnion iObjectDefIds;
       
    31 	TUint32 iLimit;
       
    32 	//TUint32 iOffset; NOT USED
       
    33 	TUint32 iOptimizationFlags;
       
    34 	TUint32 iRootConditionOffset;
       
    35 	TMdCValueUnion iOrderRules;
       
    36 	TMdCValueUnion iPropertyFilters;
       
    37 };
       
    38 
       
    39 TMdCOrderRule : protected TMdCSerializationType
       
    40 {
       
    41 	TInt16 iOrderRule;
       
    42 	TUint16 iFlags;
       
    43 	TDefId iPropertyDefId;
       
    44 };
       
    45 
       
    46 TMdCCondition : protected TMdCSerializationType
       
    47 {
       
    48 	TInt16 iConditionType;
       
    49 	TInt16 iNegated;
       
    50 };
       
    51 
       
    52 TMdCLogicCondition : public TMdCCondition
       
    53 {
       
    54 	TInt16 iOperator;
       
    55 	TUint32 iOptimizationFlags;
       
    56 	TMdCValueUnion iChildConditions;
       
    57 };
       
    58 
       
    59 TMdCObjectCondition : public TMdCCondition
       
    60 {
       
    61 	TInt16 iConfidentialityLevel;
       
    62 	TInt16 iCompareMethod;
       
    63 	TUint32 iFlags;
       
    64 	TUint32 iConditionOffset;
       
    65 };
       
    66 
       
    67 TMdCPropertyCondition : public TMdCCondition
       
    68 {
       
    69 	TDefId iObjectDefId;
       
    70 	TDefId iPropertyDefId;
       
    71 	TUint32 iConditionOffset;
       
    72 };
       
    73 
       
    74 TMdCRelationCondition : public TMdCCondition
       
    75 {
       
    76 	TInt16 iObjectSide;
       
    77 	TItemId iRelationId;
       
    78 	TMdCValueUnion iRelationIds;
       
    79 	TDefId iRelationDefId;
       
    80 	TUint32 iGuidOffset;
       
    81 	TUint32 iParameterRangeOffset;
       
    82 	TUint32 iLeftObjectConditionOffset;
       
    83 	TUint32 iRightObjectConditionOffset;
       
    84 	TUint32 iLastModifiedDateRangeOffset;
       
    85 };
       
    86 
       
    87 TMdCEventCondition : public TMdCCondition
       
    88 {
       
    89 	TInt16 iCompareMethod;
       
    90 	TItemId iEventId;
       
    91 	TDefId iEventDefId;
       
    92 	TUint32 iCreationTimeOffset;
       
    93 	TUint32 iObjectConditionOffset;
       
    94 	TUint32 iSourceConditionOffset;
       
    95 	TUint32 iParticipantConditionOffset;
       
    96 	TUint32 iUriConditionOffset;
       
    97 };
       
    98 
       
    99 #endif /*MDCCRITERIA_H_*/