|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Loads the browser plugin via ECOM. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef XNNPPLUGINHANDLER_H |
|
21 #define XNNPPLUGINHANDLER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <npupp.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CEcomBrowserPluginInterface; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * @ingroup group_xnnppluginfactory |
|
34 * |
|
35 * Loads the browser plugin via ECOM. |
|
36 * |
|
37 * @lib xn3nppluginfactory.lib |
|
38 * @since Series 60 3.1 |
|
39 */ |
|
40 class CXnNPPluginHandler : public CBase |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 */ |
|
47 static CXnNPPluginHandler* NewL(); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 virtual ~CXnNPPluginHandler(); |
|
53 |
|
54 |
|
55 public: // New functions |
|
56 /** |
|
57 * Loads the plugin using ECOM interface. The mime type of the |
|
58 * plugin is passed to the function. |
|
59 * @since Series 60 3.1 |
|
60 * @param aResolveparam The mime type of the plugin to be loaded. |
|
61 * @param aPluginFuncs Netscape plugin functions |
|
62 * @return KErrNotFound if the mime type is not found. |
|
63 */ |
|
64 TInt LoadSpecificPluginL( const TDesC8& aResolveparam, NPPluginFuncs** aPluginFuncs ); |
|
65 |
|
66 private: |
|
67 |
|
68 /** |
|
69 * C++ default constructor. |
|
70 */ |
|
71 CXnNPPluginHandler(); |
|
72 |
|
73 /** |
|
74 * By default Symbian 2nd phase constructor is private. |
|
75 */ |
|
76 void ConstructL(); |
|
77 |
|
78 private: // Data |
|
79 //Plugin interface, owned |
|
80 CEcomBrowserPluginInterface* iPluginInterface; |
|
81 }; |
|
82 |
|
83 #endif // XNNPPLUGINHANDLER_H |
|
84 |
|
85 // End of File |