Changeset 332 in pacpusframework for trunk/src/_NewComponent/NewComponent.cpp.in


Ignore:
Timestamp:
Dec 4, 2014, 4:33:47 PM (10 years ago)
Author:
phudelai
Message:

_NewComponent function autoStart added

File:
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.