|
1 /* |
|
2 * Copyright (c) 2009 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: Declaration of Scheme handler interface implementation for |
|
15 * "javaapp:" URI scheme |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef JAVAAPPHANDLER_H |
|
20 #define JAVAAPPHANDLER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <schemehandler.h> |
|
24 #include <e32base.h> |
|
25 |
|
26 namespace java |
|
27 { |
|
28 |
|
29 namespace javaapphandler |
|
30 { |
|
31 |
|
32 /** |
|
33 * Scheme Handler IF implementation class for javaapp: uri scheme |
|
34 * |
|
35 */ |
|
36 NONSHARABLE_CLASS(CJavaAppHandler) : public CSchemeHandler |
|
37 { |
|
38 |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two phased constructor. Leaves on failure. |
|
43 * @param - aUrl |
|
44 * @return The created object. |
|
45 */ |
|
46 static CJavaAppHandler* NewL(const TDesC& aUrl); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CJavaAppHandler(); |
|
52 |
|
53 private: // Constructors |
|
54 |
|
55 /** |
|
56 * Constructor. |
|
57 */ |
|
58 CJavaAppHandler(); |
|
59 |
|
60 /** |
|
61 * Second phase constructor. Leaves on failure. |
|
62 * @param - aUrl |
|
63 */ |
|
64 void ConstructL(const TDesC& aUrl); |
|
65 |
|
66 public: |
|
67 |
|
68 /** |
|
69 * Url Handler with embedding. |
|
70 * All applications are always started standalone. |
|
71 * @param - |
|
72 */ |
|
73 void HandleUrlEmbeddedL(); |
|
74 |
|
75 /** |
|
76 * Url Handler without embedding |
|
77 * @param - |
|
78 */ |
|
79 void HandleUrlStandaloneL(); |
|
80 |
|
81 /** |
|
82 * Observer is not supported. Does nothing. |
|
83 * @param - aSchemeDoc |
|
84 */ |
|
85 void Observer(MAknServerAppExitObserver* aSchemeDoc); |
|
86 |
|
87 protected: // Data |
|
88 |
|
89 // Results of parsing |
|
90 HBufC* mParsedUrl; ///< Owned. |
|
91 }; |
|
92 |
|
93 } // javaapphandler |
|
94 |
|
95 } // java |
|
96 |
|
97 #endif // JAVAAPPHANDLER_H |