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