diff -r 000000000000 -r 307788aac0a8 sipplugins/sippsipsettingsui/src/sipsettlistsipprofsetprovlistitem.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sipplugins/sippsipsettingsui/src/sipsettlistsipprofsetprovlistitem.cpp Tue Feb 02 01:03:15 2010 +0200 @@ -0,0 +1,71 @@ +/* +* 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 +#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 paneText ( KNullDesC ); + paneText.Copy( SettingTextL() ); + AknTextUtils::StripCharacters( paneText, KAknStripListControlChars ); + iPane->SetTextL( paneText ); + } + + CAknTextSettingItem::HandleSettingPageEventL( aSettingPage, aEventType ); + } + +// End of File