videocollection/tsrc/stubs/inc/hbmenu.h
author hgs
Mon, 20 Sep 2010 18:25:37 +0300
changeset 63 4707a0db12f6
parent 36 8aed59de29f9
permissions -rw-r--r--
201037

/*
* Copyright (c) 2008-2009 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:  HbMessageBox class declaration.
*
*/


#ifndef HBMENU_H
#define HBMENU_H

#include "hbwidget.h"
#include "hbpopup.h"

class QGraphicsItem;
class QPointF;
class HbAction;


class HbMenu: public HbWidget
{
    Q_OBJECT
    
public:
    HbMenu(QGraphicsItem *parent = 0);
    virtual ~HbMenu();
    
public:
    /** stubbed from HbMenu */
    HbAction* exec(const QPointF &pos, HbAction *action = 0);

    /** stubbed from HbMenu */
    HbAction* menuAction();

    /** stubbed from HbMenu */
    HbAction* activeAction();

    /** stubbed from HbMenu */
    void setActiveAction(HbAction *action);
    
    /** stubbed from HbMenu */
    void setEnabled(bool value);
    
    /** stubbed from HbMenu */
    HbAction* addAction(const QString &text,
        const QObject *receiver,
        const char *member);
    
    /** stubbed from HbMenu */
    QList<HbAction*> actions();
    
    /** stubbed from HbMenu */
    void setPreferredPos(const QPointF& position,
        HbPopup::Placement placement = HbPopup::TopLeftCorner);
    
    /** stubbed from HbMenu */
    void setDismissPolicy(HbPopup::DismissPolicy dismissPolicy);
    
public:
    /** dummy actions */
    QMap<QString, HbAction*> mActions;
    
    /** active action */
    HbAction* mActiveAction;
};

#endif // HBMENU_H