00001 00022 #ifndef __BELLAGIO_OPENMAX_COMPONENT_H__ 00023 #define __BELLAGIO_OPENMAX_COMPONENT_H__ 00024 00025 #include <e32def.h> //TBool 00026 #include <e32std.h> //RLibrary 00027 #include <ecom.h> //RLibrary 00028 00029 #include <OMX_Core.h> 00030 #include <OMX_Component.h> 00031 00032 #include "BellagioOpenMaxComponentUid.hrh" 00033 #include "component_loader.h" 00034 00035 class CBellagioOpenMaxComponent : public CBase 00036 { 00037 public: 00038 static CBellagioOpenMaxComponent* NewL(TUid id, OMX_STRING aComponentName); 00039 virtual ~CBellagioOpenMaxComponent(); 00040 00041 IMPORT_C void setId(TUid id); 00042 00043 IMPORT_C BOSA_COMPONENTLOADER * GetLoader(); 00044 IMPORT_C void SetLoader(BOSA_COMPONENTLOADER *pLoader); 00045 00046 IMPORT_C OMX_COMPONENTTYPE * GetComponent(); 00047 IMPORT_C void SetComponent(OMX_COMPONENTTYPE *pComponent); 00048 00049 protected: 00050 /* handle to the standard component member of this object */ 00051 OMX_COMPONENTTYPE *component; 00052 /* handle to the loader that loaded this component */ 00053 BOSA_COMPONENTLOADER *loader; 00054 00055 private: 00056 TUid iDtor_ID_Key; 00057 }; 00058 00059 #endif // __BEBOP_OPENMAX_COMPONENT_H__