vtengines/videoteleng/Inc/Commands/cvtenginternaloperation.h
changeset 0 ed9695c8bcbe
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     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:  Operation class for commands not originated by UI but
       
    15 *                engine itself.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef C_VTENGINTERNALOPERATION_H
       
    21 #define C_VTENGINTERNALOPERATION_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "CVtEngOperation.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CVtEngCommandHandler;
       
    29 class CVtEngHandlerContainer;
       
    30 
       
    31 /**
       
    32 *  Class for handling operation (command) originated engine itself.
       
    33 *  Deviation from base class behavior: does not set itself as "active
       
    34 *  operation" in command handler (observer of the operation). Also
       
    35 *  response is given in synchronous manner.
       
    36 *
       
    37 *  @lib videoteleng
       
    38 *  @since S60 5.0
       
    39 */
       
    40 NONSHARABLE_CLASS( CVtEngInternalOperation ) : public CVtEngOperation
       
    41     {
       
    42 public: // constructor and destructors
       
    43 
       
    44     /**
       
    45     * two-phase constructor
       
    46     * @param aCommandId command id
       
    47     * @param aHandlers handler container
       
    48     * @param aCommandHandler command handler
       
    49     * @param aDelete if ETrue command deletes itself after completion
       
    50     * @return internal operation
       
    51     */
       
    52     static CVtEngInternalOperation* NewL(
       
    53         TVtEngCommandId aCommandId,
       
    54         CVtEngHandlerContainer& aHandlers,
       
    55         MVtEngOperationObserver& aObserver,
       
    56         TBool aDelete = ETrue );
       
    57 
       
    58     /**
       
    59     * Destructor
       
    60     */
       
    61     ~CVtEngInternalOperation( );
       
    62 
       
    63 public: // from CVtEngOperation
       
    64 
       
    65     /**
       
    66     * @see CVtEngOperation
       
    67     */
       
    68     virtual TBool ExecuteL();
       
    69 
       
    70     /**
       
    71     * @see CVtEngOperation
       
    72     */
       
    73     virtual void HandleOpComplete( const TInt aResult );
       
    74 
       
    75 private:
       
    76     /**
       
    77     * c++ constructor
       
    78     */
       
    79     CVtEngInternalOperation(
       
    80         TVtEngCommandId aCommandId,
       
    81         CVtEngHandlerContainer& aHandlers,
       
    82         MVtEngOperationObserver& aObserver,
       
    83         TBool aDelete );
       
    84     };
       
    85 
       
    86 #endif  // C_VTENGINTERNALOPERATION_H
       
    87 
       
    88 // End of File