videditor/SimpleVideoEditor/src/SimpleVideoEditor.cpp
changeset 0 951a5db380a0
equal deleted inserted replaced
-1:000000000000 0:951a5db380a0
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "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 * Ixonos Plc
       
    14 *
       
    15 * Description: 
       
    16 * Class implementation.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 // INCLUDES
       
    22 #include "VideoEditorCommon.h"
       
    23 #include "SimpleVideoEditor.h"
       
    24 #include "SimpleVideoEditorImpl.h"
       
    25 #include "VideoEditorDebugUtils.h"
       
    26 
       
    27 
       
    28 // MEMBER FUNCTIONS
       
    29 
       
    30 //=============================================================================
       
    31 EXPORT_C CSimpleVideoEditor* CSimpleVideoEditor::NewL( MSimpleVideoEditorExitObserver& aExitObserver )
       
    32 	{
       
    33 	CSimpleVideoEditor* self = new (ELeave)	CSimpleVideoEditor();
       
    34 	CleanupStack::PushL (self);
       
    35 	self->ConstructL( aExitObserver );
       
    36 	CleanupStack::Pop (self);
       
    37 	return self;
       
    38 	}
       
    39 
       
    40 //=============================================================================
       
    41 EXPORT_C CSimpleVideoEditor::~CSimpleVideoEditor()
       
    42 	{
       
    43 	delete iImpl;
       
    44 	}
       
    45 
       
    46 //=============================================================================
       
    47 EXPORT_C void CSimpleVideoEditor::Merge( const TDesC& aSourceFileName )
       
    48 	{
       
    49 	iImpl->StartMerge(aSourceFileName);
       
    50 	} 
       
    51 
       
    52 //=============================================================================
       
    53 EXPORT_C void CSimpleVideoEditor::ChangeAudio( const TDesC& aSourceFileName )
       
    54 	{
       
    55 	iImpl->StartChangeAudio(aSourceFileName);
       
    56 	}
       
    57 
       
    58 //=============================================================================
       
    59 EXPORT_C void CSimpleVideoEditor::AddText( const TDesC& aSourceFileName )
       
    60 	{
       
    61 	iImpl->StartAddText(aSourceFileName);
       
    62 	}
       
    63 
       
    64 //=============================================================================
       
    65 EXPORT_C void CSimpleVideoEditor::Cancel()
       
    66 	{
       
    67 	iImpl->CancelMovieProcessing();
       
    68 	}
       
    69 
       
    70 //=============================================================================
       
    71 void CSimpleVideoEditor::ConstructL(MSimpleVideoEditorExitObserver& aExitObserver)
       
    72 	{
       
    73 	iImpl = CSimpleVideoEditorImpl::NewL(aExitObserver);
       
    74 	}
       
    75 
       
    76 //=============================================================================
       
    77 CSimpleVideoEditor::CSimpleVideoEditor() 
       
    78 	{
       
    79 	}
       
    80 
       
    81 
       
    82 	
       
    83 // End of file