|
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 wtai:// scheme |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef CTI_HANDLER_H |
|
22 #define CTI_HANDLER_H |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include "BaseHandler.h" |
|
27 #include "BrowserTelService.h" |
|
28 #include <e32base.h> |
|
29 |
|
30 // FORWARD DECLARATION |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * Scheme Handler IF implementation class for wtai scheme |
|
36 */ |
|
37 class CCtiHandler : public CBaseHandler, public MBrowserTelServiceObserver |
|
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 CCtiHandler* NewL( const TDesC& aUrl ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CCtiHandler(); |
|
52 |
|
53 private: // Constructors |
|
54 |
|
55 /** |
|
56 * Constructor. |
|
57 */ |
|
58 CCtiHandler(); |
|
59 |
|
60 /** |
|
61 * Second phase constructor. Leaves on failure. |
|
62 * @param - aUrl |
|
63 */ |
|
64 void ConstructL( const TDesC& aUrl ); |
|
65 |
|
66 private: // Functions from base classes |
|
67 |
|
68 /** |
|
69 * Url Handler with embedding |
|
70 * @param - |
|
71 */ |
|
72 void HandleUrlEmbeddedL(); |
|
73 |
|
74 /** |
|
75 * Url Handler without embedding |
|
76 * @param - |
|
77 */ |
|
78 void HandleUrlStandaloneL(); |
|
79 |
|
80 /** |
|
81 * Notification of the state change. |
|
82 * @param aEvent The new state. |
|
83 */ |
|
84 void BrowserTelServiceEvent(TBrowserTelServiceState aEvent); |
|
85 |
|
86 /** |
|
87 * Notification of the error that occurred. |
|
88 * @param aError The error. |
|
89 */ |
|
90 void BrowserTelServiceError(TBrowserTelServiceError aError); |
|
91 |
|
92 void NotifyClient(); |
|
93 |
|
94 private: // Data |
|
95 |
|
96 CBrowserTelService* iTelService; ///< Owned. |
|
97 }; |
|
98 |
|
99 #endif /* def CTI_HANDLER_H */ |