Tracks ctkXnatSession services in the CppMicroServices registry and emits signals when sessions are opened or about to be closed.
More...
|
| | XnatSessionTracker (us::ModuleContext *context) |
| | Construct a session tracker for the given module context. More...
|
| |
| | ~ServiceTracker () override |
| | Destructor. More...
|
| |
| | ServiceTracker (ModuleContext *context, const ServiceReferenceType &reference, ServiceTrackerCustomizer< ctkXnatSession, T > *customizer=nullptr) |
| | Create a ServiceTracker on the specified ServiceReference. More...
|
| |
| | ServiceTracker (ModuleContext *context, const std::string &clazz, ServiceTrackerCustomizer< ctkXnatSession, T > *customizer=0) |
| | Create a ServiceTracker on the specified class name. More...
|
| |
| | ServiceTracker (ModuleContext *context, const LDAPFilter &filter, ServiceTrackerCustomizer< ctkXnatSession, T > *customizer=nullptr) |
| | Create a ServiceTracker on the specified LDAPFilter object. More...
|
| |
| | ServiceTracker (ModuleContext *context, ServiceTrackerCustomizer< ctkXnatSession, T > *customizer=nullptr) |
| | Create a ServiceTracker on the class template argument S. More...
|
| |
| virtual void | Open () |
| | Open this ServiceTracker and begin tracking services. More...
|
| |
| virtual void | Close () |
| | Close this ServiceTracker. More...
|
| |
| virtual T | WaitForService (unsigned long timeoutMillis=0) |
| | Wait for at least one service to be tracked by this ServiceTracker. This method will also return when this ServiceTracker is closed. More...
|
| |
| virtual std::vector< ServiceReferenceType > | GetServiceReferences () const |
| | Return a list of ServiceReferences for all services being tracked by this ServiceTracker. More...
|
| |
| virtual ServiceReferenceType | GetServiceReference () const |
| | Returns a ServiceReference for one of the services being tracked by this ServiceTracker. More...
|
| |
| virtual T | GetService (const ServiceReferenceType &reference) const |
| | Returns the service object for the specified ServiceReference if the specified referenced service is being tracked by this ServiceTracker. More...
|
| |
| virtual T | GetService () const |
| | Returns a service object for one of the services being tracked by this ServiceTracker. More...
|
| |
| virtual std::vector< T > | GetServices () const |
| | Return a list of service objects for all services being tracked by this ServiceTracker. More...
|
| |
| virtual void | Remove (const ServiceReferenceType &reference) |
| | Remove a service from this ServiceTracker. More...
|
| |
| virtual int | Size () const |
| | Return the number of services being tracked by this ServiceTracker. More...
|
| |
| virtual int | GetTrackingCount () const |
| | Returns the tracking count for this ServiceTracker. More...
|
| |
| virtual void | GetTracked (TrackingMap &tracked) const |
| | Return a sorted map of the ServiceReferences and service objects for all services being tracked by this ServiceTracker. The map is sorted in natural order of ServiceReference. That is, the last entry is the service with the highest ranking and the lowest service id. More...
|
| |
| virtual bool | IsEmpty () const |
| | Return if this ServiceTracker is empty. More...
|
| |
Tracks ctkXnatSession services in the CppMicroServices registry and emits signals when sessions are opened or about to be closed.
XnatSessionTracker monitors the CppMicroServices service registry for ctkXnatSession instances. When a session service is registered, the tracker connects to its opened and aboutToBeClosed signals and re-emits corresponding Qt signals. This allows plugins and modules to react to XNAT session lifecycle events without directly depending on the service registry.
- See also
- mitk::XnatSession, ctkXnatSession, us::ServiceTracker
Definition at line 36 of file mitkXnatSessionTracker.h.