diff -r 000000000000 -r c53acadfccc6 mds_plat/metadata_engine_api/inc/mdenumberproperty.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mds_plat/metadata_engine_api/inc/mdenumberproperty.h Mon Jan 18 20:34:07 2010 +0200 @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: CMdENumberPropertys' compatible wrapper to CMdEProperty +* +*/ + +#ifndef __MDENUMBERPROPERTY_H__ +#define __MDENUMBERPROPERTY_H__ + +#include + +/** + * Template for number property compatibility wrappers to property. + */ +template< class T > +class CMdENumberProperty : public CMdEProperty + { +public: + /** + * Returns the value of the property. + * + * @return value + */ + T Value() const; + + /** + * Sets the value of the property. + * + * @param aValue New value. + */ + void SetValueL(T aValue); + }; + +/* Typedefs for numeric properties. */ +typedef CMdENumberProperty CMdEBoolProperty; +typedef CMdENumberProperty CMdEInt8Property; +typedef CMdENumberProperty CMdEUint8Property; +typedef CMdENumberProperty CMdEInt16Property; +typedef CMdENumberProperty CMdEUint16Property; +typedef CMdENumberProperty CMdEInt32Property; +typedef CMdENumberProperty CMdEUint32Property; +typedef CMdENumberProperty CMdEInt64Property; +typedef CMdENumberProperty CMdEReal32Property; +typedef CMdENumberProperty CMdEReal64Property; +typedef CMdENumberProperty CMdETimeProperty; + + +#include + +#endif // __MDENUMBERPROPERTY_H__