2 * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: The setting item to use CAknMemorySelectionSettingPage.
20 #ifndef C_AKNMEMORYSELECTIONSETTINGITEM_H
21 #define C_AKNMEMORYSELECTIONSETTINGITEM_H
23 #include <aknsettingitemlist.h>
24 #include <CAknMemorySelectionSettingPage.h>
27 * CAknMemorySelectionSettingItem is a setting item class that
28 * launches a CAknMemorySelectionSettingPage.
30 * @lib CommonDialogs.lib
33 class CAknMemorySelectionSettingItem : public CAknSettingItem
37 // Constructors and destructor
42 IMPORT_C CAknMemorySelectionSettingItem(
44 CAknMemorySelectionSettingPage::TMemory& aSelectedMemory );
46 IMPORT_C virtual ~CAknMemorySelectionSettingItem();
47 IMPORT_C void CompleteConstructionL();
49 // Functions from base class CAknSettingItem
52 * From CAknSettingItem
54 IMPORT_C virtual void EditItemL( TBool aCalledFromMenu );
57 * From CAknSettingItem
59 IMPORT_C virtual void LoadL();
62 * From CAknSettingItem
64 IMPORT_C virtual void StoreL();
67 * From CAknSettingItem
69 IMPORT_C virtual const TDesC& SettingTextL();
74 CAknMemorySelectionSettingPage::TMemory& iExternalData;
77 CAknMemorySelectionSettingPage::TMemory iInternalData;
80 CAknMemorySelectionSettingPage* iSettingPage;
82 // Own: The length is enough for memory name.
83 TBuf<64> iSettingText;
87 #endif // C_AKNMEMORYSELECTIONSETTINGITEM_H