emailcontacts/remotecontactlookup/settingplugin/inc/cfscrclsettingcontrol.h
branchRCL_3
changeset 12 4ce476e64c59
parent 11 0396474f30f5
child 13 8592a65ad3fb
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     1 /*
       
     2 * Copyright (c) 2008 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:  RemoteContactLookup Setting Extension view control
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CFSCRCLSETTINGCONTROL_H
       
    19 #define CFSCRCLSETTINGCONTROL_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 #include <aknsettingitemlist.h>
       
    25 #include <MPbk2SettingsControlExtension.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CAknSettingItem;
       
    29 class CPbkxRemoteContactLookupEnv;
       
    30 
       
    31 /**
       
    32 *  CFscRclSettingControl -  Remote Contact Lookup setting control for Phonebook 2.
       
    33 *  
       
    34 */
       
    35 class CFscRclSettingControl : public CAknSettingItemList, 
       
    36                               public MPbk2SettingsControlExtension
       
    37     {
       
    38     public:     // CFscRclSettingControl public constructors and destructor
       
    39 
       
    40         /**
       
    41          * Two-phased constructor.
       
    42          */
       
    43         static CFscRclSettingControl* NewL();
       
    44 
       
    45         static CFscRclSettingControl* NewLC();
       
    46         
       
    47         /**
       
    48         * Destructor.
       
    49         */       
       
    50         ~CFscRclSettingControl();
       
    51         
       
    52         // Methods from MPbk2SettingsControlExtension
       
    53         
       
    54         /**
       
    55          * Modifies the setting item list to contain settings
       
    56          * from extensions.
       
    57          *
       
    58          * @param aSettingItemList  The setting item list to modify.
       
    59          */
       
    60         void ModifySettingItemListL(CAknSettingItemList& aSettingItemList);
       
    61         
       
    62         /**
       
    63          * Creates a setting item from extension.
       
    64          *
       
    65          * @param aSettingId    Id of the setting item.
       
    66          * @return  Created setting item.
       
    67          */
       
    68         CAknSettingItem* CreateSettingItemL(TInt aSettingId);     
       
    69         
       
    70         // Methods from MPbk2UiReleasable
       
    71 
       
    72         /**
       
    73          * Implement to release this object and any resources it owns.
       
    74          */
       
    75         void DoRelease();     
       
    76 
       
    77     private:    // CFscRclSettingControl private constructors
       
    78 
       
    79         /**
       
    80          * Default constructor 
       
    81          */
       
    82         CFscRclSettingControl();
       
    83 
       
    84         /**
       
    85          * ConstructL
       
    86          */
       
    87         void ConstructL();
       
    88         
       
    89     private: // data
       
    90         CAknSettingItem* iRclSettingItem; 
       
    91         // Own: freestyle remote contact lookup for its setting item
       
    92         CPbkxRemoteContactLookupEnv* iRclEnv;
       
    93     };
       
    94 
       
    95 #endif // CFSCRCLSETTINGCONTROL_H