|
1 /* |
|
2 * Copyright (c) 2004 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: |
|
15 * Declaration of Scheme handler interface implementation for |
|
16 * "localapp:" URI scheme |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 #ifndef LOCAL_APP_HANDLER_H |
|
23 #define LOCAL_APP_HANDLER_H |
|
24 |
|
25 // INCLUDES |
|
26 |
|
27 #include "BaseHandler.h" |
|
28 #include <e32base.h> |
|
29 #include <eikdoc.h> |
|
30 #include <apparc.h> |
|
31 |
|
32 |
|
33 // DATA TYPES |
|
34 |
|
35 // FORWARD DECLARATION |
|
36 |
|
37 // CLASS DECLARATION |
|
38 |
|
39 /** |
|
40 * Scheme Handler IF implementation class for localapp uri scheme |
|
41 * |
|
42 * @since Series60_2.6 |
|
43 */ |
|
44 class CLocalAppHandler : public CBaseHandler |
|
45 { |
|
46 |
|
47 public: // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * Two phased constructor. Leaves on failure. |
|
51 * @param - aUrl |
|
52 * @return The created object. |
|
53 */ |
|
54 static CLocalAppHandler* NewL( const TDesC& aUrl ); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 virtual ~CLocalAppHandler(); |
|
60 |
|
61 private: // Constructors |
|
62 |
|
63 /** |
|
64 * Constructor. |
|
65 */ |
|
66 CLocalAppHandler(); |
|
67 |
|
68 /** |
|
69 * Second phase constructor. Leaves on failure. |
|
70 * @param - aUrl |
|
71 */ |
|
72 void ConstructL( const TDesC& aUrl ); |
|
73 |
|
74 private: |
|
75 |
|
76 /** |
|
77 * Url Handler with embedding |
|
78 * All applications are always started standalone |
|
79 * @param - |
|
80 */ |
|
81 void HandleUrlEmbeddedL(); |
|
82 |
|
83 /** |
|
84 * Url Handler without embedding |
|
85 * @param - |
|
86 */ |
|
87 void HandleUrlStandaloneL(); |
|
88 |
|
89 /** |
|
90 * Url Handler |
|
91 * @param aLaunchEmbedded |
|
92 */ |
|
93 void HandleUrlL(); |
|
94 |
|
95 void HandleMmsL(); |
|
96 |
|
97 void HandleSmsL(); |
|
98 |
|
99 void HandleCalendarL(); |
|
100 |
|
101 void HandleContactsL(); |
|
102 |
|
103 void HandleMessagingL(); |
|
104 |
|
105 void HandleJamL(); |
|
106 |
|
107 /** |
|
108 * Starts application identified in iAppUid |
|
109 * |
|
110 */ |
|
111 void StartAppL(); |
|
112 |
|
113 private: // Data |
|
114 CActiveSchedulerWait iWait; |
|
115 TUid iAppUid; |
|
116 TBool iToday; |
|
117 TBool iEmbedded; |
|
118 |
|
119 }; |
|
120 |
|
121 #endif /* def LOCAL_APP_HANDLER_H */ |