mediasettings/mediasettingsapp/inc/MPSettingsProxySettingItemList.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2002 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 the License "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:   Setting item list class for Proxy setting list view.*
       
    15 */
       
    16 
       
    17 
       
    18 // Version : %version: 3 %
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef MPSETTINGSPROXYSETTINGITEMLIST_H
       
    24 #define MPSETTINGSPROXYSETTINGITEMLIST_H
       
    25 
       
    26 //  INCLUDES
       
    27 #include <aknsettingitemlist.h>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CMPSettingsModelForROP;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  CMPSettingsProxySettingItemList
       
    36 *  Setting item list class for Proxy setting list view.
       
    37 *
       
    38 *  @lib MediaSettings.app
       
    39 *  @since 2.0
       
    40 */
       
    41 class CMPSettingsProxySettingItemList : public CAknSettingItemList
       
    42     {
       
    43     public:  // Constructors and destructor
       
    44         
       
    45         /**
       
    46         * C++ default constructor.
       
    47         */
       
    48         CMPSettingsProxySettingItemList(CMPSettingsModelForROP* aModel);
       
    49 
       
    50 	    /**
       
    51 	    * 2nd-stage construction from resource id
       
    52 	    */
       
    53 	    void ConstructFromResourceL(TInt aResourceId);
       
    54 
       
    55         /**
       
    56         * From CCoeControl, 2nd-stage construction from constructed resource reader
       
    57         */
       
    58         void ConstructFromResourceL(TResourceReader& aReader);
       
    59         
       
    60         /**
       
    61         * Destructor.
       
    62         */
       
    63         virtual ~CMPSettingsProxySettingItemList();
       
    64 
       
    65     public:     // Functions from base classes
       
    66 
       
    67         /**
       
    68         * From CAknSettingItemList
       
    69         */
       
    70         void EditItemL(TInt aIndex, TBool aCalledFromMenu);
       
    71 
       
    72     protected:  // Functions from base classes
       
    73         
       
    74         /**
       
    75         * From CAknSettingItemList
       
    76         */
       
    77         CAknSettingItem* CreateSettingItemL(TInt aSettingId);
       
    78 
       
    79     private: //New
       
    80 
       
    81         /**
       
    82         * Sets Proxy host and Proxy port item visibility according to Proxy mode.
       
    83         * @since 2.0
       
    84         */
       
    85         void SetItemVisibilityL();
       
    86 
       
    87         /**
       
    88         * Loads all setting values.
       
    89         * @since 2.0
       
    90         */
       
    91         void LoadAllL();
       
    92 
       
    93         /**
       
    94         * Loads a specific setting value.
       
    95         * @since 2.0
       
    96         * @param aSettingId ID of the setting to be loaded.
       
    97         */
       
    98         void LoadSettingL(TInt aSettingId);
       
    99 
       
   100         /**
       
   101         * Stores a specific setting value.
       
   102         * @since 2.0
       
   103         * @param aSettingId ID of the setting to be stored.
       
   104         */
       
   105         void StoreSettingL(TInt aSettingId);
       
   106 
       
   107     private:
       
   108         CMPSettingsModelForROP* iModel;
       
   109 
       
   110         TBool iProxyMode;
       
   111         HBufC* iProxyHost;
       
   112         TPtr iProxyHostPtr;
       
   113         TInt iProxyPort;
       
   114     };
       
   115 
       
   116 #endif      // MPSETTINGSPROXYSETTINGITEMLIST_H   
       
   117             
       
   118 // End of File