// Query for file metadata
void CMediaClientAppUi::FileMetaDataL()
	{
	// get meta data about the file, which we'll display afterwards
	iMetaData.ResetAndDestroy();
	CEikFileOpenDialog* dialog = new (ELeave) CEikFileOpenDialog(&iFileName);
    if (dialog->ExecuteLD(R_EIK_DIALOG_FILE_OPEN))
		MediaClientEngine().GetMetaDataL(iFileName,iMetaData);
	// callback to HandleEngineState when data got
	}
// File format conversion dialog
void CMediaClientAppUi::ConvertFileDialogL()
	{
	CEikFileOpenDialog* dialog = new (ELeave) CEikFileOpenDialog(&iFileName);
    if (dialog->ExecuteLD(R_EIK_DIALOG_FILE_OPEN))
		if (CConverterDialog::RunDlgLD(iFileName, MediaClientEngine(), iFormatOptions, iTargetType))
			// start conversion
			MediaClientEngine().ConvertL(iFileName, iTargetType, iFormatOptions);
			// callback to HandleEngineState when conversion complete
	}
Example #3
0
void CWordTest::SetBackgroundBitmapL(CEikRichTextEditor* aEditor,TBool aOn)
{
    if (iBackgroundBitmap)
        delete iBackgroundBitmap;
    iBackgroundBitmap = NULL;
    if (aOn)
    {
        _LIT(KPathMask, "_:\\");
        TFileName filename(KPathMask);
        filename[0] = 'A' + static_cast<TInt>(RFs::GetSystemDrive());

        CEikFileOpenDialog* dialog = new(ELeave) CEikFileOpenDialog(&filename);
        if (dialog->ExecuteLD(R_EIK_DIALOG_FILE_OPEN))
        {
            iBackgroundBitmap = new(ELeave) CFbsBitmap;
            if (iBackgroundBitmap->Load(filename))
                User::InfoPrint(_L("cannot load this file as a bitmap"));
        }
    }
    aEditor->NotifyNewFormatL();
}
// Dialog to select file to play
void CMediaClientAppUi::PlayFileDialogL()
    {
	CEikFileOpenDialog* dialog = new (ELeave) CEikFileOpenDialog(&iFileName);
    if (dialog->ExecuteLD(R_EIK_DIALOG_FILE_OPEN))
        MediaClientEngine().PlayL(iFileName);
    }