mds_plat/metadata_engine_api/inc/mderange.h
changeset 0 c53acadfccc6
equal deleted inserted replaced
-1:000000000000 0:c53acadfccc6
       
     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:  Used for representing value ranges of various types.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MDERANGE_H__
       
    20 #define __MDERANGE_H__
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class CMdCSerializationBuffer;
       
    25    
       
    26 enum TMdERangeType
       
    27 	{
       
    28 	EMdERangeTypeAny = 0,
       
    29 	EMdERangeTypeEqual,
       
    30 	EMdERangeTypeNotEqual,
       
    31 	EMdERangeTypeLess,
       
    32 	EMdERangeTypeLessOrEqual,
       
    33 	EMdERangeTypeGreater,
       
    34 	EMdERangeTypeGreaterOrEqual,
       
    35 	EMdERangeTypeBetween,
       
    36 	EMdERangeTypeNotBetween
       
    37 	};
       
    38 
       
    39 class TMdESerializeRange
       
    40 	{
       
    41 	public:
       
    42 		static void SerializeL( CMdCSerializationBuffer& aBuffer, TMdERangeType aType,
       
    43 				void* aMin, void* aMax, TInt aValueSize );
       
    44 		static TUint32 RequiredBufferSize( TInt aValueSize );
       
    45 	};
       
    46 	
       
    47 #include "mderange.inl"
       
    48 
       
    49 #endif  // __MDERANGE_H__
       
    50