epoc32/include/mw/caknmemoryselectionsettingitem.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
     1.1 --- a/epoc32/include/mw/caknmemoryselectionsettingitem.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/mw/caknmemoryselectionsettingitem.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,87 @@
     1.4 -caknmemoryselectionsettingitem.h
     1.5 +/*
     1.6 +* Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description:  The setting item to use CAknMemorySelectionSettingPage.
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +
    1.24 +#ifndef C_AKNMEMORYSELECTIONSETTINGITEM_H
    1.25 +#define C_AKNMEMORYSELECTIONSETTINGITEM_H
    1.26 +
    1.27 +#include <AknSettingItemList.h>
    1.28 +#include <CAknMemorySelectionSettingPage.h>
    1.29 +
    1.30 +/**
    1.31 + *  CAknMemorySelectionSettingItem is a setting item class that
    1.32 + *  launches a CAknMemorySelectionSettingPage.
    1.33 + *
    1.34 + *  @lib CommonDialogs.lib
    1.35 + *  @since S60 1.2
    1.36 + */
    1.37 +class CAknMemorySelectionSettingItem : public CAknSettingItem
    1.38 +    {
    1.39 +public:
    1.40 +
    1.41 +// Constructors and destructor
    1.42 +
    1.43 +    /**
    1.44 +     * Constructor
    1.45 +     */
    1.46 +    IMPORT_C CAknMemorySelectionSettingItem(
    1.47 +        TInt aIdentifier,
    1.48 +        CAknMemorySelectionSettingPage::TMemory& aSelectedMemory );
    1.49 +
    1.50 +    IMPORT_C virtual ~CAknMemorySelectionSettingItem();
    1.51 +    IMPORT_C void CompleteConstructionL();
    1.52 +
    1.53 +// Functions from base class CAknSettingItem
    1.54 +
    1.55 +    /**
    1.56 +    * From CAknSettingItem
    1.57 +    */
    1.58 +    IMPORT_C virtual void EditItemL( TBool aCalledFromMenu );
    1.59 +
    1.60 +    /**
    1.61 +    * From CAknSettingItem
    1.62 +    */
    1.63 +    IMPORT_C virtual void LoadL();
    1.64 +
    1.65 +    /**
    1.66 +    * From CAknSettingItem
    1.67 +    */
    1.68 +    IMPORT_C virtual void StoreL();
    1.69 +
    1.70 +    /**
    1.71 +    * From CAknSettingItem
    1.72 +    */
    1.73 +    IMPORT_C virtual const TDesC& SettingTextL();
    1.74 +
    1.75 +protected: // Data
    1.76 +
    1.77 +    // Ref: External data
    1.78 +    CAknMemorySelectionSettingPage::TMemory& iExternalData;
    1.79 +
    1.80 +    // Own: Internal data
    1.81 +    CAknMemorySelectionSettingPage::TMemory iInternalData;
    1.82 +
    1.83 +    // Own: Setting page
    1.84 +    CAknMemorySelectionSettingPage* iSettingPage;
    1.85 +
    1.86 +    // Own: The length is enough for memory name.
    1.87 +    TBuf<64> iSettingText;
    1.88 +
    1.89 +    };
    1.90 +
    1.91 +#endif      // C_AKNMEMORYSELECTIONSETTINGITEM_H