sipplugins/sippsipsettingsui/src/sipsettlistsipprofsetprovlistitem.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 14:57:13 +0300
branchRCL_3
changeset 56 2c7192069824
parent 0 307788aac0a8
permissions -rw-r--r--
Revision: 201038 Kit: 201041

/*
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Setting provider list item, modifies title pane
*
*/


// INCLUDE FILES
#include    <akntitle.h>
#include    "sipsettlistsipprofsetprovlistitem.h"
#include    "tsipsettingsdata.h"
#include    "gssippluginlogger.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CSIPSettListSIPProfSetProvListItem::CSIPSettListSIPProfSetProvListItem
// C++ default constructor can NOT contain any code, that
// might leave.
// -----------------------------------------------------------------------------
//
CSIPSettListSIPProfSetProvListItem::CSIPSettListSIPProfSetProvListItem( 
    TInt aIdentifier, 
    TDes& aText, 
    CAknTitlePane* aPane ) :
    CAknTextSettingItem( aIdentifier, aText ),
    iPane( aPane )
    {
    __GSLOGSTRING("CSIPSettListSIPProfSetProvListItem::CSIPSettListSIPProfSetProvListItem" )
    }
   
// Destructor
CSIPSettListSIPProfSetProvListItem::~CSIPSettListSIPProfSetProvListItem()
    {
    __GSLOGSTRING("CSIPSettListSIPProfSetProvListItem::~CSIPSettListSIPProfSetProvListItem" )    
    }

// -----------------------------------------------------------------------------
// CSIPSettListSIPProfSetProvListItem::HandleSettingPageEventL
// Gets the setting page events and updates the text on title pane, if
// necessary
// -----------------------------------------------------------------------------
//
void CSIPSettListSIPProfSetProvListItem::HandleSettingPageEventL( 
    CAknSettingPage* aSettingPage,
    TAknSettingPageEvent aEventType )
    {    
    __GSLOGSTRING("CSIPSettListSIPProfSetProvListItem::HandleSettingPageEventL" )
    if ( aEventType == EEventSettingOked )
        {
        TBuf<KMaxSIPProviderNameLength> paneText ( KNullDesC );
        paneText.Copy( SettingTextL() );
        AknTextUtils::StripCharacters( paneText, KAknStripListControlChars );
        iPane->SetTextL( paneText );
        } 

    CAknTextSettingItem::HandleSettingPageEventL( aSettingPage, aEventType );
    }

//  End of File