17 #ifndef _QmitkServiceListWidget_H_INCLUDED
18 #define _QmitkServiceListWidget_H_INCLUDED
21 #include "ui_QmitkServiceListWidgetControls.h"
25 #include <QListWidgetItem>
55 us::ModuleContext *m_Context;
59 std::string m_Interface;
61 std::string m_NamingProperty;
64 bool m_AutomaticallySelectFirstEntry;
73 void SetAutomaticallySelectFirstEntry(
bool automaticallySelectFirstEntry);
76 virtual void CreateQtPartControl(QWidget *parent);
79 virtual void CreateConnections();
86 bool GetIsServiceSelected();
99 std::vector<us::ServiceReferenceU> GetAllServiceReferences();
111 std::vector<us::ServiceReferenceU> refs = GetAllServiceReferences();
112 std::vector<T *> result;
113 for (
int i = 0; i < refs.size(); i++)
131 if (this->m_Controls->m_ServiceList->currentRow() == -1)
155 void Initialize(
const std::string &namingProperty = static_cast<std::string>(
""),
156 const std::string &filter = static_cast<std::string>(
""))
158 std::string interfaceName(us_service_interface_iid<T>());
159 m_Interface = interfaceName;
160 InitPrivate(namingProperty, filter);
230 void OnServiceSelectionChanged();
249 void InitPrivate(
const std::string &namingProperty,
const std::string &filter);
283 std::vector<us::ServiceReferenceU> GetAllRegisteredServices();
292 #endif // _QmitkServiceListWidget_H_INCLUDED