meetingrequest/mrguicommon/inc/cmrbutton.h
branchRCL_3
changeset 33 da5135c61bad
child 24 b5fbb9b25d57
equal deleted inserted replaced
32:a3a1ae9acec6 33:da5135c61bad
       
     1 /*
       
     2 * Copyright (c) 2002-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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CMRButton_H
       
    19 #define CMRButton_H
       
    20 
       
    21 #include <akniconutils.h>
       
    22 #include <aknbutton.h>
       
    23 
       
    24 #include "esmrfieldbuilderdef.h"
       
    25 #include "nmrbitmapmanager.h"
       
    26 
       
    27 /**
       
    28  *  CMRButton is graphical button component for fields 
       
    29  */
       
    30 NONSHARABLE_CLASS( CMRButton ) : public CAknButton
       
    31     {
       
    32 public:
       
    33     /**
       
    34      * Two-phased constructor.
       
    35      *
       
    36      * @param aBitmapId
       
    37      * @param aScaleMode 
       
    38      * @return Pointer to created and initialized mr image object.
       
    39      */
       
    40      IMPORT_C static CMRButton* NewL(
       
    41              NMRBitmapManager::TMRBitmapId aBitmapId, 
       
    42              TScaleMode aScaleMode = EAspectRatioPreserved );
       
    43 
       
    44     /**
       
    45      * C++ Destructor
       
    46      */
       
    47     IMPORT_C virtual ~CMRButton();
       
    48     
       
    49     void SizeChanged();
       
    50 
       
    51 private:
       
    52     /**
       
    53      * C++ default constructor
       
    54      */
       
    55     CMRButton( TScaleMode aScaleMode );
       
    56     void ConstructL( NMRBitmapManager::TMRBitmapId aBitmapId );
       
    57     
       
    58 private:
       
    59     TScaleMode iScaleMode;
       
    60     };
       
    61 
       
    62 #endif //CMRButton_H
       
    63 
       
    64 // EOF