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