| 204 | *****************************************************************************/ |
| 205 | |
| 206 | void DateTimePlugin::getConfiguration(JsonObject& jsonCfg) const |
| 207 | { |
| 208 | MutexGuard<MutexRecursive> guard(m_mutex); |
| 209 | |
| 210 | jsonCfg["mode"] = m_mode; |
| 211 | jsonCfg["viewMode"] = m_view.getViewMode(); |
| 212 | jsonCfg["timeFormat"] = m_timeFormat; |
| 213 | jsonCfg["dateFormat"] = m_dateFormat; |
| 214 | jsonCfg["timeZone"] = m_timeZone; |
| 215 | jsonCfg["startOfWeek"] = m_view.getStartOfWeek(); |
| 216 | jsonCfg["dayOnColor"] = Util::colorToHtml(m_view.getDayOnColor()); |
| 217 | jsonCfg["dayOffColor"] = Util::colorToHtml(m_view.getDayOffColor()); |
| 218 | |
| 219 | m_view.getConfiguration(jsonCfg); |
| 220 | } |
| 221 | |
| 222 | bool DateTimePlugin::setConfiguration(const JsonObjectConst& jsonCfg) |
| 223 | { |
nothing calls this directly
no test coverage detected