Component::Component(ConfigurationManager& params) : ResourceAccessor(params, params.getConfigurationNodeForCurrentComponent()) , m_type(params.getTypeForCurrentComponent()) , m_configurationNode(params.getConfigurationNodeForCurrentComponent()) , m_prefix(params.getPrefixForCurrentComponent()) { // Telling the ConfigurationManager that the object for the group in prefix is about // to be created m_confManager->setComponentFromGroupStatusToCreating(m_prefix, this); // Declaring self as a resource of ours declareResource(ConfigurationNode::separateLastElement(confPath()).element, this); }
void ResourceManager::declareResource(const Common::UString &name) { declareResource(TypeMan.setFileType(name, kFileTypeNone), TypeMan.getFileType(name)); }