|
1 /* |
|
2 * Copyright (c) 2002-2007 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: The setting item to use CAknMemorySelectionSettingPage. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_AKNMEMORYSELECTIONSETTINGITEM_H |
|
21 #define C_AKNMEMORYSELECTIONSETTINGITEM_H |
|
22 |
|
23 #include <aknsettingitemlist.h> |
|
24 #include <CAknMemorySelectionSettingPage.h> |
|
25 |
|
26 /** |
|
27 * CAknMemorySelectionSettingItem is a setting item class that |
|
28 * launches a CAknMemorySelectionSettingPage. |
|
29 * |
|
30 * @lib CommonDialogs.lib |
|
31 * @since S60 1.2 |
|
32 */ |
|
33 class CAknMemorySelectionSettingItem : public CAknSettingItem |
|
34 { |
|
35 public: |
|
36 |
|
37 // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * Constructor |
|
41 */ |
|
42 IMPORT_C CAknMemorySelectionSettingItem( |
|
43 TInt aIdentifier, |
|
44 CAknMemorySelectionSettingPage::TMemory& aSelectedMemory ); |
|
45 |
|
46 IMPORT_C virtual ~CAknMemorySelectionSettingItem(); |
|
47 IMPORT_C void CompleteConstructionL(); |
|
48 |
|
49 // Functions from base class CAknSettingItem |
|
50 |
|
51 /** |
|
52 * From CAknSettingItem |
|
53 */ |
|
54 IMPORT_C virtual void EditItemL( TBool aCalledFromMenu ); |
|
55 |
|
56 /** |
|
57 * From CAknSettingItem |
|
58 */ |
|
59 IMPORT_C virtual void LoadL(); |
|
60 |
|
61 /** |
|
62 * From CAknSettingItem |
|
63 */ |
|
64 IMPORT_C virtual void StoreL(); |
|
65 |
|
66 /** |
|
67 * From CAknSettingItem |
|
68 */ |
|
69 IMPORT_C virtual const TDesC& SettingTextL(); |
|
70 |
|
71 protected: // Data |
|
72 |
|
73 // Ref: External data |
|
74 CAknMemorySelectionSettingPage::TMemory& iExternalData; |
|
75 |
|
76 // Own: Internal data |
|
77 CAknMemorySelectionSettingPage::TMemory iInternalData; |
|
78 |
|
79 // Own: Setting page |
|
80 CAknMemorySelectionSettingPage* iSettingPage; |
|
81 |
|
82 // Own: The length is enough for memory name. |
|
83 TBuf<64> iSettingText; |
|
84 |
|
85 }; |
|
86 |
|
87 #endif // C_AKNMEMORYSELECTIONSETTINGITEM_H |