uiservicetab/vimpstcmdprocess/inc/cvimpstcmdchangeownavtar.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: IM Change Avtar command object 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CVIMPSTCMDCHANGEOWNAVTAR_H
       
    20 #define CVIMPSTCMDCHANGEOWNAVTAR_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "mvimpstcmd.h"
       
    25 #include "tvimpstconsts.h"
       
    26 #include "tvimpstenums.h"
       
    27 
       
    28 // FORWARD DECLARATION
       
    29 
       
    30 class MVIMPSTEngine;
       
    31 
       
    32 /**
       
    33  * IM Change Avtar command object.
       
    34  */
       
    35 NONSHARABLE_CLASS(CVIMPSTCmdChangeOwnAvtar) : public CBase,
       
    36                                   public MVIMPSTCmd
       
    37     {
       
    38     public: // Construction and destruction
       
    39 
       
    40         /**
       
    41          * Creates a new instance of this class.
       
    42          *
       
    43          * @param aCommandId        Command id.
       
    44          * @param aFileName         Avtar file name
       
    45          * @param aEngine           Engine 
       
    46          * @return  A new instance of this class.
       
    47          */
       
    48         static CVIMPSTCmdChangeOwnAvtar* NewL(
       
    49                 const TInt aCommandId ,const TAvatarData& aData,
       
    50                 MVIMPSTEngine& aEngine);
       
    51 
       
    52         /**
       
    53          * Destructor.
       
    54          */
       
    55         ~CVIMPSTCmdChangeOwnAvtar();
       
    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     private: // Implementation
       
    78     
       
    79        /**
       
    80         * symbian default constructor
       
    81         */
       
    82         CVIMPSTCmdChangeOwnAvtar(
       
    83                 const TInt aCommandId, 
       
    84                 const TAvatarData& aData, 
       
    85                 MVIMPSTEngine& aEngine);
       
    86        /**
       
    87         * symbian second phase constructor
       
    88         */         
       
    89         void ConstructL();
       
    90         
       
    91         
       
    92     private: // Data
       
    93         
       
    94         /** 
       
    95          * Command id
       
    96          */
       
    97         const TInt iCommandId;  
       
    98         
       
    99         /**
       
   100          * avatar data.file name and mimetype
       
   101          */
       
   102         const TAvatarData& iData;
       
   103         
       
   104         /**
       
   105          * observer 
       
   106          * doesnt own
       
   107          */
       
   108         MVIMPSTCmdObserver* iObserver;  
       
   109         
       
   110         /** 
       
   111          * doesnt own
       
   112          * engine for this service
       
   113          */
       
   114         MVIMPSTEngine& iEngine;
       
   115         
       
   116         /**
       
   117          * error code.
       
   118          */
       
   119         TInt iError;
       
   120 
       
   121     };
       
   122 
       
   123 #endif // CVIMPSTCMDCHANGEOWNAVTAR_H
       
   124 
       
   125 // End of File