|
1 /* |
|
2 * Copyright (c) 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: Reply-to setting item and setting page |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _MSGMAILEDITOR_REPLYTO_SETTINGITEM_H |
|
20 #define _MSGMAILEDITOR_REPLYTO_SETTINGITEM_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <aknsettingitemlist.h> |
|
24 #include <akntextsettingpage.h> |
|
25 #include <msvstd.h> |
|
26 |
|
27 class CMsgMailEditorDocument; |
|
28 |
|
29 /** |
|
30 * Setting item Reply-to setting |
|
31 * @since 3.2 |
|
32 */ |
|
33 class CMsgMailEditorReplyToSettingItem |
|
34 : public CAknTextSettingItem |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Creates a new instance of this class. |
|
40 * @param aIdentifier setting id |
|
41 */ |
|
42 static CMsgMailEditorReplyToSettingItem* NewL( |
|
43 TInt aIdentifier, |
|
44 CMsgMailEditorDocument& aDocument ); |
|
45 |
|
46 ~CMsgMailEditorReplyToSettingItem(); |
|
47 |
|
48 public: // From CAknTextSettingItem |
|
49 |
|
50 void EditItemL( TBool aCalledFromMenu ); |
|
51 void LoadL(); |
|
52 |
|
53 private: // implementation |
|
54 void SaveSettingValueL(); |
|
55 void SetSettingValueL(); |
|
56 void SetInitialValueL(); |
|
57 |
|
58 private: // C'tor |
|
59 |
|
60 CMsgMailEditorReplyToSettingItem( |
|
61 TInt aIdentifier, |
|
62 CMsgMailEditorDocument& aDocument ); |
|
63 void ConstructL(); |
|
64 |
|
65 private: // Data |
|
66 /// Own: setting value |
|
67 RBuf iSettingValue; |
|
68 /// Ref to Mail editor document |
|
69 CMsgMailEditorDocument& iDocument; |
|
70 }; |
|
71 |
|
72 /** |
|
73 * Setting page for Reply-to setting. |
|
74 * @since 3.2 |
|
75 */ |
|
76 class CMsgMailEditorReplyToSettingPage |
|
77 : public CAknTextSettingPage |
|
78 { |
|
79 public: // Constructors and destructor |
|
80 |
|
81 /// See CAknTextSettingPage for params |
|
82 CMsgMailEditorReplyToSettingPage( |
|
83 TInt aResourceID, |
|
84 TDes& aText, |
|
85 TInt aTextSettingPageFlags = 0 ); |
|
86 |
|
87 CMsgMailEditorReplyToSettingPage( |
|
88 const TDesC* aSettingTitleText, |
|
89 TInt aSettingNumber, |
|
90 TInt aControlType, |
|
91 TInt aEditorResourceId, |
|
92 TInt aResourceID, |
|
93 TDes& aText, |
|
94 TInt aTextSettingPageFlags = 0 ); |
|
95 |
|
96 |
|
97 ~CMsgMailEditorReplyToSettingPage(); |
|
98 |
|
99 protected: // From CAknTextSettingPage |
|
100 |
|
101 TBool OkToExitL( TBool aAccept ); |
|
102 |
|
103 }; |
|
104 |
|
105 #endif // _MSGMAILEDITOR_REPLYTO_SETTINGITEM_H |
|
106 |
|
107 // End of File |