phoneapp/phoneuiutils/inc/tphonecmdparamdynmenu.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Parameter class for dynamic menu generation
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __TPHONECMDPARAMDYNMENU_H
       
    19 #define __TPHONECMDPARAMDYNMENU_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include "tphonecommandparam.h"
       
    23 
       
    24 // CLASS DECLARATION
       
    25 
       
    26 /**
       
    27 *  A concrete parameter class for one integer value.
       
    28 *  
       
    29 */
       
    30 class TPhoneCmdParamDynMenu : public TPhoneUICommandParam
       
    31     {
       
    32     public:  
       
    33         
       
    34         /**
       
    35         * C++ default constructor.
       
    36         */
       
    37         IMPORT_C TPhoneCmdParamDynMenu();
       
    38 
       
    39     public: 
       
    40         
       
    41         /**
       
    42         * Sets the resourceId value
       
    43         * @param aInteger is integer value
       
    44         */
       
    45         IMPORT_C void SetResourceId( TInt aInteger );
       
    46 
       
    47         /**
       
    48         * Sets the DynMenu pointer value
       
    49         * @param aPointer is integer value
       
    50         */
       
    51         IMPORT_C void SetDynMenu( TAny* aPointer );
       
    52 
       
    53         /**
       
    54         * Returns the integer.
       
    55         * @return Returns the carried integer
       
    56         */
       
    57         IMPORT_C  TInt ResourceId() const;
       
    58 
       
    59         /**
       
    60         * Returns the integer.
       
    61         * @return Returns the pointer
       
    62         */
       
    63         IMPORT_C TAny* DynMenu();
       
    64 
       
    65     private:   
       
    66 
       
    67         /**
       
    68         * The integer
       
    69         */
       
    70         TInt iResourceId;
       
    71 
       
    72         TAny* iDynMenu;
       
    73     };
       
    74 
       
    75 #endif      // __TPHONECMDPARAMDYNMENU_H   
       
    76             
       
    77 // End of File