1 /* ------------------------------------------------------------------ 2 * Copyright (C) 1998-2009 PacketVideo 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 13 * express or implied. 14 * See the License for the specific language governing permissions 15 * and limitations under the License. 16 * ------------------------------------------------------------------- 17 */ 18 #ifndef TSC_COMPONENTREGISTRY_H 19 #define TSC_COMPONENTREGISTRY_H 20 21 #define TSC_COMPONENT_MIME_TYPE "x-pvmf/component" 22 23 #include "tsc_node_interface.h" 24 #include "tsc_component.h" 25 26 27 class TSC_statemanager; 28 class TSC_capability; 29 class TSC_lc; 30 class TSC_blc; 31 class TSC_clc; 32 class TSC_mt; 33 34 class TSCComponentRegistry 35 { 36 public: 37 TSCComponentRegistry(TSC_statemanager& aTSCStateManager, 38 TSC_capability& aTSCcapability, 39 TSC_lc& aTSClc, 40 TSC_blc& aTSCblc, 41 TSC_clc& aTSCclc, 42 TSC_mt& aTSCmt); 43 44 void QueryRegistry(Tsc324mNodeCommand& cmd); 45 46 TSC_component* Create(PVMFSessionId aSession, 47 const PVUuid& aUuid, 48 PVInterface*& aInterfacePtr, 49 const OsclAny* aContext); 50 private: 51 TSC_statemanager& iTSCstatemanager; 52 TSC_capability& iTSCcapability; 53 TSC_lc& iTSClc; 54 TSC_blc& iTSCblc; 55 TSC_clc& iTSCclc; 56 TSC_mt& iTSCmt; 57 }; 58 59 #endif 60 61