6 #include <Poco/SharedPtr.h>
7 #include <Poco/Timestamp.h>
8 #include <Poco/Util/IniFileConfiguration.h>
10 #include "core/DeviceManager.h"
11 #include "core/PollingKeeper.h"
12 #include "vdev/VirtualDevice.h"
33 void setDevicePoller(DevicePoller::Ptr poller);
65 Poco::AutoPtr<Poco::Util::AbstractConfiguration> cfg);
72 Poco::AutoPtr<Poco::Util::AbstractConfiguration> cfg,
92 const std::set<DeviceID> &devices,
93 const DeviceStatusHandler::DeviceValues &values)
override;
96 void handleGeneric(
const Command::Ptr cmd, Result::Ptr result)
override;
126 std::map<DeviceID, VirtualDevice::Ptr> m_virtualDevicesMap;
127 std::string m_configFile;
129 bool m_requestDeviceList;
130 Poco::FastMutex m_lock;
void scheduleAllEntries()
void doDeviceAcceptCommand(const DeviceAcceptCommand::Ptr cmd)
void handleRemoteStatus(const DevicePrefix &prefix, const std::set< DeviceID > &devices, const DeviceStatusHandler::DeviceValues &values) override
Reschedule virtual devices after updating the remote status.
void dispatchNewDevice(VirtualDevice::Ptr device)
void registerDevice(const VirtualDevice::Ptr virtualDevice)
void doSetValueCommand(const DeviceSetValueCommand::Ptr cmd)
void installVirtualDevices()
void doListenCommand(const GatewayListenCommand::Ptr)
VirtualDevice::Ptr parseDevice(Poco::AutoPtr< Poco::Util::AbstractConfiguration > cfg)
void doUnpairCommand(const DeviceUnpairCommand::Ptr cmd)
VirtualModule::Ptr parseModule(Poco::AutoPtr< Poco::Util::AbstractConfiguration > cfg, const ModuleID &moduleID)
PollingKeeper takes care of devices that are being polled. It cancels all polled devices it manages u...
Definition: PollingKeeper.h:17
Definition: ModuleID.h:12
Definition: VirtualDeviceManager.h:29
void handleGeneric(const Command::Ptr cmd, Result::Ptr result) override
Definition: DeviceManager.h:48
void logDeviceParsed(VirtualDevice::Ptr device)
void setConfigFile(const std::string &path)
DevicePrefix prefix() const override
Definition: DeviceManager.cpp:33