sipplugins/sippsipsettingsui/src/sipsettlistsipprofsetprovlistitem.cpp
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     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:  Setting provider list item, modifies title pane
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include    <akntitle.h>
       
    21 #include    "sipsettlistsipprofsetprovlistitem.h"
       
    22 #include    "tsipsettingsdata.h"
       
    23 #include    "gssippluginlogger.h"
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // CSIPSettListSIPProfSetProvListItem::CSIPSettListSIPProfSetProvListItem
       
    29 // C++ default constructor can NOT contain any code, that
       
    30 // might leave.
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 CSIPSettListSIPProfSetProvListItem::CSIPSettListSIPProfSetProvListItem( 
       
    34     TInt aIdentifier, 
       
    35     TDes& aText, 
       
    36     CAknTitlePane* aPane ) :
       
    37     CAknTextSettingItem( aIdentifier, aText ),
       
    38     iPane( aPane )
       
    39     {
       
    40     __GSLOGSTRING("CSIPSettListSIPProfSetProvListItem::CSIPSettListSIPProfSetProvListItem" )
       
    41     }
       
    42    
       
    43 // Destructor
       
    44 CSIPSettListSIPProfSetProvListItem::~CSIPSettListSIPProfSetProvListItem()
       
    45     {
       
    46     __GSLOGSTRING("CSIPSettListSIPProfSetProvListItem::~CSIPSettListSIPProfSetProvListItem" )    
       
    47     }
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // CSIPSettListSIPProfSetProvListItem::HandleSettingPageEventL
       
    51 // Gets the setting page events and updates the text on title pane, if
       
    52 // necessary
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 void CSIPSettListSIPProfSetProvListItem::HandleSettingPageEventL( 
       
    56     CAknSettingPage* aSettingPage,
       
    57     TAknSettingPageEvent aEventType )
       
    58     {    
       
    59     __GSLOGSTRING("CSIPSettListSIPProfSetProvListItem::HandleSettingPageEventL" )
       
    60     if ( aEventType == EEventSettingOked )
       
    61         {
       
    62         TBuf<KMaxSIPProviderNameLength> paneText ( KNullDesC );
       
    63         paneText.Copy( SettingTextL() );
       
    64         AknTextUtils::StripCharacters( paneText, KAknStripListControlChars );
       
    65         iPane->SetTextL( paneText );
       
    66         } 
       
    67 
       
    68     CAknTextSettingItem::HandleSettingPageEventL( aSettingPage, aEventType );
       
    69     }
       
    70 
       
    71 //  End of File