1 /* |
|
2 * Copyright (c) 2006-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: Loads BrowserLaunch dll dynamically. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_PSLNBROWSERLAUNCHLOADER |
|
20 #define C_PSLNBROWSERLAUNCHLOADER |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 |
|
25 /** |
|
26 * Interface class for browser launcher library. |
|
27 * |
|
28 * @lib PslnBrowserLaunchLoader.lib |
|
29 * @since Series 60 3.2 |
|
30 */ |
|
31 class MPslnBrowserLaunchLoader |
|
32 { |
|
33 public: |
|
34 |
|
35 /** |
|
36 * Pure virtual method for launching browser as standalone application. |
|
37 * |
|
38 */ |
|
39 virtual void LaunchBrowserStandaloneL( ) = 0; |
|
40 |
|
41 /** |
|
42 * Pure virtual method for cancelling download. |
|
43 * @since 3.2 |
|
44 */ |
|
45 virtual void CancelDownload() = 0; |
|
46 |
|
47 }; |
|
48 |
|
49 /** |
|
50 * This class is for dynamically loading browserlauncher.dll that |
|
51 * allows launching of browser as embedded application. |
|
52 * |
|
53 * @lib PslnBrowserLaunchLoader.lib |
|
54 * @since Series 60 3.2 |
|
55 */ |
|
56 class CPslnBrowserLaunchLoader : public CBase, public MPslnBrowserLaunchLoader |
|
57 { |
|
58 public: |
|
59 /** |
|
60 * Two-phased constructor. |
|
61 * @return new instance of CPslnBrowserLaunchLoader. |
|
62 */ |
|
63 static CPslnBrowserLaunchLoader* NewL(); |
|
64 |
|
65 /** |
|
66 * Destructor. |
|
67 */ |
|
68 virtual ~CPslnBrowserLaunchLoader(); |
|
69 |
|
70 /** |
|
71 * Launches browser as standalone application. |
|
72 * |
|
73 */ |
|
74 void LaunchBrowserStandaloneL( ); |
|
75 |
|
76 /** |
|
77 * Cancels download. |
|
78 * @since 3.2 |
|
79 */ |
|
80 void CancelDownload(); |
|
81 |
|
82 private: |
|
83 |
|
84 /** |
|
85 * C++ default constructor. |
|
86 */ |
|
87 CPslnBrowserLaunchLoader(); |
|
88 |
|
89 /** |
|
90 * Gets browser bookmark folder id. |
|
91 */ |
|
92 TInt GetFolderIdByContextIdL( TUint32 aContextId ); |
|
93 |
|
94 |
|
95 }; |
|
96 |
|
97 // Environment gate function |
|
98 IMPORT_C TAny* GateFunction(); |
|
99 |
|
100 #endif // C_PSLNBROWSERLAUNCHLOADER |
|
101 |
|
102 // End of File |
|