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