equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CNTACTIONS_H |
|
19 #define CNTACTIONS_H |
|
20 |
|
21 #include "qtpbkglobal.h" |
|
22 |
|
23 #include <QObject> |
|
24 #include <QList> |
|
25 #include <QMap> |
|
26 #include <hbdocumentloader.h> |
|
27 #include <hbaction.h> |
|
28 |
|
29 class HbToolBar; |
|
30 class HbMenu; |
|
31 |
|
32 class QTPBK_EXPORT CntActions : public QObject |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 public slots: |
|
37 signals: |
|
38 |
|
39 public: |
|
40 |
|
41 public: |
|
42 explicit CntActions(QObject *aParent); |
|
43 ~CntActions(); |
|
44 |
|
45 QList<HbAction*> &actionList(); |
|
46 void clearActionList(); |
|
47 |
|
48 HbAction *baseAction(const QString& name); |
|
49 |
|
50 void addActionsToToolBar(HbToolBar *aToolBar); |
|
51 void addActionToToolBar(HbAction *aAction, HbToolBar *aToolBar); |
|
52 |
|
53 void addActionsToMenu(HbMenu *aMenu); |
|
54 void addActionToMenu(HbAction *aAction, HbMenu *aMenu); |
|
55 |
|
56 private: |
|
57 |
|
58 QList<HbAction*> mActionList; |
|
59 QMap<QString, HbAction*> mStringActionMap; |
|
60 HbDocumentLoader mDocumentLoader; |
|
61 |
|
62 private: // views , not own |
|
63 |
|
64 }; |
|
65 |
|
66 |
|
67 #endif /* CNTACTIONS_H */ |
|