diff -r f15ac8e65a02 -r 779871d1e4f4 vtuis/videotelui/inc/CVtUiActivateBtHfDialog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vtuis/videotelui/inc/CVtUiActivateBtHfDialog.h Wed Sep 01 12:29:12 2010 +0100 @@ -0,0 +1,108 @@ +/* +* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Bluetooth HF activation dialog for Video Telephone application. +* +*/ + + + +#ifndef CVTUIACTIVATEBTHFDIALOG_H +#define CVTUIACTIVATEBTHFDIALOG_H + +// INCLUDES +#include +#include +#include + +// FORWARD DECLARATIONS +class MVtEngCommandHandler; +class MVtUiEngineCommandManager; + +// CLASS DECLARATION + +/** +* Bluetooth HF activation dialog for Video Telephone application. +* +* @since Series 60 2.6 +*/ +class CVtUiActivateBtHfDialog + : public CAknWaitDialog, + private MVtEngCommandObserver + { + public: // Constructors and destructor + + /** + * Constructor. + * + * @param aSelfPtr optional pointer to itself. + * @param aError optional pointer to error code variable. + * @param aCommandHandler command handler. + * @param aCommandManager command manager. + */ + CVtUiActivateBtHfDialog( + CEikDialog** aSelfPtr, + TInt* aError, + MVtEngCommandHandler& aCommandHandler, + MVtUiEngineCommandManager& aCommandManager ); + + /** + * Destructor. + */ + ~CVtUiActivateBtHfDialog(); + + public: // New functions + + /** + * Executes bluetooth activation dialog. + */ + void ExecuteDialogLD(); + + protected: // Functions from base classes + + /** + * @see CEikDialog::PostLayoutDynInitL. + */ + virtual void PostLayoutDynInitL(); + + private: + + /** + * @see MVtEngCommandObserver::HandleVTCommandPerformedL. + */ + virtual void HandleVTCommandPerformedL( + TVtEngCommandId aCommand, + const TInt aError ); + + private: + + // Reference to command handler. + MVtEngCommandHandler& iCommandHandler; + + // Reference to command manager. + MVtUiEngineCommandManager& iCommandManager; + + // ETrue if command is performed. + TBool iCommandPerformed; + + // Pointer to error code variable. + TInt* iError; + + // Audio routing setting. + TPckgBuf< MVtEngAudio::TVtEngRoutingSetting > iAudioRouting; + + }; + +#endif // CVTUIACTIVATEBTHFDIALOG_H + +// End of File