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