uiservicetab/vimpstcmdprocess/inc/cvimpstcmddeletecontact.h
branchRCL_3
changeset 22 3104fc151679
parent 21 2b7283837edb
child 23 9a48e301e94b
equal deleted inserted replaced
21:2b7283837edb 22:3104fc151679
     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: IM Deletecontact command object 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CVIMPSTCMDDELETECONTACT_H
       
    20 #define CVIMPSTCMDDELETECONTACT_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "mvimpstcmd.h"
       
    25 
       
    26 // FORWARD DECLARATION
       
    27 
       
    28 class MVIMPSTEngine;
       
    29 class MVPbkContactLink;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 /**
       
    33  * IM Deletecontact command object.
       
    34  *  @lib vimpstcmdprocess.dll
       
    35  *  @since 5.0
       
    36  */
       
    37 NONSHARABLE_CLASS(CVIMPSTCmdDeleteContact) : public CBase,
       
    38                                   public MVIMPSTCmd
       
    39     {
       
    40     public: // Construction and destruction
       
    41 
       
    42         /**
       
    43          * Creates a new instance of this class.
       
    44          * @param aCommandId        Command id.
       
    45          * @param aContactId id of the contact to be deleted..
       
    46          * @param aEngine instance of engine.
       
    47          * @return  A new instance of this class.
       
    48          */
       
    49         static CVIMPSTCmdDeleteContact* NewL(
       
    50                 const TInt aCommandId ,MVPbkContactLink* aContactLink,
       
    51                 MVIMPSTEngine& aEngine);
       
    52 
       
    53         /**
       
    54          * Destructor.
       
    55          */
       
    56         ~CVIMPSTCmdDeleteContact();
       
    57 
       
    58     public: // From mvimpstcmd
       
    59        /**
       
    60         * see mvimpstcmd
       
    61         */
       
    62         void ExecuteLD();        
       
    63        /**
       
    64         * see mvimpstcmd
       
    65         */
       
    66         void AddObserver(
       
    67                 MVIMPSTCmdObserver& aObserver );
       
    68        /**
       
    69         * see mvimpstcmd
       
    70         */
       
    71 		TInt CommandId() const;		
       
    72 	   /**
       
    73         * see mvimpstcmd
       
    74         */	
       
    75 		TInt Result() const;  
       
    76 		
       
    77 	         
       
    78 
       
    79     private: // Implementation
       
    80     
       
    81        /**
       
    82         * symbian default constructor
       
    83         * @param aCommandId        Command id.
       
    84         * @param aContactId id of the contact to be deleted..
       
    85         * @param aEngine instance of engine.
       
    86         */
       
    87         CVIMPSTCmdDeleteContact(
       
    88                 const TInt aCommandId, 
       
    89                 MVPbkContactLink* aContactLink, 
       
    90                 MVIMPSTEngine& aEngine);
       
    91        /**
       
    92         * symbian second phase constructor
       
    93         */         
       
    94         void ConstructL();
       
    95         
       
    96         
       
    97     private: // Data
       
    98         
       
    99         //Command id
       
   100         const TInt iCommandId;  
       
   101         
       
   102         //contact id
       
   103         MVPbkContactLink* iContactLink;
       
   104         
       
   105         //observer - doesnt own
       
   106         MVIMPSTCmdObserver* iObserver;  
       
   107         
       
   108         //doesnt own - engine for this service
       
   109         MVIMPSTEngine& iEngine;
       
   110         
       
   111         //error code
       
   112         TInt iError;
       
   113 
       
   114     };
       
   115 
       
   116 #endif // CVIMPSTCMDDELETECONTACT_H
       
   117 
       
   118 // End of File