uiservicetab/vimpstengine/inc/cvimpstblockedlistmanager.h
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     1 /*
       
     2 * Copyright (c) 2008 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:  manages the locally maintained blocked list
       
    15 *
       
    16 */
       
    17 #ifndef __CVIMPSTBLOCKEDLISTMANAGER_H
       
    18 #define __CVIMPSTBLOCKEDLISTMANAGER_H
       
    19 
       
    20 //  INCLUDES
       
    21 #include <e32base.h>
       
    22 
       
    23 // CLASS DECLARATION
       
    24 /**
       
    25  * List & presence implementation.
       
    26  * @lib vimpstengine.lib
       
    27  * @since S60 5.0 
       
    28  */
       
    29 NONSHARABLE_CLASS( CVIMPSTBlockedListManager ) 						 	
       
    30     {
       
    31     //for testcases
       
    32     friend class T_VimpstEnginePresenceSubService;
       
    33     
       
    34     public:  // Two-phased constructors and destructor
       
    35 
       
    36         /**
       
    37          * Two-phased constructor.
       
    38          */
       
    39         static CVIMPSTBlockedListManager* NewL();
       
    40         
       
    41         
       
    42         /**
       
    43          * Two-phased constructor.
       
    44          */										
       
    45         static CVIMPSTBlockedListManager* NewLC();
       
    46 
       
    47         /**
       
    48          * C++ Destructor.
       
    49          */
       
    50         virtual ~CVIMPSTBlockedListManager();
       
    51         
       
    52         /**
       
    53         *Add aContact to Blocked list.
       
    54         *@param aContact : contact to be added to blocked list.
       
    55         */
       
    56         void AddToBlockedListL(const TDesC& aContact);
       
    57 
       
    58        /**
       
    59         *Remove aContact to Blocked list.
       
    60         *@param aContact : contact to be Removed to blocked list.
       
    61         */
       
    62         void RemoveFromBlockListL(const TDesC& aContact);
       
    63 
       
    64 
       
    65         /**
       
    66         *Add aContact to Blocked list.
       
    67         *@return: list of blocked contacts.
       
    68         */
       
    69  		RPointerArray<HBufC>* BlockedList();
       
    70  		
       
    71  		/**
       
    72  		* Reset the blocked list to empty, and free memory of all contact in blocked list.
       
    73  		*/
       
    74  		void ResetL();
       
    75 
       
    76     private:
       
    77     	
       
    78     	//private constructor
       
    79     	CVIMPSTBlockedListManager();
       
    80     	
       
    81         void ConstructL();
       
    82 
       
    83     private:
       
    84     	RPointerArray<HBufC> iBlockedList;
       
    85     	
       
    86     };
       
    87     
       
    88 #endif      //__CVIMPSTBLOCKEDLISTMANAGER_H
       
    89 
       
    90 // End of File