XDMSettingsUI/inc/XDMPluginSettinglist.h
branchRCL_3
changeset 35 fbd2e7cec7ef
equal deleted inserted replaced
34:2669f8761a99 35:fbd2e7cec7ef
       
     1 /*
       
     2 * Copyright (c) 2005-2010 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:    XDM GS plugin, Setting List class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CXDMPLUGINSETTINGLIST_H
       
    22 #define CXDMPLUGINSETTINGLIST_H
       
    23 
       
    24 // INCLUDE FILES
       
    25 #include <coecntrl.h>
       
    26 #include <aknsettingitemlist.h>
       
    27 #include <agentdialog.h>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CSettingsData;
       
    31 
       
    32 /**
       
    33 *  CXDMPluginSettinglist derived from CAknSettingItemList
       
    34 */
       
    35 class CXDMPluginSettinglist : public CAknSettingItemList
       
    36     {
       
    37     
       
    38     public:
       
    39         
       
    40         /**
       
    41         * Symbian OS two-phased constructor
       
    42         * @param reference to CSettingsData from which data to be displayed
       
    43         */
       
    44         static CXDMPluginSettinglist* NewL(CSettingsData &aData);
       
    45         
       
    46         /**
       
    47         * Symbian OS two-phased constructor, leave pointer to stack
       
    48         * @param reference to CSettingsData from which data to be displayed
       
    49         */
       
    50         static CXDMPluginSettinglist* NewLC(CSettingsData &aData);
       
    51 
       
    52         /**
       
    53         * Destructor.
       
    54         */
       
    55         virtual ~CXDMPluginSettinglist();
       
    56 
       
    57         /**
       
    58         * Inherited from base classes. See CCoeControl
       
    59         */
       
    60         void SizeChanged();
       
    61       
       
    62         /**
       
    63         * Edit the indexed item. This probably came as a result of UI command
       
    64         * @param aIndex index to the item
       
    65         * aCalledFromMenu ETrue of this call resulted from UI command
       
    66         */
       
    67         void EditItemL (TInt aIndex, TBool aCalledFromMenu);
       
    68       
       
    69         /**
       
    70         * Actual editing of item done here, from whereever the call is made from
       
    71         */
       
    72         void EditCurrentItemL();
       
    73       
       
    74         /**
       
    75         * Gets the Access point name
       
    76         * @param aAP Access point number as integer
       
    77         * aAccessPoint reference to TDes, doesnt change if AP not found
       
    78         * otherwise access point name returns here
       
    79         */
       
    80         void GetAccessPointNameL(TInt32 aAP, TDes& aAccessPoint);
       
    81         
       
    82         /**
       
    83         * For checking if access point is in use
       
    84         * @param aAP Access point number as integer
       
    85         * return ETrue if access point is in use
       
    86         */
       
    87         TBool IsAccessPointInUseL(TInt32 aAP);
       
    88       
       
    89         /**
       
    90         * Sets the focus to the first item of the settings list
       
    91         */
       
    92         void ResetItemIndex();
       
    93 
       
    94     private:
       
    95         
       
    96         /**
       
    97         * C++ constructor
       
    98         * @param reference to CSettingsData
       
    99         */
       
   100         CXDMPluginSettinglist(CSettingsData &aData);
       
   101 
       
   102         /**
       
   103         * See CAknSettingItemList
       
   104         */
       
   105         CAknSettingItem* CreateSettingItemL (TInt aSettingId);
       
   106       
       
   107         /**
       
   108         * Edit the AccessPoint, We edit the access point differently than other
       
   109         * settings. We bypass the list's text editor and open the S60 standard
       
   110         * access point editor 
       
   111         */
       
   112         void EditAccessPointL();
       
   113       
       
   114         /**
       
   115         * Saves the changed settings to the list's data
       
   116         * @param aIndex index of the setting to be saved
       
   117         */
       
   118         void SaveSettingL(TInt aIndex);
       
   119       
       
   120         /**
       
   121         * Sets the title pane text with given discriptor
       
   122         * @param aTitleText text to be shown on title pane
       
   123         */
       
   124         void SetTitlePaneTextL( const TDesC& aTitleText ) const;
       
   125 
       
   126     private:
       
   127     
       
   128         // Reference to the data owned by container
       
   129         CSettingsData& iSettingsData;
       
   130         
       
   131     };
       
   132 
       
   133 #endif // CXDMPLUGINSETTINGLIST_H