| 168 | } |
| 169 | |
| 170 | void DateTimePlugin::active(YAGfx& gfx) |
| 171 | { |
| 172 | MutexGuard<MutexRecursive> guard(m_mutex); |
| 173 | |
| 174 | UTIL_NOT_USED(gfx); |
| 175 | |
| 176 | /* The date/time information shall be retrieved every second while plugin is activated. */ |
| 177 | m_durationCounter = 0U; |
| 178 | m_checkUpdateTimer.start(CHECK_UPDATE_PERIOD); |
| 179 | |
| 180 | /* The date/time shall be updated on the display right after plugin activation. */ |
| 181 | updateDateTime(true); |
| 182 | } |
| 183 | |
| 184 | void DateTimePlugin::inactive() |
| 185 | { |