30 m_Devices = devicePersistence->RestoreLastDevices();
33 for (std::vector<mitk::USDevice::Pointer>::iterator it =
m_Devices.begin();
53 devicePersistence->StoreCurrentDevices();
63 MITK_WARN(
"us::ModuleActivator")(
"USActivator")
64 <<
"OnServiceEvent listener called without having a module context in " 65 <<
"the activator. Cannot handle event.";
81 std::vector<mitk::USDevice::Pointer>::iterator it = find(
m_Devices.begin(),
m_Devices.end(), device.GetPointer());
86 MITK_DEBUG(
"us::ModuleActivator")(
"USActivator")
87 <<
"Received uninteresting service event: " << event.
GetType();
void Load(us::ModuleContext *context) override
The mitk::USVideoDevice obejcts are loaded from hard disk and registered into micro service...
void OnServiceEvent(const us::ServiceEvent event)
Listens to ServiceRegistry changes and updates the list of mitk::USDevice object accordingly.
void Unload(us::ModuleContext *context) override
Registered mitk::USVideoDevice objects are stored to hard disk an deregistered from micro service...
us::ModuleContext * m_Context
US_Core_EXPORT const std::string & OBJECTCLASS()
std::vector< USDevice::Pointer > m_Devices