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