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: Menu Event. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef HSMENUEVENT_H |
|
19 #define HSMENUEVENT_H |
|
20 |
|
21 #include <QEvent> |
|
22 #include <QObject> |
|
23 #include <qeventtransition.h> |
|
24 #include <QVariant> |
|
25 |
|
26 #include "hstest_global.h" |
|
27 #include "hsutils_global.h" |
|
28 HOMESCREEN_TEST_CLASS(t_hsUtils) |
|
29 |
|
30 |
|
31 |
|
32 class HSUTILS_EXPORT HsMenuEvent : public QEvent |
|
33 { |
|
34 public: |
|
35 enum OperationType { |
|
36 AddToHomeScreen, |
|
37 OpenCollection, |
|
38 OpenCollectionFromAppLibrary, |
|
39 RenameCollection, |
|
40 DeleteCollection, |
|
41 CollectionDeleted, |
|
42 AddAppsToCollection, |
|
43 RemoveAppFromCollection, |
|
44 UninstallApplication, |
|
45 OpenApplicationLibrary, |
|
46 OpenInstalledView, |
|
47 OpenHomeScreen, |
|
48 ArrangeCollection, |
|
49 ArrangeAllCollections, |
|
50 CreateCollection, |
|
51 PreviewHSWidget, |
|
52 ShowAppSettings, |
|
53 ShowAppDetails, |
|
54 ShowInstallationLog, |
|
55 Unknown |
|
56 }; |
|
57 |
|
58 static QEvent::Type eventType(); |
|
59 |
|
60 HsMenuEvent(OperationType aOperation, const QVariantMap &aData = QVariantMap()); |
|
61 |
|
62 OperationType operation() const; |
|
63 |
|
64 QVariantMap data() const; |
|
65 |
|
66 private: |
|
67 |
|
68 OperationType mOperation; |
|
69 |
|
70 QVariantMap mData; |
|
71 }; |
|
72 |
|
73 |
|
74 #endif //HSMENUEVENT_H |