Changeset 192 in pacpusframework for trunk


Ignore:
Timestamp:
Oct 24, 2013, 3:32:18 PM (11 years ago)
Author:
Marek Kurdej
Message:

Minor: NewComponent modifications.

Location:
trunk/src/_NewComponent
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/_NewComponent/NewComponent.cpp.in

    r147 r192  
    66#include "@PACPUS_COMPONENT_NAME@.h"
    77
     8#include <Pacpus/kernel/ComponentFactory.h>
    89#include <Pacpus/kernel/Log.h>
    910
     
    2324{   
    2425    LOG_TRACE("constructor(" << name << ")");
     26   
     27    namespace po = boost::program_options;
     28    //addParameters()
     29    //("parameter-name", po::value<ParameterType>(&mParameterVariable)->required(), "parameter description")
     30    //("parameter-name", po::value<ParameterType>(&mParameterVariable)->default_value(0), "parameter description")
     31    //;
    2532}
    2633
     
    4451ComponentBase::COMPONENT_CONFIGURATION @PACPUS_COMPONENT_NAME@::configureComponent(XmlComponentConfig config)
    4552{
    46     recording = config.getIntProperty("verbose", kDefaultVerboseLevel);
    47     recording = config.getBoolProperty("recording");
    48 
    4953    return ComponentBase::CONFIGURED_OK;
    5054}
  • trunk/src/_NewComponent/NewComponent.h.in

    r147 r192  
    2424
    2525class @PACPUS_COMPONENT_NAME_CAPS@_API @PACPUS_COMPONENT_NAME@
    26         : public ComponentBase
     26    // : public QObject
     27    // , public ComponentBase // must be after QObject
     28    : public ComponentBase
    2729{
    2830    //Q_OBJECT
Note: See TracChangeset for help on using the changeset viewer.