nettools/conntest/inc/CustomPrefsItemList.h
changeset 0 857a3e953887
equal deleted inserted replaced
-1:000000000000 0:857a3e953887
       
     1 /*
       
     2  * Copyright (c) 2006 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: CSettingItemList implemets the settings list for Conntest
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CUSTOMPREFSITEMLIST_H
       
    19 #define CUSTOMPREFSITEMLIST_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <aknsettingitemlist.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class CCustomPrefsData;
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30  * Control for setting the (Extended) Custom Preferences.
       
    31  */
       
    32 class CCustomPrefsItemList : public CAknSettingItemList
       
    33     {
       
    34 public:
       
    35     CAknSettingItem* CreateSettingItemL( TInt identifier );
       
    36     void SetData( CCustomPrefsData* aData );
       
    37 
       
    38     void EditItemL( TInt aIndex, TBool aCalledFromMenu );
       
    39 
       
    40 private:
       
    41     /**
       
    42      * Size change handler
       
    43      */
       
    44     void SizeChanged();
       
    45 
       
    46     /**
       
    47      * Selects a SNAP
       
    48      */
       
    49     void SelectSnapL();
       
    50 
       
    51     /**
       
    52      * Selects a IAP
       
    53      */
       
    54     void SelectIapL();
       
    55 
       
    56 private:
       
    57     CCustomPrefsData* iData;
       
    58 
       
    59     /**
       
    60      * Control for selecting the Custom Preferences list's SNAP or IAP ID.
       
    61      */
       
    62     class CCustomPrefsSelectedIntegerItem : public CAknIntegerSettingItem
       
    63         {
       
    64     public:
       
    65         void EditSelectedIntegerItemL( TInt aId );
       
    66         };
       
    67     };
       
    68 
       
    69 #endif
       
    70 
       
    71 // End of File