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