MCPcopy Create free account
hub / github.com/MITK/MITK / GetServiceForListItem

Method GetServiceForListItem

Modules/QtWidgets/src/QmitkServiceListWidget.cpp:219–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219us::ServiceReferenceU QmitkServiceListWidget::GetServiceForListItem(QListWidgetItem *item)
220{
221 for (std::vector<QmitkServiceListWidget::ServiceListLink>::iterator it = m_ListContent.begin();
222 it != m_ListContent.end();
223 ++it)
224 if (item == it->item)
225 return it->service;
226 // Return invalid ServiceReference (will evaluate to false in bool expressions)
227 return us::ServiceReferenceU();
228}
229
230std::vector<us::ServiceReferenceU> QmitkServiceListWidget::GetAllRegisteredServices()
231{

Callers 2

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected