|
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: AppMngr2 Runtime plugin observer interface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_APPMNGR2RUNTIMEOBSERVER_H |
|
20 #define C_APPMNGR2RUNTIMEOBSERVER_H |
|
21 |
|
22 /** |
|
23 * Application Manager's change notification interface. |
|
24 * |
|
25 * Application Manager monitors changes in application list and scanned |
|
26 * directories. There may be some plug-in specific changes that are not |
|
27 * visible in monitored interfaces, and that require refreshing displayed |
|
28 * installed application (or installation packages) list. Runtime plug-in |
|
29 * can notify the Application Manager via this interface when needed. |
|
30 * |
|
31 * @lib appmngr2pluginapi.lib |
|
32 * @since S60 v5.1 |
|
33 */ |
|
34 class MAppMngr2RuntimeObserver |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * Runtime plugin can use RefreshInstalledApps() function to |
|
39 * refresh the installed applications list. Refreshing the list |
|
40 * makes AppMngr2 to refetch all installed application data. |
|
41 * Note that AppMngr2 listens EAppListChanged events via |
|
42 * MApaAppListServObserver, so plugins should use this |
|
43 * function only if AppMngr2 is not notified otherwise. |
|
44 */ |
|
45 virtual void RefreshInstalledApps() = 0; |
|
46 |
|
47 /** |
|
48 * Runtime plugin can use RefreshInstallationFiles() function |
|
49 * to refresh the installation files list. Refreshing the list |
|
50 * makes AppMngr2 to rescan install directories and refetch |
|
51 * all installation package data. Note that AppMngr2 listens |
|
52 * RFs::NotifyChange() events to handle file additions and |
|
53 * deletions in defined install directories. Hence, plugins |
|
54 * should use this function only if AppMngr2 is not notified |
|
55 * otherwise. |
|
56 */ |
|
57 virtual void RefreshInstallationFiles() = 0; |
|
58 }; |
|
59 |
|
60 #endif // C_APPMNGR2RUNTIMEOBSERVER_H |
|
61 |