uiservicetab/vimpstcmdprocess/inc/cvimpstcmdcca.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 Settings command object 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CVIMPSTCMDCCA_H
       
    20 #define CVIMPSTCMDCCA_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "mvimpstcmd.h"
       
    25 #include <mccaparameter.h>
       
    26 #include <ccafactory.h>
       
    27 #include <mccaconnection.h> 
       
    28 
       
    29 // FORWARD DECLARATION
       
    30 
       
    31 class MVIMPSTProcessArray;
       
    32 class MVIMPSTEngine;
       
    33 //CLASS DECLARATION
       
    34 /**
       
    35  * IM Settings command object.
       
    36  *  @lib vimpstcmdprocess.dll
       
    37  *  @since 5.0
       
    38  */
       
    39 NONSHARABLE_CLASS(CVIMPSTCmdCCA) : public CBase,
       
    40                                   public MVIMPSTCmd
       
    41     {
       
    42     public: // Construction and destruction
       
    43 
       
    44         /**
       
    45          * Creates a new instance of this class.
       
    46          *
       
    47          * @param aCommandId        Command id.
       
    48          * @param aParameter, parammeter.
       
    49          * @param aConnection, ccaconnection.
       
    50          * @param aIndex, index.
       
    51          * @param mArrayProcess, reference to MVIMPSTProcessArray
       
    52          * @return  A new instance of this class.
       
    53          */
       
    54         static CVIMPSTCmdCCA* NewL(
       
    55                 const TInt aCommandId, TInt& aIndex, 
       
    56                 MCCAConnection* aConnection,
       
    57                 MVIMPSTProcessArray& mArrayProcess,
       
    58                 MVIMPSTEngine& aEngine );
       
    59         /**
       
    60          * Destructor.
       
    61          */
       
    62         ~CVIMPSTCmdCCA();
       
    63 
       
    64     public: // From mvimpstcmd
       
    65        /**
       
    66         * see mvimpstcmd
       
    67         */
       
    68         void ExecuteLD();        
       
    69        /**
       
    70         * see mvimpstcmd
       
    71         */   
       
    72         void AddObserver(
       
    73                 MVIMPSTCmdObserver& aObserver );
       
    74        /**
       
    75         * see mvimpstcmd
       
    76         */
       
    77 		TInt CommandId() const;		
       
    78 	   /**
       
    79         * see mvimpstcmd
       
    80         */
       
    81 		TInt Result() const;
       
    82 		
       
    83 	         
       
    84 
       
    85     private: // Implementation
       
    86        /**
       
    87         * symbian default constructor
       
    88         * @param aCommandId        Command id.
       
    89         * @param aParameter, parammeter.
       
    90         * @param aConnection, ccaconnection.
       
    91         * @param aIndex, index.
       
    92         * @param mArrayProcess, reference to MVIMPSTProcessArray
       
    93         */
       
    94         CVIMPSTCmdCCA( const TInt aCommandId, 
       
    95                 		TInt& aIndex, 
       
    96                 		 MCCAConnection* aConnection,
       
    97                 		MVIMPSTProcessArray& mArrayProcess,
       
    98                 		MVIMPSTEngine& aEngine  );
       
    99          
       
   100        /**
       
   101         * symbian second constructor
       
   102         */       
       
   103         void ConstructL();
       
   104         
       
   105         /**
       
   106         * helper method to launch cca
       
   107         */ 
       
   108         void LaunchCcaL();
       
   109         
       
   110        
       
   111     private: // Data
       
   112         
       
   113         //Command id
       
   114         const TInt iCommandId;  
       
   115         
       
   116         //doesnt own
       
   117         MVIMPSTCmdObserver* iObserver;
       
   118         
       
   119         //index of the item in the list
       
   120         TInt& iIndex;
       
   121         
       
   122         //does not own : connection to CCA
       
   123          MCCAConnection* iConnection;
       
   124         // doesnt own:array process item 
       
   125         MVIMPSTProcessArray& iArrayProcess;
       
   126         
       
   127         MVIMPSTEngine& iEngine;
       
   128         
       
   129         //  own:parameter to pass to the CCA connection
       
   130         MCCAParameter* iParameter;
       
   131         
       
   132 
       
   133     };
       
   134 
       
   135 #endif // CVIMPSTCMDCCA_H
       
   136 
       
   137 // End of File