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