menufw/hierarchynavigator/hnutilities/inc/hnmdinteger64key.h
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_HNMDINTEGER64KEY_H
       
    21 #define C_HNMDINTEGER64KEY_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 #include "hnmdbasekey.h"
       
    26 
       
    27 /**
       
    28  * Defines particular key type which is 64-bit integer.
       
    29  *
       
    30  * @lib hierarchynavigatorengine
       
    31  * @since S60 v5.0
       
    32  * @ingroup group_hnutilities
       
    33  */
       
    34 NONSHARABLE_CLASS( CHnMdInteger64Key ) : public CHnMdBaseKey
       
    35     {
       
    36     friend class HnMdKeyFactory;
       
    37 
       
    38 public:
       
    39     
       
    40     /**
       
    41      * Standard factory method.
       
    42      * 
       
    43      * @return Fully constructed object.
       
    44      */
       
    45     static CHnMdInteger64Key* NewL();
       
    46 
       
    47     /**
       
    48      * Standard factory method.
       
    49      * 
       
    50      * @return Fully constructed object.
       
    51      */
       
    52     static CHnMdInteger64Key* NewLC();
       
    53 
       
    54     /**
       
    55      * Standard factory method.
       
    56      * 
       
    57      * @param aKey Reference key.
       
    58      * @return Fully constructed object.
       
    59      */
       
    60     static CHnMdInteger64Key* NewL( const CHnMdInteger64Key* aKey );
       
    61 
       
    62     /**
       
    63      * Standard factory method.
       
    64      * 
       
    65      * @param aKey Reference key.
       
    66      * @return Fully constructed object.
       
    67      */
       
    68     static CHnMdInteger64Key* NewLC( const CHnMdInteger64Key* aKey );
       
    69    
       
    70     /**
       
    71      * Standard destructor.
       
    72      */
       
    73     virtual ~CHnMdInteger64Key();
       
    74     
       
    75 // from base class CHnMdBaseKey
       
    76     
       
    77     /**
       
    78      * Factory method.
       
    79      *
       
    80      * since S60 v5.0
       
    81      * @return Fully constructed object.
       
    82      */
       
    83     virtual CHnMdBaseKey* CopyLC();
       
    84     
       
    85     /**
       
    86      * Gets key content.
       
    87      *
       
    88      * @since S60 v5.0
       
    89      * @param aContent Output content.
       
    90      */
       
    91     void GetKeyContent( TInt64& aContent ) const;
       
    92 
       
    93     /**
       
    94      * Change to variant.
       
    95      * 
       
    96      * @since S60 v5.0
       
    97      * @param aRet Output variant.
       
    98      * 
       
    99      */
       
   100     virtual void ToVariantL( TLiwVariant& aRet ) const;
       
   101     
       
   102 protected:      
       
   103 
       
   104     /**
       
   105      * Standard constructor.
       
   106      * 
       
   107      * @since S60 v5.0
       
   108      */
       
   109     CHnMdInteger64Key();
       
   110 
       
   111     /**
       
   112      * Symbian constructor for performing 2nd stage construction.
       
   113      * 
       
   114      * @since S60 v5.0
       
   115      */
       
   116     void ConstructL();
       
   117 
       
   118     /**
       
   119      * Symbian constructor for performing 2nd stage construction.
       
   120      * 
       
   121      * @since S60 v5.0
       
   122      * @param aKey Reference key.
       
   123      */
       
   124     void ConstructL( const CHnMdInteger64Key* aKey );
       
   125     };
       
   126 
       
   127 #endif // C_HNMDINTEGER64KEY_H