uiservicetab/vimpstengine/src/cvimpstblockedlistmanager.cpp
branchRCL_3
changeset 9 9fdee5e1da30
parent 0 5e5d6b214f4f
equal deleted inserted replaced
8:796276a1bdcc 9:9fdee5e1da30
    14 * Description:  manages the locally maintained blocked list
    14 * Description:  manages the locally maintained blocked list
    15 *
    15 *
    16 */
    16 */
    17 // INCLUDE FILES
    17 // INCLUDE FILES
    18 #include "cvimpstblockedlistmanager.h"
    18 #include "cvimpstblockedlistmanager.h"
    19 #include "vimpstdebugtrace.h"
    19 #include "uiservicetabtracer.h"
    20 
    20 
    21 
    21 
    22 // ================= MEMBER FUNCTIONS =======================
    22 // ================= MEMBER FUNCTIONS =======================
    23 // ---------------------------------------------------------
    23 // ---------------------------------------------------------
    24 // CVIMPSTServiceListManager::NewL
    24 // CVIMPSTServiceListManager::NewL
    25 // Two-phased constructor.
    25 // Two-phased constructor.
    26 // ---------------------------------------------------------
    26 // ---------------------------------------------------------
    27 CVIMPSTBlockedListManager* CVIMPSTBlockedListManager::NewL()
    27 CVIMPSTBlockedListManager* CVIMPSTBlockedListManager::NewL()
    28     {
    28     {
    29     TRACE( T_LIT("CVIMPSTBlockedListManager::NewL start"));
    29 	TRACER_AUTO;
    30     CVIMPSTBlockedListManager* self = 
    30     CVIMPSTBlockedListManager* self = 
    31     			CVIMPSTBlockedListManager::NewLC();
    31     			CVIMPSTBlockedListManager::NewLC();
    32     CleanupStack::Pop( self );
    32     CleanupStack::Pop( self ); 
    33    	TRACE( T_LIT("CVIMPSTBlockedListManager::NewL end"));
       
    34     return self;
    33     return self;
    35     }
    34     }
    36 
    35 
    37 // ---------------------------------------------------------
    36 // ---------------------------------------------------------
    38 // CVIMPSTBlockedListManager::NewLC
    37 // CVIMPSTBlockedListManager::NewLC
    39 // Two-phased constructor.
    38 // Two-phased constructor.
    40 // ---------------------------------------------------------
    39 // ---------------------------------------------------------
    41 CVIMPSTBlockedListManager* CVIMPSTBlockedListManager::NewLC()
    40 CVIMPSTBlockedListManager* CVIMPSTBlockedListManager::NewLC()
    42 	{
    41 	{
    43 	TRACE( T_LIT("CVIMPSTBlockedListManager::NewLC start"));
    42 	TRACER_AUTO;
    44 	CVIMPSTBlockedListManager* self = new (ELeave) CVIMPSTBlockedListManager;
    43 	CVIMPSTBlockedListManager* self = new (ELeave) CVIMPSTBlockedListManager;
    45 	CleanupStack::PushL( self );
    44 	CleanupStack::PushL( self );
    46 	self->ConstructL();
    45 	self->ConstructL();
    47 	TRACE( T_LIT("CVIMPSTBlockedListManager::NewLC end"));
       
    48 	return self;
    46 	return self;
    49 	}
    47 	}
    50     
    48     
    51 // ---------------------------------------------------------
    49 // ---------------------------------------------------------
    52 // CVIMPSTBlockedListManager::ConstructL
    50 // CVIMPSTBlockedListManager::ConstructL
    53 // ---------------------------------------------------------
    51 // ---------------------------------------------------------
    54 void CVIMPSTBlockedListManager::ConstructL()
    52 void CVIMPSTBlockedListManager::ConstructL()
    55 	{
    53 	{
    56 	TRACE( T_LIT("CVIMPSTBlockedListManager::ConstructL start"));
    54 	TRACER_AUTO;
    57     TRACE( T_LIT("CVIMPSTBlockedListManager::ConstructL end"));    	
    55 	
    58     }
    56     }
    59 	
    57 	
    60 // ---------------------------------------------------------
    58 // ---------------------------------------------------------
    61 // CVIMPSTBlockedListManager::CVIMPSTBlockedListManager
    59 // CVIMPSTBlockedListManager::CVIMPSTBlockedListManager
    62 // ---------------------------------------------------------	
    60 // ---------------------------------------------------------	
    86 // ---------------------------------------------------------
    84 // ---------------------------------------------------------
    87 // CVIMPSTBlockedListManager::AddToBlockedList
    85 // CVIMPSTBlockedListManager::AddToBlockedList
    88 // ---------------------------------------------------------
    86 // ---------------------------------------------------------
    89 void CVIMPSTBlockedListManager::RemoveFromBlockListL(const TDesC& aContact)
    87 void CVIMPSTBlockedListManager::RemoveFromBlockListL(const TDesC& aContact)
    90 	{
    88 	{
       
    89 	TRACER_AUTO;
    91 	for(TInt i=0; i<iBlockedList.Count(); ++i)
    90 	for(TInt i=0; i<iBlockedList.Count(); ++i)
    92 		{
    91 		{
    93 		if(0 == aContact.CompareC(iBlockedList[i]->Des()))
    92 		if(0 == aContact.CompareC(iBlockedList[i]->Des()))
    94 			{
    93 			{
    95 			HBufC* unblocked = iBlockedList[i];
    94 			HBufC* unblocked = iBlockedList[i];