diff -r 000000000000 -r 0e4a32b9112d omxil_generic/omxilloader/src/omxilsymbiancomponentloader.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omxil_generic/omxilloader/src/omxilsymbiancomponentloader.h Wed Aug 25 12:40:50 2010 +0300 @@ -0,0 +1,79 @@ +// Copyright (c) 2008-2009 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: +// + +#ifndef OMXILSYMBIANCOMPONENTLOADER_H +#define OMXILSYMBIANCOMPONENTLOADER_H + +#include +#include +#include +#include +#include + +class CSymbianOmxComponentLoader : private COmxComponentLoaderIf + { +public: + class TOmxComponentInfo + { + public: + TOmxComponentInfo(); + public: + TUid iUid; + TBuf8 iComponentName; + TBuf8 iRoles; + }; + +public: + OMX_HANDLETYPE Handle(); + + static CSymbianOmxComponentLoader* NewL(); + + ~CSymbianOmxComponentLoader(); + + OMX_ERRORTYPE InitializeComponentLoader(); + OMX_ERRORTYPE UnInitializeComponentLoader(OMX_LOADERTYPE* loader); + OMX_ERRORTYPE LoadComponent( OMX_HANDLETYPE* pHandle, + const OMX_STRING cComponentName, + OMX_PTR pAppData, + OMX_CALLBACKTYPE* pCallBacks ); + OMX_ERRORTYPE UnloadComponent( OMX_HANDLETYPE hComponent ); + OMX_ERRORTYPE ComponentNameEnum( OMX_STRING cComponentName, + OMX_U32 nNameLength, + const OMX_U32 nIndex ); + OMX_ERRORTYPE GetRolesOfComponent( const OMX_STRING compName, + OMX_U32* pNumRoles, + OMX_U8** roles ); + OMX_ERRORTYPE GetComponentsOfRole( const OMX_STRING role, + OMX_U32* pNumComps, + OMX_U8** compNames ); + +private: + CSymbianOmxComponentLoader(); + void ConstructL(); + +private: + OMX_LOADERTYPE* iHandle; + + RArray iComponentNameList; + RPointerArray iComponents; + }; + +inline CSymbianOmxComponentLoader::TOmxComponentInfo::TOmxComponentInfo(): + iUid(TUid::Uid(0)),iComponentName(0),iRoles(0) + { + } + + +#endif /*OMXILSYMBIANCOMPONENTLOADER_H*/