13 #ifndef QmitkServiceListWidget_h
14 #define QmitkServiceListWidget_h
20 #include <QListWidget>
21 #include <QListWidgetItem>
31 namespace Ui {
class QmitkServiceListWidgetControls; }
58 std::string m_Interface;
60 std::string m_NamingProperty;
63 bool m_AutomaticallySelectFirstEntry;
110 std::vector<us::ServiceReferenceU> refs = GetAllServiceReferences();
111 std::vector<T *> result;
112 for (std::size_t i = 0; i < refs.size(); i++)
130 if (m_ServiceList->currentRow() == -1)
156 void Initialize(
const std::string &namingProperty =
static_cast<std::string
>(
""),
157 const std::string &filter =
static_cast<std::string
>(
""))
159 std::string interfaceName(us_service_interface_iid<T>());
160 m_Interface = interfaceName;
161 InitPrivate(namingProperty, filter);
234 std::unique_ptr<Ui::QmitkServiceListWidgetControls>
m_Controls;
251 void InitPrivate(
const std::string &namingProperty,
const std::string &filter);
void * GetService(const ServiceReferenceBase &reference)
Returns the service object referenced by the specified ServiceReferenceBase object.
Provides the MITK_DECLARE_SERVICE_INTERFACE macro for registering C++ interfaces with both the CppMic...