|
1 /* |
|
2 * Copyright (c) 2008 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CAAPPHANDLER_H |
|
19 #define CAAPPHANDLER_H |
|
20 |
|
21 #include <QObject> |
|
22 |
|
23 #include "cahandler.h" |
|
24 |
|
25 class CEikonEnv; |
|
26 class CCaUsifUninstallOperation; |
|
27 class CaEntry; |
|
28 |
|
29 class CaAppHandler: public QObject, public CaHandler |
|
30 { |
|
31 Q_OBJECT |
|
32 Q_INTERFACES(CaHandler) |
|
33 |
|
34 public: |
|
35 |
|
36 explicit CaAppHandler(QObject *parent = 0); |
|
37 |
|
38 virtual ~CaAppHandler(); |
|
39 |
|
40 public: |
|
41 |
|
42 int execute(const CaEntry &entry, const QString &command); |
|
43 |
|
44 private: |
|
45 |
|
46 void launchApplicationL(const TUid uid, TInt viewId); |
|
47 |
|
48 int closeApplication(const EntryFlags &flags, TInt windowGroupId); |
|
49 |
|
50 int handleRemove(const EntryFlags &flags, |
|
51 const QString &typeName, |
|
52 const QString &componentId); |
|
53 |
|
54 void startUsifUninstallL(TInt componentId); |
|
55 |
|
56 private: |
|
57 CEikonEnv *iEikEnv; |
|
58 CCaUsifUninstallOperation *iUsifUninstallOperation; |
|
59 }; |
|
60 |
|
61 #endif // CAAPPHANDLER_H |