vtengines/videoteleng/Inc/State/CVtEngStateOpen.h
changeset 0 ed9695c8bcbe
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Open state
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CVTENGSTATEOPEN_H
       
    21 #define CVTENGSTATEOPEN_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "CVtEngStateBase.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CVtEngStateManager;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  Open state class
       
    33 *
       
    34 *  @lib videoteleng
       
    35 *  @since 2.6
       
    36 */
       
    37 NONSHARABLE_CLASS( CVtEngStateOpen ) : public CVtEngStateBase
       
    38     {
       
    39     public:  // Constructors and destructor
       
    40         
       
    41         /**
       
    42         * C++ constructor.
       
    43         */
       
    44         CVtEngStateOpen( 
       
    45             CVtEngStateManager& aStateManager,
       
    46             CVtEngEventManager& aEventManager );
       
    47 
       
    48 
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         virtual ~CVtEngStateOpen();
       
    53 
       
    54     public: // From CVtEngStateBase
       
    55         
       
    56         /**
       
    57         * Updates state. May result to state transition
       
    58         */
       
    59         virtual void UpdateL();
       
    60 
       
    61         /**
       
    62         * Validates a command.
       
    63         */
       
    64         TBool ValidateCommand(
       
    65             const TVtEngCommandId aCommandId );
       
    66 
       
    67         /**
       
    68         * @see CVtEngStateBase
       
    69         */
       
    70         virtual MVtEngSessionInfo::TSessionState State() const;
       
    71 
       
    72         /**
       
    73         * @see CVtEngStateBase::HandleL
       
    74         */
       
    75         TBool HandleL( CVtEngOperation& aOp );
       
    76         
       
    77     private:
       
    78 
       
    79         /**
       
    80         * Changes audio routing
       
    81         * @param aOp audio routing or null if value should
       
    82         *        be read from settings
       
    83         */
       
    84         void RouteAudioL( 
       
    85             CVtEngOperation* aOp );
       
    86         
       
    87         /**
       
    88         * Uses extension framework to complete
       
    89         * from operation.
       
    90         * @since S60 v3.2
       
    91         * @param aOp audio routing or null 
       
    92         */    
       
    93         void CallExtensionL( CVtEngOperation* aOp );    
       
    94 
       
    95     private:
       
    96 
       
    97         /**
       
    98         * Handles state transition to open.
       
    99         */
       
   100         void DoOpenL();
       
   101 
       
   102     };
       
   103 
       
   104 #endif      // CVTENGSTATEOPEN_H
       
   105             
       
   106 // End of File