emailuis/uicomponents/inc/fsactionmenucontrol.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007 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:  A control for action menu component
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_FSACTIONMENUCONTROL_H
       
    20 #define C_FSACTIONMENUCONTROL_H
       
    21 
       
    22 // <cmail> SF
       
    23 #include <alf/alfcontrol.h>
       
    24 // </cmail>
       
    25 
       
    26 class CFsActionMenu;
       
    27 class CAlfVisual;
       
    28 
       
    29 /**
       
    30  * CFsActionMenuControl is a control for action menu component.
       
    31  *
       
    32  * @code
       
    33  *
       
    34  * @endcode
       
    35  *
       
    36  * @lib 
       
    37  */
       
    38 class CFsActionMenuControl : public CAlfControl
       
    39     {
       
    40     
       
    41 public:
       
    42 
       
    43     /**
       
    44      * Constructor.
       
    45      */
       
    46     CFsActionMenuControl( CFsActionMenu* aActionMenu );
       
    47 
       
    48     /**
       
    49      * Second-phase constructor.
       
    50      */
       
    51     void ConstructL( CAlfEnv& aEnv );
       
    52 
       
    53     /**
       
    54      * Destructor.
       
    55      */
       
    56     virtual ~CFsActionMenuControl();
       
    57     
       
    58 public:
       
    59     
       
    60     /**
       
    61      * 
       
    62      */
       
    63     void SetRootVisual( CAlfVisual* aVisual );
       
    64     
       
    65 protected:
       
    66 
       
    67     /**
       
    68      * From CAlfControl.
       
    69      * Notifies the owner that the layout of a visual has been recalculated.
       
    70      * Called only when the EAlfVisualFlagLayoutUpdateNotification flag has
       
    71      * been set for the visual.
       
    72      *
       
    73      * @param aVisual  Visual that has been laid out.
       
    74      */
       
    75     void VisualLayoutUpdated( CAlfVisual& aVisual );
       
    76     
       
    77 protected:
       
    78 
       
    79     /**
       
    80      * 
       
    81      */
       
    82     CFsActionMenu* iActionMenu;
       
    83     
       
    84     /**
       
    85      * 
       
    86      */
       
    87     CAlfVisual* iVisual;
       
    88     
       
    89     };
       
    90 
       
    91 
       
    92 #endif //C_FSACTIONMENUCONTROL_H