|
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: Messae send sheduling setting item and setting page |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _MSGMAILEDITOR_SHEDULING_SETTINGITEM_H |
|
20 #define _MSGMAILEDITOR_SHEDULING_SETTINGITEM_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <aknsettingitemlist.h> |
|
24 #include <aknradiobuttonsettingpage.h> |
|
25 |
|
26 class CMsgMailEditorDocument; |
|
27 |
|
28 /** |
|
29 * Setting item for send sheduling |
|
30 * @since 3.2 |
|
31 */ |
|
32 class CMsgMailEditorShedulingSettingItem |
|
33 : public CAknTextSettingItem |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * Creates a new instance of this class. |
|
39 * @param aIdentifier setting id |
|
40 */ |
|
41 static CMsgMailEditorShedulingSettingItem* NewL( |
|
42 TInt aIdentifier, |
|
43 CMsgMailEditorDocument& aDocument ); |
|
44 |
|
45 ~CMsgMailEditorShedulingSettingItem(); |
|
46 |
|
47 public: // From CAknTextSettingItem |
|
48 |
|
49 void EditItemL( TBool aCalledFromMenu ); |
|
50 |
|
51 private: // implementation |
|
52 void NameArrayL( TInt& aSelected ); |
|
53 void SaveSettingValueL( TInt aSelected ); |
|
54 void SetSettingValueL(); |
|
55 void DoChangeValueL(); |
|
56 |
|
57 private: // C'tor |
|
58 |
|
59 CMsgMailEditorShedulingSettingItem( |
|
60 TInt aIdentifier, |
|
61 CMsgMailEditorDocument& aDocument ); |
|
62 void ConstructL(); |
|
63 |
|
64 private: // Data |
|
65 /// Own: setting value |
|
66 RBuf iSettingValue; |
|
67 /// Ref to Mail editor document |
|
68 CMsgMailEditorDocument& iDocument; |
|
69 /// Own selection items |
|
70 CDesCArrayFlat* iShedulingItems; |
|
71 }; |
|
72 |
|
73 #endif // _MSGMAILEDITOR_SHEDULING_SETTINGITEM_H |
|
74 |
|
75 // End of File |