camappengine/Engine/Src/CaeEngineImpVideoName.cpp
changeset 0 9b3e960ffc8a
equal deleted inserted replaced
-1:000000000000 0:9b3e960ffc8a
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Camera Application Engine implementation for changing 
       
    15 *                video file name.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include "CaeEngineImp.h"   // For Camera Application Engine implementation.
       
    23 #include <mmf/server/mmffile.h>        // For MMF definitions (as TMMFFileConfig)
       
    24 
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // CCaeEngineImp::ChangeVideoFileNameL
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 void CCaeEngineImp::ChangeVideoFileNameL()
       
    31     {
       
    32     LOGTEXT( _L( "Cae: CCaeEngineImp::ChangeVideoFileNameL() entering" ) );
       
    33 
       
    34     // Close if previously prepared.
       
    35     CloseVideoRecording();
       
    36     // Open video recorder.
       
    37     iVideoOpened = ETrue; // This is always set to ETrue when 
       
    38                           // OpenFileL has been called to allow 
       
    39                           // freeing resources by CloseVideoRecording().
       
    40     iVideoRecorder->OpenFileL( iVideoClipFileName->Des(),
       
    41                                iCameraHandle,
       
    42                                iVideoControllerUid,
       
    43                                iVideoFormatUid, 
       
    44                                iVideoType->Des(),  
       
    45                                iVideoAudioType );
       
    46 
       
    47     LOGTEXT( _L( "Cae: CCaeEngineImp::ChangeVideoFileNameL() returning" ) );
       
    48     }
       
    49 
       
    50 //  End of File