Changeset 288 in pacpusframework for trunk/src/DBITEPlayerLib/DbtPlyTrigger.cpp
- Timestamp:
- Mar 26, 2014, 9:27:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/DBITEPlayerLib/DbtPlyTrigger.cpp
r152 r288 39 39 ComponentBase::COMPONENT_CONFIGURATION DbtPlyTrigger::configureComponent(XmlComponentConfig /*config*/) 40 40 { 41 using boost::dynamic_pointer_cast; 42 41 43 ComponentManager * mgr = ComponentManager::getInstance(); 42 44 // we get a pointer to the engine component 43 mEngine = dynamic_ cast<DbtPlyEngine *>(mgr->getComponent("dbiteEngine"));44 if ( NULL ==mEngine) {45 mEngine = dynamic_pointer_cast<DbtPlyEngine>(mgr->getComponent("dbiteEngine")); 46 if (!mEngine) { 45 47 LOG_FATAL("cannot get a pointer of the 'dbiteEngine' component"); 46 48 return CONFIGURED_FAILED; 47 49 } 48 50 connect(this, SIGNAL(triggerSig()), 49 mEngine ,SLOT(engReceiver()),51 mEngine.get(), SLOT(engReceiver()), 50 52 Qt::DirectConnection); 51 53
Note:
See TracChangeset
for help on using the changeset viewer.