|
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: Remote mailbox setting item and setting page |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _MSGMAILEDITORREMOTEMAILBOXSETTINGITEM_H |
|
20 #define _MSGMAILEDITORREMOTEMAILBOXSETTINGITEM_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <aknsettingitemlist.h> |
|
24 #include <aknradiobuttonsettingpage.h> |
|
25 #include <msvstd.h> |
|
26 #include <ImumInternalApi.h> |
|
27 |
|
28 class CMsgMailEditorDocument; |
|
29 |
|
30 /** |
|
31 * Setting item for remote mail box in use |
|
32 * @since 3.2 |
|
33 */ |
|
34 class CMsgMailEditorRemoteMailboxSettingItem |
|
35 : public CAknTextSettingItem |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * Creates a new instance of this class. |
|
41 * @param aIdentifier setting id |
|
42 */ |
|
43 static CMsgMailEditorRemoteMailboxSettingItem* NewL( |
|
44 TInt aIdentifier, |
|
45 CMsgMailEditorDocument& aDocument ); |
|
46 |
|
47 ~CMsgMailEditorRemoteMailboxSettingItem(); |
|
48 |
|
49 public: // From CAknTextSettingItem |
|
50 void EditItemL( TBool aCalledFromMenu ); |
|
51 |
|
52 private: // implementation |
|
53 void NameArrayL( TInt& aSelected ); |
|
54 void SaveSettingValueL( TInt aSelected ); |
|
55 void SetSettingValueL(); |
|
56 void UpdateReplyToL(TInt aSelected ); |
|
57 |
|
58 private: // C'tor |
|
59 |
|
60 CMsgMailEditorRemoteMailboxSettingItem( |
|
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 CDesCArray* iMailBoxIdArray; |
|
71 CMsvEntrySelection* iServiceArray; |
|
72 }; |
|
73 |
|
74 #endif // _MSGMAILEDITORREMOTEMAILBOXSETTINGITEM_H |
|
75 |
|
76 // End of File |