|
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 rtsp:// scheme |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef RTSP_HANDLER_H |
|
22 #define RTSP_HANDLER_H |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include "BaseHandler.h" |
|
27 #include <e32base.h> |
|
28 #include <eikdoc.h> |
|
29 #include <apparc.h> |
|
30 |
|
31 // FORWARD DECLARATION |
|
32 class CAknLaunchAppService; |
|
33 class CDocumentHandler; |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * Scheme Handler IF implementation class for rtsp scheme |
|
39 */ |
|
40 class CRtspHandler : public CBaseHandler, |
|
41 public MAknServerAppExitObserver |
|
42 { |
|
43 |
|
44 public: // Constructors and destructor |
|
45 |
|
46 /** |
|
47 * Two phased constructor. Leaves on failure. |
|
48 * @param - aUrl |
|
49 * @return The created object. |
|
50 */ |
|
51 static CRtspHandler* NewL( const TDesC& aUrl ); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~CRtspHandler(); |
|
57 |
|
58 private: // Constructors |
|
59 |
|
60 /** |
|
61 * Constructor. |
|
62 */ |
|
63 CRtspHandler(); |
|
64 |
|
65 /** |
|
66 * Second phase constructor. Leaves on failure. |
|
67 * @param - aUrl |
|
68 */ |
|
69 void ConstructL( const TDesC& aUrl ); |
|
70 |
|
71 private: // Functions from base classes |
|
72 |
|
73 /** |
|
74 * Url Handler with embedding |
|
75 * @param - |
|
76 */ |
|
77 void HandleUrlEmbeddedL(); |
|
78 |
|
79 /** |
|
80 * Url Handler without embedding |
|
81 * @param - |
|
82 */ |
|
83 void HandleUrlStandaloneL(); |
|
84 |
|
85 /** |
|
86 * |
|
87 * Implements the required behaviour when the editing of an embedded |
|
88 * document completes. |
|
89 * |
|
90 * @param |
|
91 * Indicates the state of the document. |
|
92 */ |
|
93 void HandleServerAppExit(TInt aReason); |
|
94 |
|
95 private: // Data |
|
96 |
|
97 CEikDocument* iDoc; ///< Owned. |
|
98 CAknLaunchAppService* iLaunchAppService; ///<Owned |
|
99 TBool iSync; |
|
100 CActiveSchedulerWait iWait; |
|
101 |
|
102 CDocumentHandler* iDocHandler; ///< Owned. |
|
103 }; |
|
104 |
|
105 #endif /* def RTSP_HANDLER_H */ |