|
1 /* |
|
2 * Copyright (c) 2002-2006 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: Message plain view |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CMailMessagePlainView_H |
|
21 #define CMailMessagePlainView_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "MailLog.h" |
|
25 #include <MMailMessageView.h> |
|
26 #include <CMailMessageView.h> |
|
27 #include <msvstd.h> |
|
28 |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CEikMenuPane; |
|
32 class MMailAppUiInterface; |
|
33 class CMailMessage; |
|
34 class CImHeader; |
|
35 class CLoadStateMachine; |
|
36 |
|
37 /** |
|
38 * Mail message plain view. |
|
39 * Plain text message viewer plug-in. |
|
40 * @since Series 60 3.0 |
|
41 */ |
|
42 class CMailMessagePlainView : public CMailMessageView |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 |
|
46 /** |
|
47 * NewL |
|
48 * Called from the ECOM plug-in framework. |
|
49 */ |
|
50 static CMailMessagePlainView* NewL(); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CMailMessagePlainView(); |
|
56 |
|
57 |
|
58 private: // Functions from base classes |
|
59 |
|
60 /** |
|
61 * From MMailMessageView |
|
62 */ |
|
63 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
|
64 TBool HandleCommandL(TInt aCommand); |
|
65 TKeyResponse HandleKeyEventL( |
|
66 const TKeyEvent& aKeyEvent, |
|
67 TEventCode aType); |
|
68 void MessageLoadL(TInt aState, CMailMessage& aMessage); |
|
69 void ViewMessageL( |
|
70 CMailMessage& aMessage, |
|
71 MMailAppUiInterface& aUICallBack, |
|
72 TUint& aParams); |
|
73 |
|
74 protected: // Functions from base classes |
|
75 // From MMailMessageView |
|
76 const TDesC& ResourceFile(); |
|
77 |
|
78 |
|
79 private: // Implementation |
|
80 void AddCcAndBccConstrolsL( CImHeader& aHeader ); |
|
81 void SetBodyControlTextL( CMailMessage& aMessage ); |
|
82 void SetHeaderControlTextL( |
|
83 CMailMessage& aMessage, CImHeader& aHeader ); |
|
84 |
|
85 /** |
|
86 * C++ default constructor. |
|
87 */ |
|
88 CMailMessagePlainView(); |
|
89 |
|
90 private: // Data |
|
91 /// Ref: app UI call back |
|
92 MMailAppUiInterface* iAppUI; |
|
93 /// Own: load state machine |
|
94 CLoadStateMachine* iLoadStateMachine; |
|
95 // For Unit Test |
|
96 UNIT_TEST(T_Plugin_Src) |
|
97 }; |
|
98 |
|
99 #endif // CMailMessagePlainView_H |
|
100 |
|
101 // End of File |