uiservicetab/vimpstcmdprocess/inc/cvimstcmdfriendrequest.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: IM AddContact command object  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CVIMSTCMDFRIENDREQUEST_H_
       
    20 #define CVIMSTCMDFRIENDREQUEST_H_
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "mvimpstcmd.h"
       
    25 
       
    26 // FORWARD DECLARATION
       
    27 
       
    28 class MVIMPSTEngine;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  * IM AddContact command object.
       
    34  * @lib vimpstcmdprocess.dll
       
    35  * @since 5.0
       
    36  */
       
    37 NONSHARABLE_CLASS(CVIMPSTCmdFriendRequest) : 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 aded..
       
    46          * @param aEngine instance of engine.
       
    47          * @return  A new instance of this class.
       
    48          */
       
    49         static CVIMPSTCmdFriendRequest* NewL(
       
    50                 const TInt aCommandId ,const TDesC& aContactId,
       
    51                 MVIMPSTEngine& aEngine);
       
    52 
       
    53         /**
       
    54          * Destructor.
       
    55          */
       
    56         ~CVIMPSTCmdFriendRequest();
       
    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 aded..
       
    85         * @param aEngine instance of engine.
       
    86         */
       
    87         CVIMPSTCmdFriendRequest(
       
    88                 const TInt aCommandId, 
       
    89                 const TDesC& aContactId, 
       
    90                 MVIMPSTEngine& aEngine);
       
    91                 
       
    92        /**
       
    93         * symbian second phase constructor
       
    94         */         
       
    95         void ConstructL();
       
    96         
       
    97         
       
    98     private: // Data
       
    99         
       
   100         //Command id.
       
   101         const TInt iCommandId;  
       
   102         
       
   103         //contact id.
       
   104         const TDesC& iContactId;
       
   105         
       
   106         //doesnt own observer.
       
   107         MVIMPSTCmdObserver* iObserver;  
       
   108         
       
   109         //doesnt own engine for this service
       
   110         MVIMPSTEngine& iEngine;
       
   111         
       
   112         //error code.
       
   113         TInt iError;
       
   114 
       
   115     };
       
   116 
       
   117 #endif /*CVIMSTCMDFRIENDREQUEST_H_*/
       
   118 
       
   119 //END OF FILE
       
   120