 |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
Go to the documentation of this file.
23 #ifndef CTKSERVICETRACKER_H
24 #define CTKSERVICETRACKER_H
26 #include <QScopedPointer>
28 #include "ctkPluginFrameworkExport.h"
73 template<
class S = QObject*,
class T = S>
191 virtual void close();
301 virtual int size()
const;
336 virtual QMap<ctkServiceReference, T>
getTracked()
const;
431 inline const ServiceTrackerPrivate* d_func()
const
433 return reinterpret_cast<const ServiceTrackerPrivate*
>(qGetPtrHelper(d_ptr));
436 const QScopedPointer<ServiceTrackerPrivate> d_ptr;
439 #include "ctkServiceTracker.tpp"
441 #endif // CTKSERVICETRACKER_H
virtual ctkServiceReference getServiceReference() const
virtual QMap< ctkServiceReference, T > getTracked() const
void removedService(const ctkServiceReference &reference, T service)
T addingService(const ctkServiceReference &reference)
virtual T waitForService(unsigned long timeout)
virtual int getTrackingCount() const
ctkServiceTracker(ctkPluginContext *context, const ctkServiceReference &reference, ctkServiceTrackerCustomizer< T > *customizer=0)
virtual QList< T > getServices() const
virtual QList< ctkServiceReference > getServiceReferences() const
void modifiedService(const ctkServiceReference &reference, T service)
virtual bool isEmpty() const
virtual void remove(const ctkServiceReference &reference)
virtual T getService() const