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 |
|
|
29 |
/**
|
|
30 |
* Command handler for application entries.
|
|
31 |
*
|
|
32 |
* @lib caclient.lib
|
|
33 |
*/
|
96
|
34 |
class CaAppHandler: public QObject, public CaHandler
|
|
35 |
{
|
|
36 |
Q_OBJECT
|
|
37 |
Q_INTERFACES(CaHandler)
|
88
|
38 |
|
|
39 |
public:
|
96
|
40 |
|
|
41 |
explicit CaAppHandler(QObject *parent = 0);
|
88
|
42 |
|
|
43 |
/**
|
|
44 |
* Destructor.
|
|
45 |
*/
|
96
|
46 |
virtual ~CaAppHandler();
|
88
|
47 |
|
|
48 |
public:
|
|
49 |
|
96
|
50 |
int execute(const CaEntry &entry, const QString &command);
|
88
|
51 |
|
|
52 |
private:
|
96
|
53 |
|
88
|
54 |
/**
|
|
55 |
* Launches application
|
|
56 |
* @param aUid UID of the application to launch
|
|
57 |
* @param aParam command parameters
|
|
58 |
* @param aViewId id of the view the application is to start in
|
|
59 |
*/
|
96
|
60 |
void launchApplicationL(const TUid aUid, TInt aViewId);
|
92
|
61 |
|
88
|
62 |
/**
|
|
63 |
* Closes application
|
|
64 |
* @param aEntry the entry represeting application to close
|
|
65 |
*/
|
96
|
66 |
int closeApplication(const EntryFlags &flags, TInt windowGroupId);
|
88
|
67 |
|
92
|
68 |
/**
|
|
69 |
* Uninstall application
|
|
70 |
* @param aEntry the entry represeting application to uninstall
|
|
71 |
*/
|
96
|
72 |
int handleRemove(const EntryFlags &flags,
|
|
73 |
const QString &typeName,
|
|
74 |
const QString &componentId);
|
92
|
75 |
|
|
76 |
/**
|
|
77 |
* Start uninstall operation via usif
|
|
78 |
* @param aComponentId component id
|
|
79 |
*/
|
96
|
80 |
void startUsifUninstallL(TInt aComponentId);
|
92
|
81 |
|
88
|
82 |
private:
|
96
|
83 |
CEikonEnv *iEikEnv;
|
|
84 |
CCaUsifUninstallOperation *iUsifUninstallOperation;
|
|
85 |
};
|
88
|
86 |
|
96
|
87 |
#endif // CAAPPHANDLER_H
|