uiservicetab/vimpstcmdprocess/inc/cvimpstcmdlogin.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 CVIMPSTCMDLOGIN_H
       
    20 #define CVIMPSTCMDLOGIN_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "mvimpstcmd.h"
       
    25 
       
    26 
       
    27 // FORWARD DECLARATION
       
    28 class MVIMPSTEngine;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32  * IM Login command object.
       
    33  *  @lib vimpstcmdprocess.dll
       
    34  *  @since 5.0
       
    35  */
       
    36 NONSHARABLE_CLASS(CVIMPSTCmdLogin) : public CBase,
       
    37                                   public MVIMPSTCmd
       
    38     {
       
    39     public: // Construction and destruction
       
    40 
       
    41         /**
       
    42          * Creates a new instance of this class.
       
    43          *
       
    44          * @param aCommandId        Command id.
       
    45          * @param aServiceId, service id.
       
    46          * @param aEngine, reference to engine.
       
    47          * @return  A new instance of this class.
       
    48          */
       
    49         static CVIMPSTCmdLogin* NewL(
       
    50                 const TInt aCommandId ,TUint32 aServiceID,
       
    51                 MVIMPSTEngine& aEngine);
       
    52 
       
    53         /**
       
    54          * Destructor.
       
    55          */
       
    56         ~CVIMPSTCmdLogin();
       
    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 aServiceId, service id.
       
    85         * @param aEngine, reference to engine.
       
    86         */
       
    87         CVIMPSTCmdLogin(
       
    88                 const TInt aCommandId, 
       
    89                 TUint32 aServiceID, 
       
    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         //Service Id
       
   103         TUint32 iServiceId;
       
   104         
       
   105         //observer - doesnt own
       
   106         MVIMPSTCmdObserver* iObserver;  
       
   107         
       
   108         //doesnt own - engine for this service
       
   109         MVIMPSTEngine& iEngine;
       
   110 
       
   111     };
       
   112 
       
   113 #endif // CVIMPSTCMDLOGIN_H
       
   114 
       
   115 // End of File