1 /* |
|
2 * Copyright (c) 2007 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: Observer interface to use with CDiagPluginPool |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef DIAGPLUGINPOOLOBSERVER_H |
|
20 #define DIAGPLUGINPOOLOBSERVER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32cmn.h> // TUid |
|
24 #include <e32def.h> // TInt |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class MDiagPlugin; |
|
28 |
|
29 /** |
|
30 * Diagnostics Framework Plugin Pool Observer |
|
31 * |
|
32 * This interface is called by CDiagPluginPool to notify the plug-in |
|
33 * loading progress. This is used only for LoadAsyncL() scenario. |
|
34 * |
|
35 * @since S60 v5.0 |
|
36 */ |
|
37 class MDiagPluginPoolObserver |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Notify client of plug-in loading progress. |
|
43 * |
|
44 * @param aCurrPlugin Current plugin index in loading process. |
|
45 * Use it to display loading progress. |
|
46 * @param aPluginCount Totals number of plug-ins |
|
47 * @param aLoadedPluginUid Uid of the plug-in just loaded. |
|
48 */ |
|
49 virtual void LoadProgressL( TUint aCurrentPlugin, |
|
50 TUint aPluginCount, |
|
51 const TUid& aLoadedPluginUid ) = 0; |
|
52 |
|
53 |
|
54 /** |
|
55 * Notify client of plug-in loading completion |
|
56 * |
|
57 * @param aError KErrNone - Success |
|
58 * KErrCorrupt - One ore more plugin could not |
|
59 * be loaded. |
|
60 * KErrNoMemory - Not enough memory. |
|
61 */ |
|
62 virtual void LoadCompletedL( TInt aError ) = 0; |
|
63 }; |
|
64 |
|
65 |
|
66 #endif // DIAGPLUGINPOOLOBSERVER_H |
|
67 |
|
68 // End of File |
|
69 |
|