vtuis/videotelui/inc/CVtUiActivateBtHfDialog.h
branchRCL_3
changeset 24 f15ac8e65a02
parent 23 890b5dd735f8
child 25 779871d1e4f4
equal deleted inserted replaced
23:890b5dd735f8 24:f15ac8e65a02
     1 /*
       
     2 * Copyright (c) 2004 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:  Bluetooth HF activation dialog for Video Telephone application.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CVTUIACTIVATEBTHFDIALOG_H
       
    21 #define CVTUIACTIVATEBTHFDIALOG_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include    <AknWaitDialog.h>
       
    25 #include    <mvtengcommandobserver.h>
       
    26 #include    <mvtengaudio.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class MVtEngCommandHandler;
       
    30 class MVtUiEngineCommandManager;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  Bluetooth HF activation dialog for Video Telephone application.
       
    36 *
       
    37 *  @since Series 60 2.6
       
    38 */
       
    39 class CVtUiActivateBtHfDialog
       
    40     : public CAknWaitDialog,
       
    41       private MVtEngCommandObserver
       
    42     {
       
    43     public: // Constructors and destructor
       
    44 
       
    45         /**
       
    46         * Constructor.
       
    47         *
       
    48         * @param aSelfPtr optional pointer to itself.
       
    49         * @param aError optional pointer to error code variable.
       
    50         * @param aCommandHandler command handler.
       
    51         * @param aCommandManager command manager.
       
    52         */
       
    53         CVtUiActivateBtHfDialog(
       
    54             CEikDialog** aSelfPtr,
       
    55             TInt* aError,
       
    56             MVtEngCommandHandler& aCommandHandler,
       
    57             MVtUiEngineCommandManager& aCommandManager );
       
    58 
       
    59         /**
       
    60         * Destructor.
       
    61         */
       
    62         ~CVtUiActivateBtHfDialog();
       
    63 
       
    64     public: // New functions
       
    65 
       
    66         /**
       
    67         * Executes bluetooth activation dialog.
       
    68         */
       
    69         void ExecuteDialogLD();
       
    70 
       
    71     protected: // Functions from base classes
       
    72 
       
    73         /**
       
    74         * @see CEikDialog::PostLayoutDynInitL.
       
    75         */
       
    76         virtual void PostLayoutDynInitL();
       
    77 
       
    78     private:
       
    79 
       
    80         /**
       
    81         * @see MVtEngCommandObserver::HandleVTCommandPerformedL.
       
    82         */
       
    83         virtual void HandleVTCommandPerformedL(
       
    84             TVtEngCommandId aCommand,
       
    85             const TInt aError );
       
    86 
       
    87     private:
       
    88 
       
    89         // Reference to command handler.
       
    90         MVtEngCommandHandler& iCommandHandler;
       
    91 
       
    92         // Reference to command manager.
       
    93         MVtUiEngineCommandManager& iCommandManager;
       
    94 
       
    95         // ETrue if command is performed.
       
    96         TBool iCommandPerformed;
       
    97 
       
    98         // Pointer to error code variable.
       
    99         TInt* iError;
       
   100 
       
   101         // Audio routing setting.
       
   102         TPckgBuf< MVtEngAudio::TVtEngRoutingSetting > iAudioRouting;
       
   103 
       
   104     };
       
   105 
       
   106 #endif      // CVTUIACTIVATEBTHFDIALOG_H
       
   107 
       
   108 // End of File