13 #ifndef QmitkServiceListWidget_h
14 #define QmitkServiceListWidget_h
17 #include "ui_QmitkServiceListWidgetControls.h"
21 #include <QListWidgetItem>
51 us::ModuleContext *m_Context;
55 std::string m_Interface;
57 std::string m_NamingProperty;
60 bool m_AutomaticallySelectFirstEntry;
69 void SetAutomaticallySelectFirstEntry(
bool automaticallySelectFirstEntry);
72 virtual void CreateQtPartControl(QWidget *parent);
75 virtual void CreateConnections();
82 bool GetIsServiceSelected();
95 std::vector<us::ServiceReferenceU> GetAllServiceReferences();
107 std::vector<us::ServiceReferenceU> refs = GetAllServiceReferences();
108 std::vector<T *> result;
109 for (std::size_t i = 0; i < refs.size(); i++)
127 if (this->m_Controls->m_ServiceList->currentRow() == -1)
151 void Initialize(
const std::string &namingProperty =
static_cast<std::string
>(
""),
152 const std::string &filter =
static_cast<std::string
>(
""))
154 std::string interfaceName(us_service_interface_iid<T>());
155 m_Interface = interfaceName;
156 InitPrivate(namingProperty, filter);
226 void OnServiceSelectionChanged();
245 void InitPrivate(
const std::string &namingProperty,
const std::string &filter);
279 std::vector<us::ServiceReferenceU> GetAllRegisteredServices();