diff -r 2b7283837edb -r 3104fc151679 uiservicetab/vimpstengine/src/cvimpstblockedlistmanager.cpp --- a/uiservicetab/vimpstengine/src/cvimpstblockedlistmanager.cpp Thu Aug 19 09:41:53 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,120 +0,0 @@ -/* -* Copyright (c) 2008 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: manages the locally maintained blocked list -* -*/ -// INCLUDE FILES -#include "cvimpstblockedlistmanager.h" -#include "uiservicetabtracer.h" - - -// ================= MEMBER FUNCTIONS ======================= -// --------------------------------------------------------- -// CVIMPSTServiceListManager::NewL -// Two-phased constructor. -// --------------------------------------------------------- -CVIMPSTBlockedListManager* CVIMPSTBlockedListManager::NewL() - { - TRACER_AUTO; - CVIMPSTBlockedListManager* self = - CVIMPSTBlockedListManager::NewLC(); - CleanupStack::Pop( self ); - return self; - } - -// --------------------------------------------------------- -// CVIMPSTBlockedListManager::NewLC -// Two-phased constructor. -// --------------------------------------------------------- -CVIMPSTBlockedListManager* CVIMPSTBlockedListManager::NewLC() - { - TRACER_AUTO; - CVIMPSTBlockedListManager* self = new (ELeave) CVIMPSTBlockedListManager; - CleanupStack::PushL( self ); - self->ConstructL(); - return self; - } - -// --------------------------------------------------------- -// CVIMPSTBlockedListManager::ConstructL -// --------------------------------------------------------- -void CVIMPSTBlockedListManager::ConstructL() - { - TRACER_AUTO; - - } - -// --------------------------------------------------------- -// CVIMPSTBlockedListManager::CVIMPSTBlockedListManager -// --------------------------------------------------------- -CVIMPSTBlockedListManager::CVIMPSTBlockedListManager() - { - - } - -// --------------------------------------------------------- -// CVIMPSTBlockedListManager::~CVIMPSTBlockedListManager -// --------------------------------------------------------- -CVIMPSTBlockedListManager::~CVIMPSTBlockedListManager() - { - iBlockedList.ResetAndDestroy(); - iBlockedList.Close(); - } - -// --------------------------------------------------------- -// CVIMPSTBlockedListManager::AddToBlockedListL -// --------------------------------------------------------- -void CVIMPSTBlockedListManager::AddToBlockedListL(const TDesC& aContact) - { - HBufC* contact = aContact.AllocL(); - iBlockedList.Append(contact);//owner ship tranfered. - } - -// --------------------------------------------------------- -// CVIMPSTBlockedListManager::AddToBlockedList -// --------------------------------------------------------- -void CVIMPSTBlockedListManager::RemoveFromBlockListL(const TDesC& aContact) - { - TRACER_AUTO; - for(TInt i=0; iDes())) - { - HBufC* unblocked = iBlockedList[i]; - iBlockedList.Remove(i); - delete unblocked ; - } - } - } - - -// --------------------------------------------------------- -// CVIMPSTBlockedListManager::BlockedList -// --------------------------------------------------------- -RPointerArray* CVIMPSTBlockedListManager::BlockedList() - { - return &iBlockedList; - } - -// --------------------------------------------------------- -// CVIMPSTBlockedListManager::ResetL -// --------------------------------------------------------- -void CVIMPSTBlockedListManager::ResetL() - { - iBlockedList.ResetAndDestroy(); - } - - - -// end of file