uiservicetab/vimpstengine/inc/mvimpstenginecontactmgmtextention.h
branchRCL_3
changeset 23 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
22:3104fc151679 23:9a48e301e94b
       
     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:  Handles the Contact Management Operations
       
    15 *  Part of     : IMUiserviceTab / vimpstengine
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef __MVIMPSTENGINECONTACTMGMTEXTENTION_H
       
    20 #define __MVIMPSTENGINECONTACTMGMTEXTENTION_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "mvimpstengineextentionfeatures.h"
       
    25    
       
    26 // CLASS DECLARATION
       
    27 /**
       
    28  * Contact Management Implementation
       
    29  * @lib vimpstengine.lib
       
    30  * @since S60 5.0 
       
    31  */
       
    32 class MVIMPSTEngineContactMgmtExtention :public MVIMPSTEngineExtentionFeatures
       
    33 						 	
       
    34     {
       
    35 	 
       
    36     public: // New methods MVIMPSTEngineContactMgmtExtention   	
       
    37 		
       
    38 		/**
       
    39          * Casts MVIMPSTEngineContactMgmtExtention to this interface.
       
    40          *
       
    41          * @precond aExtentionFeature.Type() == TVIMPSTEnums::EServerContactManagement
       
    42          *          Panic(EPanicTypeMismatch)
       
    43          *          is raised if the precondition does not hold.
       
    44          * @param aExtentionFeature    Base Class .
       
    45          * @return Casted inteface for the Contact Mgmt Feature
       
    46          */
       
    47         IMPORT_C static MVIMPSTEngineContactMgmtExtention& Cast(
       
    48                 MVIMPSTEngineExtentionFeatures& aExtentionFeature);
       
    49 
       
    50         
       
    51         /**
       
    52          * Casts constMVIMPSTEngineContactMgmtExtention to this interface.
       
    53          *
       
    54          * @precond aExtentionFeature.Type() == TVIMPSTEnums::EServerContactManagement
       
    55          *          Panic(EPanicTypeMismatch)
       
    56          *          is raised if the precondition does not hold.
       
    57          * @param aExtentionFeature    Base Class .
       
    58          * @return Casted inteface for the Contact Mgmt Feature
       
    59          */        
       
    60         IMPORT_C static const MVIMPSTEngineContactMgmtExtention& Cast(
       
    61                 const MVIMPSTEngineExtentionFeatures& aExtentionFeature);
       
    62                 
       
    63         /**
       
    64 	     * AddServerContactL
       
    65 	     * to add the contact to Server thro XIMP
       
    66 		 * @param aContactListID ,in to be added
       
    67 		 * @param aUserId , to add.
       
    68 		 * @param aNickname to added.
       
    69 		 * @ return TInt error if any
       
    70 		 */
       
    71          virtual TInt AddServerContactL(const TDesC& aContactList, 
       
    72          						const TDesC& aUserId,const TDesC& aNickname,
       
    73          						TBool aWaitToComplete = ETrue ) = 0;
       
    74         
       
    75         
       
    76          /**
       
    77 	     * DeleteServerContactL
       
    78 	     * to delete the given contact from server thro XIMP
       
    79 		 * @param aContactListID ,from to delete.
       
    80 		 * @param aUserId , to delete.
       
    81 		 * @return TInt error if any
       
    82 		 */
       
    83          virtual TInt DeleteServerContactL( const TDesC& aContactListId, 
       
    84          									const TDesC& aUserId ) = 0;
       
    85 	
       
    86         
       
    87     };
       
    88     
       
    89 #endif      //__MVIMPSTENGINECONTACTMGMTEXTENTION_H
       
    90 
       
    91 // End of File