|
1 /* |
|
2 * Copyright (c) 2002-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: LandmarksUi Content File - This file contains class which implements methods for |
|
15 * interfacing with launching browser |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 #ifndef CLMKGOTOURLCMD_H |
|
25 #define CLMKGOTOURLCMD_H |
|
26 |
|
27 // INCLUDES |
|
28 #include <browserlauncher.h> |
|
29 #include <downloadedcontenthandler.h> |
|
30 #include <AknServerApp.h> |
|
31 |
|
32 class MDownloadedContentHandler; |
|
33 class MAknServerAppExitObserver; |
|
34 class CAiwGenericParamList; |
|
35 class CBrowserLauncher; |
|
36 |
|
37 // CLASS DECLARATION |
|
38 /** |
|
39 * TLmkLauncherContentHandler class |
|
40 * |
|
41 */ |
|
42 class TLmkLauncherContentHandler |
|
43 : public MDownloadedContentHandler, |
|
44 public MAknServerAppExitObserver |
|
45 { |
|
46 public: |
|
47 TLmkLauncherContentHandler(); |
|
48 TBool HandleContentL( const TDesC& aFileName, |
|
49 const CAiwGenericParamList& aParamList, |
|
50 TBool& aContinue ); |
|
51 TAny* DownloadedContentHandlerReserved1( TAny* /*aAnyParam*/ ); |
|
52 void HandleServerAppExit( TInt aReason ); |
|
53 }; |
|
54 |
|
55 /** |
|
56 * CLmkGoToURLCmd class |
|
57 * This class implements the methods for interacting with Browser launcher |
|
58 * API for launching web browser |
|
59 */ |
|
60 class CLmkGoToURLCmd : public CBase |
|
61 { |
|
62 public: // Constructors and destructor |
|
63 |
|
64 /** |
|
65 * Two-phased constructor. |
|
66 * @return |
|
67 */ |
|
68 IMPORT_C static CLmkGoToURLCmd* NewL(); |
|
69 |
|
70 /** |
|
71 * Destructor. |
|
72 */ |
|
73 virtual ~CLmkGoToURLCmd(); |
|
74 |
|
75 private: // Constructors and destructor |
|
76 /** |
|
77 * Default Constructor |
|
78 */ |
|
79 CLmkGoToURLCmd(); |
|
80 |
|
81 /** |
|
82 * By default Symbian 2nd phase constructor is private. |
|
83 */ |
|
84 void ConstructL( ); |
|
85 |
|
86 public: |
|
87 /** |
|
88 * Launches Browser for the given web address |
|
89 * @param aUrl web address |
|
90 */ |
|
91 void LaunchBrowserL(const TDesC& aUrl); |
|
92 |
|
93 private: |
|
94 // Data |
|
95 TLmkLauncherContentHandler* iContentHandler; |
|
96 CBrowserLauncher* iLauncher; |
|
97 }; |
|
98 #endif |
|
99 // End of File |