Ignore:
Timestamp:
06/13/13 13:43:39 (11 years ago)
Author:
morasjul
Message:

Beta-2 : Fix CMakeList (link), remove useless code and add improvement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0-beta1/src/PacpusLib/ComponentManager.cpp

    r96 r110  
    77#include <Pacpus/kernel/ComponentManager.h>
    88#include <Pacpus/kernel/ComponentBase.h>
     9#include <Pacpus/kernel/ConnectionBase.h>
    910#include <Pacpus/kernel/Log.h>
    10 #include <Pacpus/kernel/ConnectionBase.h>
    1111#include <QObject>
    1212
     
    227227        QString componentType = cfg.getComponentType();
    228228        QString componentName = cfg.getComponentName();
    229         //LOG_DEBUG("try to create component '" << componentName << "'");
     229        LOG_DEBUG("try to create component '" << componentName << "'");
     230
    230231        // create the component and automatically add it to the component manager list
    231232        if (!createComponent(componentType, componentName)) {
     
    239240    // Second, try to configure the components without regarding the dependencies
    240241    for (int i = 0; i < componentsNodeList.size(); ++i) {
    241         //LOG_DEBUG("try to configure component '" << (*it) << "'");
    242242        cfg.localCopy(componentsNodeList.item(i).toElement());
    243243        QString componentName = cfg.getComponentName();
     244        LOG_DEBUG("try to configure component '" << componentName << "'");
    244245
    245246        // copy locally the config parameters of the component
     
    250251            component->param.localCopy(cfg.qDomElement());
    251252            component->configuration_ = component->configureComponent(cfg);
    252 
    253253        }
    254254    } // for
     
    264264        } else {
    265265            if (component->configuration_ == ComponentBase::CONFIGURATION_DELAYED) {
    266                 //LOG_DEBUG("try to configure component '" << (*it) << "'");
     266                LOG_DEBUG("try to configure component '" << componentName << "'");
    267267
    268268                // copy locally the config parameters of the component
     
    274274                --componentsToConfigureCount;
    275275            } else {
    276                 /*LOG_ERROR("cannot configure component '" << (*it) << "'"
     276                LOG_ERROR("cannot configure component '" << componentName << "'"
    277277                          << ". Dependencies with other components are too complex"
    278278                          << ". It was not configured, please review your configuration and/or your component"
    279                           );*/
     279                          );
    280280                component->configuration_ = ComponentBase::CONFIGURED_FAILED;
    281281            }
Note: See TracChangeset for help on using the changeset viewer.