phonebookui/Phonebook2/UIExtensionManager/inc/CPbk2SettingsControlExtension.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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:  Phonebook 2 settings control composite UI extension.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPBK2SETTINGSCONTROLEXTENSION_H
       
    20 #define CPBK2SETTINGSCONTROLEXTENSION_H
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include <e32base.h>
       
    24 #include <MPbk2SettingsControlExtension.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MPbk2SettingsViewExtension;
       
    28 
       
    29 /**
       
    30  * Phonebook 2 settings control composite UI extension.
       
    31  */
       
    32 NONSHARABLE_CLASS(CPbk2SettingsControlExtension) : 
       
    33         public CBase,
       
    34 		public MPbk2SettingsControlExtension
       
    35     {
       
    36     public: // Construction and destruction
       
    37 
       
    38         /** 
       
    39          * Returns a new instance of this class.
       
    40          * 
       
    41          * @param aSettingsViewExtensions    Array of settings view extensions.
       
    42          * @return  A new instance of this class.
       
    43          */
       
    44         static CPbk2SettingsControlExtension* NewL(
       
    45                 TArray<MPbk2SettingsViewExtension*> aSettingsViewExtensions );
       
    46 
       
    47         /**
       
    48          * Destructor.
       
    49          */
       
    50         ~CPbk2SettingsControlExtension();
       
    51 
       
    52     public: // From MPbk2SettingsControlExtension
       
    53         void DoRelease();
       
    54         void ModifySettingItemListL(
       
    55                 CAknSettingItemList& aSettingItemList);
       
    56         CAknSettingItem* CreateSettingItemL(
       
    57                 TInt aSettingId );
       
    58         
       
    59     private: // Construction
       
    60         CPbk2SettingsControlExtension();
       
    61         void ConstructL(
       
    62                 TArray<MPbk2SettingsViewExtension*> aSettingViewExtensions );
       
    63 
       
    64     private: // Data
       
    65         /// Own: An array for setting extensions
       
    66         RPointerArray<MPbk2SettingsControlExtension> iSettingExtensions;
       
    67 	};
       
    68 
       
    69 #endif // CPBK2SETTINGSCONTROLEXTENSION_H
       
    70 
       
    71 // End of File