|
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: This class provides container for message. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef PLATFORMREQUESTHANDLER_H |
|
20 #define PLATFORMREQUESTHANDLER_H |
|
21 |
|
22 #include "platformrequestinterface.h" |
|
23 |
|
24 namespace java // codescanner::namespace |
|
25 { |
|
26 namespace runtime // codescanner::namespace |
|
27 { |
|
28 |
|
29 OS_NONSHARABLE_CLASS(PlatformRequestHandler) : public PlatformRequestInterface |
|
30 { |
|
31 public: |
|
32 |
|
33 PlatformRequestHandler(); |
|
34 virtual ~PlatformRequestHandler(); |
|
35 |
|
36 // Methods of PlatformRequestInterface. |
|
37 virtual void handleUri(const std::wstring& aUri); |
|
38 |
|
39 private: |
|
40 |
|
41 // Internal operations. |
|
42 void launchAppL(const std::wstring& aUri); |
|
43 |
|
44 bool startsArbitraryNativeApp(const std::wstring& aUri); |
|
45 void launchNativeAppL(const std::wstring& aUri); |
|
46 |
|
47 // Not implemented. |
|
48 PlatformRequestHandler(const PlatformRequestHandler &x); |
|
49 PlatformRequestHandler &operator=(const PlatformRequestHandler &x); |
|
50 }; |
|
51 |
|
52 } // end namespace runtime |
|
53 } // end namespace java |
|
54 |
|
55 #endif // PLATFORMREQUESTHANDLER_H |