/*
* 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>
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();
public:
/** dummy actions */
QMap<QString, HbAction*> mActions;
};
#endif // HBMENU_H