00001 00022 #ifndef __BELLAGIO_OPENMAX_LOADER_H__ 00023 #define __BELLAGIO_OPENMAX_LOADER_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 "BellagioOpenMaxLoaderUid.hrh" 00033 #include "component_loader.h" 00034 00035 class CBellagioOpenMaxLoader : public CBase 00036 { 00037 public: 00038 static CBellagioOpenMaxLoader* NewL(TUid id); 00039 virtual ~CBellagioOpenMaxLoader(); 00040 00041 void setId(TUid id); 00042 00043 BOSA_COMPONENTLOADER* GetLoader(); 00044 00045 protected: 00046 CBellagioOpenMaxLoader(); 00047 00048 BOSA_COMPONENTLOADER *loader; 00049 00050 private: 00051 /* ecom id of this loader, used in kernel side handle destruction */ 00052 TUid iDtor_ID_Key; 00053 }; 00054 00055 inline void CBellagioOpenMaxLoader::setId(TUid id) 00056 { 00057 iDtor_ID_Key = id; 00058 } 00059 00060 inline BOSA_COMPONENTLOADER* CBellagioOpenMaxLoader::GetLoader() 00061 { 00062 return loader; 00063 } 00064 00065 #endif // __BELLAGIO_OPENMAX_LOADER_H__