|
1 /* |
|
2 * Copyright (c) 2002 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 the License "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: |
|
15 * Declaration of Scheme handler interface implementation for http:// scheme |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef HTTP_HANDLER_H |
|
22 #define HTTP_HANDLER_H |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include "BaseHandler.h" |
|
27 #include <e32base.h> |
|
28 #include <eikdoc.h> |
|
29 #include <apparc.h> |
|
30 #include <BrowserLauncher.h> |
|
31 // FORWARD DECLARATION |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * Scheme Handler IF implementation class for http scheme |
|
37 */ |
|
38 class CHttpHandler : public CBaseHandler, |
|
39 public MAknServerAppExitObserver |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Two phased constructor. Leaves on failure. |
|
45 * @param - aUrl |
|
46 * @return The created object. |
|
47 */ |
|
48 static CHttpHandler* NewL( const TDesC& aUrl ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CHttpHandler(); |
|
54 |
|
55 private: // Constructors |
|
56 |
|
57 /** |
|
58 * Constructor. |
|
59 */ |
|
60 CHttpHandler(); |
|
61 |
|
62 /** |
|
63 * Second phase constructor. Leaves on failure. |
|
64 * @param - aUrl |
|
65 */ |
|
66 void ConstructL( const TDesC& aUrl ); |
|
67 |
|
68 private: // Functions from base classes |
|
69 |
|
70 /** |
|
71 * Url Handler with embedding |
|
72 * @param - |
|
73 */ |
|
74 void HandleUrlEmbeddedL(); |
|
75 |
|
76 /** |
|
77 * Url Handler without embedding |
|
78 * @param - |
|
79 */ |
|
80 void HandleUrlStandaloneL(); |
|
81 |
|
82 /** |
|
83 * |
|
84 * Implements the required behaviour when the editing of an embedded |
|
85 * document completes. |
|
86 * |
|
87 * @param |
|
88 * Indicates the state of the document. |
|
89 */ |
|
90 void HandleServerAppExit(TInt aReason); |
|
91 |
|
92 private: // Data |
|
93 |
|
94 CEikDocument* iDoc; ///< Owned. |
|
95 CBrowserLauncher* iLauncher; ///< Owned. |
|
96 }; |
|
97 |
|
98 #endif /* def HTTP_HANDLER_H */ |