Changeset 332 in pacpusframework


Ignore:
Timestamp:
12/04/14 16:33:47 (10 years ago)
Author:
phudelai
Message:

_NewComponent function autoStart added

Location:
trunk
Files:
4 added
1 edited

Legend:

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

    r218 r332  
    6464ComponentBase::COMPONENT_CONFIGURATION @PACPUS_COMPONENT_NAME@::configureComponent(XmlComponentConfig config)
    6565{
     66        bool autoStart = false;
     67        if (config.getProperty("autoStart") != QString::null)
     68                autoStart = config.getProperty("autoStart").toBool());
     69               
     70        if (autoStart)
     71                this->startActivity();
    6672    return ComponentBase::CONFIGURED_OK;
    6773}
Note: See TracChangeset for help on using the changeset viewer.