34
|
1 |
/*
|
|
2 |
* Copyright (c) 2008-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: HbMessageBox class declaration.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef HBMENU_H
|
|
20 |
#define HBMENU_H
|
|
21 |
|
|
22 |
#include <hbwidget.h>
|
|
23 |
|
|
24 |
class QGraphicsItem;
|
|
25 |
class QPointF;
|
|
26 |
class HbAction;
|
|
27 |
|
|
28 |
class HbMenu: public HbWidget
|
|
29 |
{
|
|
30 |
Q_OBJECT
|
|
31 |
|
|
32 |
public:
|
|
33 |
HbMenu(QGraphicsItem *parent = 0);
|
|
34 |
virtual ~HbMenu();
|
|
35 |
|
|
36 |
public:
|
|
37 |
/** stubbed from HbMenu */
|
|
38 |
HbAction* exec(const QPointF &pos, HbAction *action = 0);
|
|
39 |
|
|
40 |
/** stubbed from HbMenu */
|
|
41 |
HbAction* menuAction();
|
|
42 |
|
|
43 |
/** stubbed from HbMenu */
|
|
44 |
HbAction* activeAction();
|
|
45 |
|
|
46 |
/** stubbed from HbMenu */
|
|
47 |
void setActiveAction(HbAction *action);
|
|
48 |
|
|
49 |
/** stubbed from HbMenu */
|
|
50 |
void setEnabled(bool value);
|
|
51 |
|
|
52 |
/** stubbed from HbMenu */
|
|
53 |
HbAction* addAction(const QString &text,
|
|
54 |
const QObject *receiver,
|
|
55 |
const char *member);
|
|
56 |
|
|
57 |
/** stubbed from HbMenu */
|
|
58 |
QList<HbAction*> actions();
|
|
59 |
|
|
60 |
public:
|
|
61 |
/** dummy actions */
|
|
62 |
QMap<QString, HbAction*> mActions;
|
|
63 |
};
|
|
64 |
|
|
65 |
#endif // HBMENU_H
|