wlanutilities/wlansettingsui/src/wlansettingsuibinarypopupsettingitem.cpp
branchRCL_3
changeset 25 f28ada11abbf
parent 0 56b72877c1cb
equal deleted inserted replaced
24:63be7eb3fc78 25:f28ada11abbf
       
     1 /*
       
     2 * Copyright (c) 2007 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: 
       
    15 *      CWlanSettingsUiBinaryPopupSettingItem implementation.   
       
    16 *      
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #include "wlansettingsuibinarypopupsettingitem.h"
       
    22 
       
    23 // ================= MEMBER FUNCTIONS =======================
       
    24 
       
    25 // ---------------------------------------------------------
       
    26 // CWlanSettingsUiBinaryPopupSettingItem::CWlanSettingsUiBinaryPopupSettingItem
       
    27 // ---------------------------------------------------------
       
    28 //
       
    29 CWlanSettingsUiBinaryPopupSettingItem::CWlanSettingsUiBinaryPopupSettingItem(
       
    30                         MWlanSettingsUiBinaryPopupSettingObserver& aObserver,
       
    31                         TInt aResourceId,
       
    32                         TBool& aValue )
       
    33 : CAknBinaryPopupSettingItem( aResourceId, aValue ), 
       
    34   iObserver( aObserver )
       
    35     {
       
    36     }
       
    37 
       
    38 // ---------------------------------------------------------
       
    39 // CWlanSettingsUiBinaryPopupSettingItem::EditItemL
       
    40 // ---------------------------------------------------------
       
    41 //
       
    42 void CWlanSettingsUiBinaryPopupSettingItem::EditItemL( TBool aCalledFromMenu )
       
    43     {
       
    44     // Since this is a binary setting, edit always means change.
       
    45     // (There is no popup to Cancel, the setting changes in place.)
       
    46     CAknBinaryPopupSettingItem::EditItemL( aCalledFromMenu );
       
    47     iObserver.BinarySettingChangedL( this, InternalValue() );
       
    48     }
       
    49