| 90 | } |
| 91 | |
| 92 | void TopicHandlerService::process() |
| 93 | { |
| 94 | if (true == m_isStarted) |
| 95 | { |
| 96 | processAllHandlers(); |
| 97 | |
| 98 | if ((true == m_onChangeTimer.isTimerRunning()) && |
| 99 | (true == m_onChangeTimer.isTimeout())) |
| 100 | { |
| 101 | bool forceUpdate = false; |
| 102 | |
| 103 | if (0U < m_updateCounter) |
| 104 | { |
| 105 | --m_updateCounter; |
| 106 | } |
| 107 | |
| 108 | if (0U == m_updateCounter) |
| 109 | { |
| 110 | forceUpdate = true; |
| 111 | m_updateCounter = UPDATE_COUNTER_VALUE; |
| 112 | } |
| 113 | |
| 114 | processOnChange(forceUpdate); |
| 115 | |
| 116 | m_onChangeTimer.restart(); |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | void TopicHandlerService::registerTopics(const String& deviceId, const String& entityId, IPluginMaintenance* plugin) |
| 122 | { |
no test coverage detected