equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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 |
|
19 #ifndef COMMONACTIONS_H |
|
20 #define COMMONACTIONS_H |
|
21 |
|
22 #include <qobject.h> |
|
23 |
|
24 class EngineWrapper; |
|
25 class HbAction; |
|
26 class HbMenu; |
|
27 class HbApplication; |
|
28 |
|
29 class CommonActions : public QObject |
|
30 { |
|
31 Q_OBJECT |
|
32 public: |
|
33 |
|
34 /** |
|
35 * Constructor |
|
36 */ |
|
37 CommonActions(EngineWrapper *engine, HbApplication *application); |
|
38 |
|
39 /** |
|
40 * Destructor |
|
41 */ |
|
42 ~CommonActions(); |
|
43 |
|
44 /** |
|
45 * Adds all actions to menu that is given as parameter |
|
46 */ |
|
47 void addActionsToMenu(HbMenu *menu); |
|
48 |
|
49 public slots: |
|
50 |
|
51 /** |
|
52 * Shows about box |
|
53 */ |
|
54 void showAbout(); |
|
55 |
|
56 /** |
|
57 * Stops launching applications |
|
58 */ |
|
59 void stopLaunch(); |
|
60 |
|
61 /** |
|
62 * Sends DLL info |
|
63 */ |
|
64 void sendDllInfo(); |
|
65 |
|
66 /** |
|
67 * Compares DLL infos |
|
68 */ |
|
69 void compareDllInfo(); |
|
70 |
|
71 /** |
|
72 * Sends log |
|
73 */ |
|
74 void sendLog(); |
|
75 |
|
76 /** |
|
77 * Deletes log |
|
78 */ |
|
79 void deleteLog(); |
|
80 |
|
81 /** |
|
82 * Exits launcher |
|
83 */ |
|
84 void exit(); |
|
85 |
|
86 private: |
|
87 void connectSignalsAndSlots(); |
|
88 |
|
89 private: |
|
90 EngineWrapper *mEngine; |
|
91 |
|
92 HbApplication *mApplication; |
|
93 |
|
94 //Actions: |
|
95 |
|
96 HbAction *mActionStopLaunch; |
|
97 HbAction *mActionSendDllInfo; |
|
98 HbAction *mActionCompareDllInfo; |
|
99 HbAction *mActionSendLog; |
|
100 HbAction *mActionDeleteLog; |
|
101 HbAction *mActionAbout; |
|
102 HbAction *mActionExit; |
|
103 |
|
104 }; |
|
105 |
|
106 #endif //COMMONACTIONS_H |