diff -r c1e808730d6c -r eedf2dcd43c6 omxil/xmltestharness/xmlclient/src/paramconversion.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omxil/xmltestharness/xmlclient/src/paramconversion.h Fri May 07 16:25:23 2010 +0100 @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2008 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: +* +*/ + + +/** +@file +@internalComponent +*/ + +#ifndef PARAMCONVERSION_H_ +#define PARAMCONVERSION_H_ + +#include + +struct OMX_PARAM_CONTENTURITYPE; + +class ParamConversion + { +public: + /** + * Converts a file name to a URI, then allocates and fills an + * OMX_PARAM_CONTENTURITYPE structure for OpenMAX IL v1.0. In OpenMax IL + * v1.0, this structure cannot contain URIs larger than 256 bytes + * (including the null terminator). If the converted URI exceeds this + * limit, this method leaves with KErrTooBig. + */ + static OMX_PARAM_CONTENTURITYPE* + FilenameAsContentUriStructV1_0L(const TDesC& aFileName); + + /** + * Converts a file name to a URI, then allocates and fills an + * OMX_PARAM_CONTENTURITYPE structure for OpenMAX IL v1.1. In OpenMax IL + * v1.1, this structure can contain URIs of arbitrary length. + */ + static OMX_PARAM_CONTENTURITYPE* + FilenameAsContentUriStructV1_1L(const TDesC& aFileName); + }; + +#endif /*PARAMCONVERSION_H_*/