emailuis/uicomponents/inc/fsactionmenucontrol.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 11:45:42 +0200
changeset 3 a4d6f1ea0416
parent 0 8466d47a6819
permissions -rw-r--r--
Revision: 201001 Kit: 201004

/*
* Copyright (c) 2007 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:  A control for action menu component
 *
*/


#ifndef C_FSACTIONMENUCONTROL_H
#define C_FSACTIONMENUCONTROL_H

// <cmail> SF
#include <alf/alfcontrol.h>
// </cmail>

class CFsActionMenu;
class CAlfVisual;

/**
 * CFsActionMenuControl is a control for action menu component.
 *
 * @code
 *
 * @endcode
 *
 * @lib 
 */
class CFsActionMenuControl : public CAlfControl
    {
    
public:

    /**
     * Constructor.
     */
    CFsActionMenuControl( CFsActionMenu* aActionMenu );

    /**
     * Second-phase constructor.
     */
    void ConstructL( CAlfEnv& aEnv );

    /**
     * Destructor.
     */
    virtual ~CFsActionMenuControl();
    
public:
    
    /**
     * 
     */
    void SetRootVisual( CAlfVisual* aVisual );
    
protected:

    /**
     * From CAlfControl.
     * Notifies the owner that the layout of a visual has been recalculated.
     * Called only when the EAlfVisualFlagLayoutUpdateNotification flag has
     * been set for the visual.
     *
     * @param aVisual  Visual that has been laid out.
     */
    void VisualLayoutUpdated( CAlfVisual& aVisual );
    
protected:

    /**
     * 
     */
    CFsActionMenu* iActionMenu;
    
    /**
     * 
     */
    CAlfVisual* iVisual;
    
    };


#endif //C_FSACTIONMENUCONTROL_H