diff -r 000000000000 -r 951a5db380a0 videditor/TrimForMms/src/TrimForMmsDocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/videditor/TrimForMms/src/TrimForMmsDocument.cpp Fri Jan 29 14:08:33 2010 +0200 @@ -0,0 +1,84 @@ +/* +* Copyright (c) 2010 Ixonos Plc. +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the "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: +* Ixonos Plc +* +* Description: +* +*/ + + +/* ==================================================================== + * File: TrimForMmsDocument.cpp + * Created: 04/18/06 + * Author: + * + * ==================================================================== */ + +#include "TrimForMmsAppUi.h" +#include "TrimForMmsDocument.h" +#include + + +// Standard Symbian OS construction sequence +CTrimForMmsDocument* CTrimForMmsDocument::NewL(CEikApplication& aApp) + { + CTrimForMmsDocument* self = NewLC(aApp); + CleanupStack::Pop(self); + return self; + } + +CTrimForMmsDocument* CTrimForMmsDocument::NewLC(CEikApplication& aApp) + { + CTrimForMmsDocument* self = new (ELeave) CTrimForMmsDocument(aApp); + CleanupStack::PushL(self); + self->ConstructL(); + return self; + } + +void CTrimForMmsDocument::ConstructL() + { + // no implementation required + } + +CTrimForMmsDocument::CTrimForMmsDocument(CEikApplication& aApp) : CAknDocument(aApp) + { + // no implementation required + } + +CTrimForMmsDocument::~CTrimForMmsDocument() + { + // no implementation required + } + +CEikAppUi* CTrimForMmsDocument::CreateAppUiL() + { + // Create the application user interface, and return a pointer to it, + // the framework takes ownership of this object + CEikAppUi* appUi = new (ELeave) CTrimForMmsAppUi; + return appUi; + } + +void CTrimForMmsDocument::OpenFileL(CFileStore*& /*aFileStore*/, RFile& aFile) + { + TFileName file; + User::LeaveIfError(aFile.FullName(file)); + + TBuf8 conv8Filename; + CnvUtfConverter::ConvertFromUnicodeToUtf8( conv8Filename,file ); + + STATIC_CAST( CTrimForMmsAppUi*, CCoeEnv::Static()->AppUi() ) + ->ActivateLocalViewL(TUid::Uid(0), TUid::Uid(0), conv8Filename); + + aFile.Close(); + + }