Changeset 288 in pacpusframework for trunk/src/DBITEPlayerLib/DbtPlyFileManager.cpp
- Timestamp:
- Mar 26, 2014, 9:27:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/DBITEPlayerLib/DbtPlyFileManager.cpp
r181 r288 67 67 ComponentBase::COMPONENT_CONFIGURATION DbtPlyFileManager::configureComponent(XmlComponentConfig config) 68 68 { 69 using boost::dynamic_pointer_cast; 70 69 71 ComponentManager * mgr = ComponentManager::getInstance(); 70 mEngine = static_cast<DbtPlyEngine *>(mgr->getComponent("dbiteEngine"));71 if ( NULL == mEngine) {72 mEngine = dynamic_pointer_cast<DbtPlyEngine>(mgr->getComponent("dbiteEngine")); 73 if (!mEngine) { 72 74 LOG_FATAL("cannot get a pointer of the 'dbiteEngine' component"); 73 75 return CONFIGURED_FAILED; … … 81 83 // register the road_time_t type for the connection 82 84 qRegisterMetaType<road_time_t>("road_time_t"); 83 connect(mEngine , SIGNAL(play(road_time_t,road_time_t, bool)),85 connect(mEngine.get(), SIGNAL(play(road_time_t,road_time_t, bool)), 84 86 this, SLOT(playData(road_time_t,road_time_t, bool)), 85 87 Qt::DirectConnection); 86 88 connect(this, SIGNAL(tMinMaxIs(road_time_t,road_time_t )), 87 mEngine , SLOT(tMinMax(road_time_t, road_time_t)));88 connect(mEngine , SIGNAL(stopfile()),89 mEngine.get(), SLOT(tMinMax(road_time_t, road_time_t))); 90 connect(mEngine.get(), SIGNAL(stopfile()), 89 91 this, SLOT (beginfile())); 90 92
Note:
See TracChangeset
for help on using the changeset viewer.