equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006 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: plugin monitor observer |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MMPXPLUGINMONITOROBSERVER_H |
|
20 #define MMPXPLUGINMONITOROBSERVER_H |
|
21 |
|
22 /** |
|
23 * Observer interface for a plugin monitor. |
|
24 * |
|
25 * @lib mpxcommon.lib |
|
26 */ |
|
27 NONSHARABLE_CLASS(MMPXPluginMonitorObserver) |
|
28 { |
|
29 public: |
|
30 |
|
31 /** |
|
32 * Callback whenever there is a change in loaded plugins. This is |
|
33 * called from CMPXPluginMonitor::RunL and should not be a long |
|
34 * running task. |
|
35 * |
|
36 * @since S60 3.2.3 |
|
37 */ |
|
38 virtual void PluginsChangedL() = 0; |
|
39 |
|
40 /** |
|
41 * Indicates that a plugin should be unloaded if it is loaded by the observer. |
|
42 * This call is made when a plugin update is detected by a plugin handler and |
|
43 * after all old plugin instances are unloaded the plugin handler can load the |
|
44 * new plugin version. All plugin handlers should maintain the reference count |
|
45 * for the plugin, as they will get a PluginsChangedL notification following one |
|
46 * or multiple HandlePluginUnload calls and they will need to know what plugins |
|
47 * were loaded before the update so they can be reloaded. |
|
48 * |
|
49 * @since S60 3.2.3 |
|
50 */ |
|
51 virtual void HandlePluginUnload(const TUid& aPluginUid) = 0; |
|
52 }; |
|
53 |
|
54 #endif // MMPXPLUGINMONITOROBSERVER_H |
|
55 |
|
56 |