diff -r 000000000000 -r f72a12da539e menufw/hierarchynavigator/hnutilities/inc/hnmdintegerkey.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/menufw/hierarchynavigator/hnutilities/inc/hnmdintegerkey.h Thu Dec 17 08:40:49 2009 +0200 @@ -0,0 +1,127 @@ +/* +* Copyright (c) 2007-2008 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: +* +*/ + + +#ifndef C_HNMDINTEGERKEY_H +#define C_HNMDINTEGERKEY_H + +#include + +#include "hnmdbasekey.h" + + +/** + * Defines particular key type which is integer. + * + * @lib hierarchynavigatorengine + * @since S60 v5.0 + * @ingroup group_hnutilities + */ +NONSHARABLE_CLASS( CHnMdIntegerKey ) : public CHnMdBaseKey + { + friend class HnMdKeyFactory; + +public: + + /** + * Standard factory method. + * + * @return Fully constructed object. + */ + static CHnMdIntegerKey* NewL(); + + /** + * Standard factory method. + * + * @return Fully constructed object. + */ + static CHnMdIntegerKey* NewLC(); + + /** + * Standard factory method. + * + * @param aKey Reference key. + * @return Fully constructed object. + */ + static CHnMdIntegerKey* NewL( const CHnMdIntegerKey* aKey ); + + /** + * Standard factory method. + * + * @param aKey Reference key. + * @return Fully constructed object. + */ + static CHnMdIntegerKey* NewLC( const CHnMdIntegerKey* aKey ); + + /** + * Standard destructor. + */ + virtual ~CHnMdIntegerKey(); + +// from base class CHnMdBaseKey + + /** + * Factory method. + * + * since S60 v5.0 + * @return Fully constructed object. + */ + virtual CHnMdBaseKey* CopyLC(); + + /** + * Gets key content. + * + * @since S60 v5.0 + * @param aContent Output content. + */ + void GetKeyContent( TInt& aContent ) const; + + /** + * Change to variant. + * + * @since S60 v5.0 + * @param aRet Output variant. + * + */ + virtual void ToVariantL( TLiwVariant& aRet ) const; + +protected: + + /** + * Standard constructor. + * + * @since S60 v5.0 + */ + CHnMdIntegerKey(); + + /** + * Symbian constructor for performing 2nd stage construction. + * + * @since S60 v5.0 + */ + void ConstructL(); + + /** + * Symbian constructor for performing 2nd stage construction. + * + * @since S60 v5.0 + * @param aKey Reference key. + */ + void ConstructL( const CHnMdIntegerKey* aKey ); + }; + +#endif // C_HNMDINTEGERKEY_H